llvm-project/mlir/test/Transforms/test-convert-call-op.mlir
Christian Ulmann 610c761714
[MLIR][FuncToLLVM] Remove typed pointers from call conversion test pass (#71107)
This commit removes typed pointers from the Func to LLVM test pass.
Typed pointers have been deprecated for a while now and it's planned to
soon remove them from the LLVM dialect.

Related PSA:
https://discourse.llvm.org/t/psa-removal-of-typed-pointers-from-the-llvm-dialect/74502
2023-11-03 08:08:12 +01:00

15 lines
517 B
MLIR

// RUN: mlir-opt %s -test-convert-call-op | FileCheck %s
// CHECK-LABEL: llvm.func @callee(!llvm.ptr) -> i32
func.func private @callee(!test.test_type) -> i32
// CHECK-NEXT: llvm.func @caller() -> i32
func.func @caller() -> i32 {
%arg = "test.type_producer"() : () -> !test.test_type
%out = call @callee(%arg) : (!test.test_type) -> i32
return %out : i32
}
// CHECK-NEXT: [[ARG:%.*]] = llvm.mlir.zero : !llvm.ptr
// CHECK-NEXT: [[OUT:%.*]] = llvm.call @callee([[ARG]])
// CHECK-SAME: : (!llvm.ptr) -> i32