15 lines · plain
1// RUN: mlir-opt %s -test-convert-call-op | FileCheck %s2 3// CHECK-LABEL: llvm.func @callee(!llvm.ptr) -> i324func.func private @callee(!test.test_type) -> i325 6// CHECK-NEXT: llvm.func @caller() -> i327func.func @caller() -> i32 {8 %arg = "test.type_producer"() : () -> !test.test_type9 %out = call @callee(%arg) : (!test.test_type) -> i3210 return %out : i3211}12// CHECK-NEXT: [[ARG:%.*]] = llvm.mlir.zero : !llvm.ptr13// CHECK-NEXT: [[OUT:%.*]] = llvm.call @callee([[ARG]])14// CHECK-SAME: : (!llvm.ptr) -> i3215