1 // RUN: mlir-opt %s -test-convert-call-op | FileCheck %s
3 // CHECK-LABEL: llvm.func @callee(!llvm.ptr) -> i32
4 func.func private @callee(!test.test_type) -> i32
6 // CHECK-NEXT: llvm.func @caller() -> i32
7 func.func @caller() -> i32 {
8 %arg = "test.type_producer"() : () -> !test.test_type
9 %out = call @callee(%arg) : (!test.test_type) -> i32
12 // CHECK-NEXT: [[ARG:%.*]] = llvm.mlir.zero : !llvm.ptr
13 // CHECK-NEXT: [[OUT:%.*]] = llvm.call @callee([[ARG]])
14 // CHECK-SAME: : (!llvm.ptr) -> i32