[Mlir-commits] [mlir] [MLIR][NVVM] Adds an explicit aligned boolean attribute to nvvm.barrier (PR #192203)

Durgadoss R llvmlistbot at llvm.org
Wed Apr 22 00:15:54 PDT 2026


================
@@ -1179,16 +1183,20 @@ def NVVM_BarrierOp : NVVM_SingleResultIntrinsicOp<"barrier",
   let results = (outs Optional<I32>:$res);
 
   let hasVerifier = 1;
+  let hasCanonicalizeMethod = 1;
 
   let assemblyFormat =
       "(`id` `=` $barrierId^)? (`number_of_threads` `=` $numberOfThreads^)? "
+      "custom<Aligned>($aligned) "
----------------
durga4github wrote:

Another option is adding another `None` default option to the reduction attribute. With this, the red-attr no longer needs to be an optional one. But I still think splitting is probably a cleaner solution here (and will simplify things)

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


More information about the Mlir-commits mailing list