[Mlir-commits] [mlir] [NFC][mlir][ROCDL] Add asyncmark, wait.asyncmark examples (PR #181742)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Feb 16 12:47:03 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir-llvm

Author: Krzysztof Drewniak (krzysz00)

<details>
<summary>Changes</summary>

Examples were requested in post-commit review, add them

---
Full diff: https://github.com/llvm/llvm-project/pull/181742.diff


1 Files Affected:

- (modified) mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td (+10) 


``````````diff
diff --git a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
index c3af1bd32ebda..738f1d43daba7 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
@@ -604,6 +604,11 @@ def ROCDL_AsyncmarkOp : ROCDL_ConcreteNonMemIntrOp<"asyncmark", [], 0>,
 
       See `rocdl.wait.asyncmark`'s documentation for a usage example.
 
+      Example:
+      ```mlir
+      rocdl.asyncmark
+      ```
+
       Available on gfx9 and later.
   }];
   let results = (outs);
@@ -628,6 +633,11 @@ def ROCDL_WaitAsyncmarkOp: ROCDL_ConcreteNonMemIntrOp<"wait.asyncmark", [], 0, [
 
       Example:
       ```mlir
+      rocdl.wait.asyncmark 1
+      ```
+
+      Usage example:
+      ```mlir
       rocdl.tensor.load.to.lds ...
       rocdl.global.async.load.to.lds ...
 

``````````

</details>


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


More information about the Mlir-commits mailing list