[Mlir-commits] [mlir] [mlir][EmitC] Add rank-0 MemRef conversion (PR #205774)

Andrzej WarzyƄski llvmlistbot at llvm.org
Mon Jul 13 02:06:44 PDT 2026


================
@@ -72,3 +72,51 @@ func.func @memref_load_store(%buff0: memref<2xf32>,
   memref.store %v, %buff1[%i, %j] : memref<4x8xf32>
   return
 }
+
+/// Rank-0 alloc-backed load/store lower through pointer subscript at index 0.
+// CHECK-LABEL: emitc.func private @memref_rank0_alloc_store(
+// CHECK-SAME:  %[[VAL:.*]]: i32)
+func.func private @memref_rank0_alloc_store(%v : i32) {
----------------
banach-space wrote:

[nit] `@memref_alloc_store` -> `@memref_alloc_store_rank0` (add new info at the end rather than in the middle). Similar comment for other tests.

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


More information about the Mlir-commits mailing list