[Mlir-commits] [clang] [llvm] [mlir] [AMDGPU] Implement AsyncMark Stages (PR #220442)

Krzysztof Drewniak llvmlistbot at llvm.org
Tue Oct 13 11:46:05 PDT 2026


================
@@ -675,8 +675,9 @@ def ROCDL_WaitTensorcntOp: ROCDL_ConcreteNonMemIntrOp<"s.wait.tensorcnt", [], 0,
   let assemblyFormat = "$count attr-dict";
 }
 
-def ROCDL_AsyncmarkOp : ROCDL_ConcreteNonMemIntrOp<"asyncmark", [], 0>,
-    Arguments<(ins)> {
+def ROCDL_AsyncmarkOp : ROCDL_ConcreteNonMemIntrOp<"asyncmark", [], 0, [0], ["stages"]>,
+    Arguments<(ins DefaultValuedAttr<
+        ConfinedAttr<I32Attr, [IntMinValue<0>, IntMaxValue<2047>]>, "0">:$stages)> {
----------------
krzysz00 wrote:

Ok, MLIR nit: you can/should define a mirror enum on the MLIR side. See, for example, SchedGroupMask 

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


More information about the Mlir-commits mailing list