================
@@ -682,6 +682,41 @@ convertOmpTeams(omp::TeamsOp op, llvm::IRBuilderBase 
&builder,
   return bodyGenStatus;
 }
 
+static void
+buildDependData(Operation *op, LLVM::ModuleTranslation &moduleTranslation,
----------------
skatrak wrote:

I'd suggest taking `std::optional<ArrayAttr> depends` and `OperandRange 
dependVars` as arguments instead of `Operation *op` here. This way you don't 
need to try casting `op` to each supported operation below, but rather make the 
body of this function what the `processDepends` lambda inside currently has.

https://github.com/llvm/llvm-project/pull/93977
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to