[Mlir-commits] [mlir] [mlir][acc] Improve acc.loop support as a container (PR #137887)

Razvan Lupusoru llvmlistbot at llvm.org
Tue Apr 29 16:29:46 PDT 2025


================
@@ -2415,6 +2423,15 @@ LogicalResult acc::LoopOp::verify() {
   if (getRegion().empty())
     return emitError("expected non-empty body.");
 
+  // When it is container-like - it is expected to hold a loop-like operation.
+  // TODO: Get the collapse attribute into account.
+  if (isContainerLike()) {
----------------
razvanlupusoru wrote:

Yes - I just updated the verifier to check by walking the body. Which means nested regions are also traversed.

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


More information about the Mlir-commits mailing list