[Mlir-commits] [mlir] [acc] Add attribute for combined constructs (PR #80319)

Valentin Clement バレンタイン クレメン llvmlistbot at llvm.org
Thu Feb 1 11:50:50 PST 2024


================
@@ -1497,6 +1546,11 @@ LogicalResult acc::KernelsOp::verify() {
   if (failed(checkWaitAndAsyncConflict<acc::KernelsOp>(*this)))
     return failure();
 
+  if (getCombined().has_value() &&
+      getCombined().value() != acc::CombinedConstructsType::KernelsLoop) {
+    return emitError("unexpected combined constructs attribute");
----------------
clementval wrote:

nit: same comment about optional handling

https://github.com/llvm/llvm-project/pull/80319


More information about the Mlir-commits mailing list