bolt/deps/llvm-18.1.8/mlir/test/mlir-pdll/Integration/test-pdll.mlir

18 lines
432 B
MLIR
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: mlir-opt %s -test-pdll-pass | FileCheck %s
// CHECK-LABEL: func @simpleTest
func.func @simpleTest() {
// CHECK: test.success
"test.simple"() : () -> ()
return
}
// CHECK-LABEL: func @testImportedInterface
func.func @testImportedInterface() -> i1 {
// CHECK: test.non_cast
// CHECK: test.success
"test.non_cast"() : () -> ()
%value = "builtin.unrealized_conversion_cast"() : () -> (i1)
return %value : i1
}