// RUN: torch-mlir-opt %s -refback-munge-calling-conventions | FileCheck %s // CHECK-LABEL: func @f( // CHECK-SAME: %[[ARG0:.*]]: memref<*xf32>) attributes {llvm.emit_c_interface} { // CHECK: %[[VAL:.*]] = memref.cast %[[ARG0]] : memref<*xf32> to memref // CHECK: %[[RESULT:.*]] = memref.cast %[[VAL]] : memref to memref<*xf32> // CHECK: call @refbackend_consume_func_return(%[[RESULT]]) : (memref<*xf32>) -> () // CHECK: return func @f(%arg0: memref) -> memref { return %arg0 : memref }