================
@@ -93,6 +93,29 @@ bool OpenMPClauseEmitter::emitProcBind(
   return false;
 }
 
+bool OpenMPClauseEmitter::emitIf(mlir::omp::IfClauseOps &result) const {
+  for (const OMPClause *clause : clauses) {
+    const auto *ic = dyn_cast<OMPIfClause>(clause);
+    if (!ic)
+      continue;
+
----------------
pedropiin wrote:

To be honest I didn't even know about this. But I just checked, and the if's 
value is `OMPD_unknown`. Checking against unkown may not be exactly safe, 
right? Because, as its a generic value, other stuff could have it as well and, 
therefore, go through with the emission.

https://github.com/llvm/llvm-project/pull/204999
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to