[Mlir-commits] [mlir] [mlir][emitc] Add a `declare_func` operation (PR #80297)

Simon Camphausen llvmlistbot at llvm.org
Thu Feb 1 08:19:10 PST 2024


================
@@ -0,0 +1,16 @@
+// RUN: mlir-translate -mlir-to-cpp %s | FileCheck %s
+
+// CHECK: int32_t bar(int32_t [[V1:[^ ]*]]);
+emitc.declare_func @bar
+// CHECK: int32_t bar(int32_t [[V1:[^ ]*]]) {
+emitc.func @bar(%arg0: i32) -> i32 {
----------------
simon-camp wrote:

Can you change this to call @foo below, like in the op description. This shows the usefulness/need of the op better.

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


More information about the Mlir-commits mailing list