[Mlir-commits] [mlir] [mlir][emitc] Add a `declare_func` operation	(PR #80297)
    Simon Camphausen 
    llvmlistbot at llvm.org
       
    Fri Feb  2 04:07:29 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:
Sure, we can test that in a potential future legalization pass.
https://github.com/llvm/llvm-project/pull/80297
    
    
More information about the Mlir-commits
mailing list