[Mlir-commits] [mlir] [MLIR][NVVM][Docs] Explain memory spaces (PR #168059)
Durgadoss R
llvmlistbot at llvm.org
Mon Nov 17 08:32:25 PST 2025
================
@@ -79,6 +79,40 @@ def NVVM_Dialect : Dialect {
sequence must be expressed directly, NVVM provides an `nvvm.inline_ptx` op to
embed PTX inline as a last-resort escape hatch, with explicit operands and
results.
+
+
+ **Memory Spaces:** The NVVM dialect introduces the following memory spaces,
+ each with distinct scopes and lifetimes:
+```
+ | Memory Space | Address Space | Scope | Lifetime |
+ |-------------------|---------------|----------------------|-------------------|
+ | `generic` | 0 | All threads | Context-dependent |
+ | `global` | 1 | All threads (device) | Application |
+ | `shared` | 3 | Thread block (CTA) | Kernel execution |
+ | `constant` | 4 | All threads (RO) | Application |
+ | `local` | 5 | Single thread | Kernel execution |
+ | `tensor` | 6 | Thread block (CTA) | Kernel execution |
+ | `shared_cluster` | 7 | Thread block cluster | Kernel execution |
----------------
durga4github wrote:
Nice!
https://github.com/llvm/llvm-project/pull/168059
More information about the Mlir-commits
mailing list