[Mlir-commits] [mlir] [mlir][EmitC]Expand the MemRefToEmitC pass - Lowering `AllocOp` (PR #148257)
Simon Camphausen
llvmlistbot at llvm.org
Tue Jul 22 08:07:31 PDT 2025
================
@@ -8,6 +8,17 @@ func.func @alloca() {
return
}
+// CHECK-LABEL: alloc()
+func.func @alloc() {
+ // CHECK-NEXT: %0 = emitc.call_opaque "sizeof"() {args = [i32]} : () -> !emitc.size_t
----------------
simon-camp wrote:
i32 is a TypeAttr, so Translation to C types is done in the Emitter during Translation.
https://github.com/llvm/llvm-project/pull/148257
More information about the Mlir-commits
mailing list