[Mlir-commits] [mlir] [mlir] Fix GPU_Launch op getPrivateAttributions function (PR #178369)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Feb 2 18:56:36 PST 2026


================
@@ -1043,6 +1043,8 @@ def GPU_LaunchOp : GPU_Op<"launch", [
     ArrayRef<BlockArgument> getPrivateAttributions() {
       // Buffers on the private memory always come after buffers on the workgroup
       // memory.
+      if (getBody().empty())
+        return {};
----------------
woruyu wrote:

Done! modify to use getNumPrivateAttributions

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


More information about the Mlir-commits mailing list