[Mlir-commits] [mlir] [MLIR][NVVM] Adds an explicit aligned boolean attribute to nvvm.barrier (PR #192203)
Durgadoss R
llvmlistbot at llvm.org
Fri Apr 17 00:05:02 PDT 2026
================
@@ -2943,6 +2943,22 @@ bool BarrierOp::isCompatibleReturnTypes(TypeRange l, TypeRange r) {
return isCompatibleReturnTypesOptionalResult(l, r);
}
+/// Folds `nvvm.barrier id = %c0` (constant zero) into the form with
+/// `barrierId` omitted.
----------------
durga4github wrote:
In the other PR, I see that you want to add importer support from LLVM IR to MLIR for some of these barrier intrinsics. However, these intrinsics ID for the `all` variants and both ID and num_threads for the `count` variants.
So, it is not very clear to me why we need to fold the "ID=0" into a form with no ID.
https://github.com/llvm/llvm-project/pull/192203
More information about the Mlir-commits
mailing list