[Mlir-commits] [mlir] [MLIR][EmitC] Add support for pointer-array types in the TypeConverter and related MemRef-to-EmitC operations, and update the C emitter. (PR #160159)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Nov 3 01:22:43 PST 2025


================
@@ -51,9 +57,15 @@ module @globals {
   // CHECK-LABEL: use_global
   func.func @use_global() {
     // CHECK-NEXT: emitc.get_global @public_global : !emitc.array<3x7xf32>
+    // CHECK-NEXT: "emitc.constant"() <{value = 0 : index}> : () -> index
----------------
LekkalaSravya3 wrote:

Thanks for the feedback — I just want to confirm the next steps clearly.
Right now I understand that:
We should keep the existing array-typed lowering as the default behavior and pointer-to-array lowering should be enabled only through an opt-in switch in this PR
Before I proceed:
Do you also want the array-decay–based approach (that you described: loosening cast/subscript verifiers, implicit decay in calls, emitter enhancements) to be implemented as part of this same PR .

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


More information about the Mlir-commits mailing list