[mlir][py] Enable loading only specified dialects during creation. (#121421)
[llvm-project.git] / mlir / test / mlir-reduce / multiple-function.mlir
blob7c7b5051469952b954d09917b0162b340cad310f
1 // UNSUPPORTED: system-windows
2 // RUN: mlir-reduce %s -reduction-tree='traversal-mode=0 test=%S/failure-test.sh' | FileCheck %s
3 // This input should be reduced by the pass pipeline so that only
4 // the @simple5 function remains as this is the shortest function
5 // containing the interesting behavior.
7 // CHECK-NOT: func @simple1() {
8 func.func @simple1() {
9   return
12 // CHECK-NOT: func @simple2() {
13 func.func @simple2() {
14   return
17 // CHECK-LABEL: func @simple3() {
18 func.func @simple3() {
19   "test.op_crash" () : () -> ()
20   return
23 // CHECK-NOT: func @simple4() {
24 func.func @simple4(%arg0: i1, %arg1: memref<2xf32>, %arg2: memref<2xf32>) {
25   cf.cond_br %arg0, ^bb1, ^bb2
26 ^bb1:
27   cf.br ^bb3(%arg1 : memref<2xf32>)
28 ^bb2:
29   %0 = memref.alloc() : memref<2xf32>
30   cf.br ^bb3(%0 : memref<2xf32>)
31 ^bb3(%1: memref<2xf32>):
32   "test.op_crash"(%1, %arg2) : (memref<2xf32>, memref<2xf32>) -> ()
33   return
36 // CHECK-NOT: func @simple5() {
37 func.func @simple5() {
38   return