[Mlir-commits] [mlir] [MLIR][NVVM] Add barrier.arrive (PR #85412)
Durgadoss R
llvmlistbot at llvm.org
Fri Mar 15 08:38:49 PDT 2024
================
@@ -409,6 +409,38 @@ def NVVM_BarrierOp : NVVM_Op<"barrier", [AttrSizedOperandSegments]> {
let assemblyFormat = "(`id` `=` $barrierId^)? (`number_of_threads` `=` $numberOfThreads^)? attr-dict";
}
+def NVVM_BarrierArriveOp : NVVM_Op<"barrier.arrive",
+ [DeclareOpInterfaceMethods<BasicPtxBuilderOpInterface>,
+ AttrSizedOperandSegments]>
+{
+ let arguments = (ins
+ Optional<I32>:$barrierId,
+ Optional<I32>:$numberOfThreads);
+ let hasVerifier = 1;
+ let assemblyFormat = "(`id` `=` $barrierId^)? (`number_of_threads` `=` $numberOfThreads^)? attr-dict";
+ let description = [{
+ Thread that executes this op announces their arrival at the barrier with
+ given id and continue their execution.
----------------
durga4github wrote:
Can we add a line saying "Barrier-id is default set to 0 if not provided" ? (or something that says that).
https://github.com/llvm/llvm-project/pull/85412
More information about the Mlir-commits
mailing list