================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits