[clang] [CIR][OpenMP] Implement lowering for the 'if' clause for 'parallel' d… (PR #204999)
Sergio Afonso via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 16 05:12:42 PDT 2026
================
@@ -74,6 +74,12 @@ static mlir::Value emitMapInfoForVar(CIRGenFunction &cgf,
/*partial_map=*/builder.getBoolAttr(false));
}
+bool isDirectiveNameUnknown(llvm::omp::Directive directiveName) {
+ if (directiveName == llvm::omp::Directive::OMPD_unknown)
+ return true;
+ return false;
+}
----------------
skatrak wrote:
Nit: I don't know how useful this function is, considering its simplicity, how self-descriptive it is and how unlikely other uses are. If you really want to keep it:
```suggestion
bool isDirectiveNameUnknown(llvm::omp::Directive directiveName) {
return directiveName == llvm::omp::Directive::OMPD_unknown;
}
```
https://github.com/llvm/llvm-project/pull/204999
More information about the cfe-commits
mailing list