[flang-commits] [flang] [mlir] [MLIR][NVVM] Update mbarrier.arrive.* Op (PR #168758)
Durgadoss R via flang-commits
flang-commits at lists.llvm.org
Thu Nov 20 09:05:12 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`.
----------------
durga4github wrote:
Sure, will do that in a separate PR (before/after this).
https://github.com/llvm/llvm-project/pull/168758
More information about the flang-commits
mailing list