[Mlir-commits] [mlir] [NFC][mlir][ROCDL] Add asyncmark, wait.asyncmark examples (PR #181742)
Krzysztof Drewniak
llvmlistbot at llvm.org
Mon Feb 16 12:46:28 PST 2026
https://github.com/krzysz00 created https://github.com/llvm/llvm-project/pull/181742
Examples were requested in post-commit review, add them
>From 3920c4bb515f168b205c7743401826bfba08a3f1 Mon Sep 17 00:00:00 2001
From: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
Date: Mon, 16 Feb 2026 20:45:13 +0000
Subject: [PATCH] [NFC][mlir][ROCDL] Add asyncmark, wait.asyncmark examples
Examples were requested in post-commit review, add them
---
mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td | 10 ++++++++++
1 file changed, 10 insertions(+)
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 ...
More information about the Mlir-commits
mailing list