[Mlir-commits] [mlir] [mlir][nvvm] Introduce `nvvm.barrier` OP (PR #81487)

Guray Ozen llvmlistbot at llvm.org
Tue Feb 13 00:18:40 PST 2024


================
@@ -377,6 +377,26 @@ def NVVM_Barrier0Op : NVVM_Op<"barrier0"> {
   let assemblyFormat = "attr-dict";
 }
 
+def NVVM_BarrierOp : NVVM_Op<"barrier"> {
+  let arguments = (ins     
+    DefaultValuedAttr<ConfinedAttr<I32Attr, [IntMinValue<0>, IntMaxValue<15>]>, "0">:$barrierResource,
----------------
grypp wrote:

Good catch, yes in this case it is better to make this as an operand. 

https://github.com/llvm/llvm-project/pull/81487


More information about the Mlir-commits mailing list