[Mlir-commits] [mlir] [mlir][amdgpu][docs] Add op examples to dialect docs (PR #146848)

Eric Feng llvmlistbot at llvm.org
Sun Jul 6 21:58:22 PDT 2025


================
@@ -275,6 +297,18 @@ def AMDGPU_FatRawBufferCastOp :
     If the value of the memref's offset is not uniform (independent of the lane/thread ID),
     this will lead to substantially decreased performance due to the need for
     a waterfall loop on the base address of the buffer resource.
+
+   #### Example
+   ```mlir
+  // Simple cast
+%converted = amdgpu.fat_raw_buffer_cast %src 
+  : memref<8xi32> to memref<8xi32, #amdgpu.address_space<fat_raw_buffer>>
+// Cast with memory attributes
----------------
efric wrote:

It would be great if you can be a bit more specific here. 

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


More information about the Mlir-commits mailing list