================
@@ -354,9 +383,15 @@ mlir::LogicalResult 
CIRGenFunction::emitOMPTargetExitDataDirective(
 }
 mlir::LogicalResult CIRGenFunction::emitOMPTargetParallelDirective(
     const OMPTargetParallelDirective &s) {
-  getCIRGenModule().errorNYI(s.getSourceRange(),
-                             "OpenMP OMPTargetParallelDirective");
-  return mlir::failure();
+  mlir::Location begin = getLoc(s.getBeginLoc());
+  mlir::Location end = getLoc(s.getEndLoc());
+
+  return emitTargetOp(*this, s, begin, end, [&]() -> mlir::LogicalResult {
----------------
skatrak wrote:

`omp.target` in this case should have the `omp.combined` attribute 
(`mlir::omp::ComposableOpInterface::setCombined()`).

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

Reply via email to