[Mlir-commits] [flang] [mlir] [MLIR][NVVM] Update mbarrier.arrive.* Op (PR #168758)
Guray Ozen
llvmlistbot at llvm.org
Thu Nov 20 05:06:25 PST 2025
================
@@ -638,9 +638,76 @@ def NVVM_MBarrierInvalOp : NVVM_Op<"mbarrier.inval">,
}];
}
-def NVVM_MBarrierArriveOp : NVVM_Op<"mbarrier.arrive">,
- Results<(outs I64:$res)>,
- Arguments<(ins AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerShared]>:$addr)> {
+def NVVM_MBarrierExpectTxOp : NVVM_Op<"mbarrier.expect_tx"> {
+ let summary = "MBarrier expect-tx Operation";
+ let description = [{
+ The `nvvm.mbarrier.expect_tx` operation increases the transaction count
+ of the mbarrier located at `addr` by `txcount` amount. The `scope`
+ specifies the set of threads that can directly observe the memory
+ synchronizing effect of the `mbarrier.expect_tx` operation. `CTA`
+ and `CLUSTER` are the only allowed values for `scope`.
----------------
grypp wrote:
we could define what is CTA and what is CLUSTER in main nvvm dialect doc.
https://github.com/llvm/llvm-project/pull/168758
More information about the Mlir-commits
mailing list