[Mlir-commits] [mlir] [mlir][emitc] Refactor the e2e test for TOSA -> EmitC lowering (PR #194686)

Andrzej WarzyƄski llvmlistbot at llvm.org
Wed Apr 29 01:03:31 PDT 2026


================
@@ -0,0 +1,37 @@
+// DEFINE: %{pipeline} = "builtin.module(\
+// DEFINE:   func.func(\
+// DEFINE:     tosa-to-linalg\
+// DEFINE:   ),\
+// DEFINE:   one-shot-bufferize{\
+// DEFINE:     bufferize-function-boundaries\
+// DEFINE:     function-boundary-type-conversion=identity-layout-map\
+// DEFINE:   },\
+// DEFINE:   buffer-results-to-out-params{\
+// DEFINE:     hoist-static-allocs=true\
+// DEFINE:   },\
+// DEFINE:   func.func(\
+// DEFINE:     convert-linalg-to-loops\
+// DEFINE:   ),\
+// DEFINE:   canonicalize,\
+// DEFINE:   convert-to-emitc\
+// DEFINE: )"
+
+// DEFINE: %{lower_to_emitc} = mlir-opt --pass-pipeline=%{pipeline} %s -o %t
+// DEFINE: %{translate} = mlir-translate -mlir-to-cpp %t -o %t.c 
+// DEFINE: %{compile} =  %host_cc -include stddef.h -c -Wpedantic -Wall -Werror -Wno-unused %t.c
----------------
banach-space wrote:

That's a great suggestion, thanks!

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


More information about the Mlir-commits mailing list