[Mlir-commits] [mlir] [MLIR][NVVM] Adds an explicit aligned boolean attribute to nvvm.barrier (PR #192203)
Guray Ozen
llvmlistbot at llvm.org
Mon Apr 27 01:41:37 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) "
----------------
grypp wrote:
We could have 3 PRs.
1. remove `nvvm.barrier0`
2. Split `nvvm.barrier` into 2 OPs: `nvvm.barrier`, `nvvm.barrier.reduction`
3. Add `aligned` attribute
How does it sound @xys-syx @durga4github
https://github.com/llvm/llvm-project/pull/192203
More information about the Mlir-commits
mailing list