[Mlir-commits] [mlir] [mlir][memref] Refine doc examples for operations (PR #165889)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 31 10:30:06 PDT 2025


================
@@ -728,22 +729,22 @@ def MemRef_DmaStartOp : MemRef_Op<"dma_start"> {
     space 1 at indices [%k, %l], would be specified as follows:
 
     ```mlir
-    %num_elements = arith.constant 256
+    %num_elements = arith.constant 256 : index
----------------
FruitClover wrote:

note: `index` is here cause of `Index:$numElements`
```mlir
docs.mlir:120:50: error: use of value '%num_elements' expects different type than prior uses: 'index' vs 'i64'
    memref.dma_start %src[%i, %j], %dst[%k, %l], %num_elements, %tag[%idx] :
                                                 ^
canon.mlir:117:5: note: prior use here
    %num_elements = arith.constant 256
    ^
```

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


More information about the Mlir-commits mailing list