diff options
author | Chris Lattner <clattner@nondot.org> | 2021-05-25 14:50:35 -0700 |
---|---|---|
committer | Chris Lattner <clattner@nondot.org> | 2021-05-25 14:51:05 -0700 |
commit | a6a57f03be40cf2c546805155624a206649092ec (patch) | |
tree | 606dcdbfe5e0f800d9045d257f370853fc0a0bda /mlir/test/Examples | |
parent | df005fa364ae3914231f98f80acc120fcf782c26 (diff) | |
download | llvm-a6a57f03be40cf2c546805155624a206649092ec.zip llvm-a6a57f03be40cf2c546805155624a206649092ec.tar.gz llvm-a6a57f03be40cf2c546805155624a206649092ec.tar.bz2 |
[Toy] Update tests to pass with top-down canonicalize pass. NFC
Diffstat (limited to 'mlir/test/Examples')
-rw-r--r-- | mlir/test/Examples/Toy/Ch5/affine-lowering.mlir | 24 | ||||
-rw-r--r-- | mlir/test/Examples/Toy/Ch6/affine-lowering.mlir | 24 | ||||
-rw-r--r-- | mlir/test/Examples/Toy/Ch7/affine-lowering.mlir | 24 |
3 files changed, 36 insertions, 36 deletions
diff --git a/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir index a51d497..4a4edec 100644 --- a/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir +++ b/mlir/test/Examples/Toy/Ch5/affine-lowering.mlir @@ -10,12 +10,12 @@ func @main() { } // CHECK-LABEL: func @main() -// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64> @@ -41,12 +41,12 @@ func @main() { // CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64> // OPT-LABEL: func @main() -// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64> // OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64> diff --git a/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir index 7e0e5ea..72e7e93 100644 --- a/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir +++ b/mlir/test/Examples/Toy/Ch6/affine-lowering.mlir @@ -10,12 +10,12 @@ func @main() { } // CHECK-LABEL: func @main() -// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64> @@ -41,12 +41,12 @@ func @main() { // CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64> // OPT-LABEL: func @main() -// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64> // OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64> diff --git a/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir b/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir index e19d8f8..99b4cb0 100644 --- a/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir +++ b/mlir/test/Examples/Toy/Ch7/affine-lowering.mlir @@ -10,12 +10,12 @@ func @main() { } // CHECK-LABEL: func @main() -// CHECK: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// CHECK: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// CHECK: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// CHECK: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// CHECK: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// CHECK: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// CHECK-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// CHECK-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// CHECK-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// CHECK-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// CHECK-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// CHECK-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // CHECK: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_7:%.*]] = memref.alloc() : memref<3x2xf64> // CHECK: [[VAL_8:%.*]] = memref.alloc() : memref<2x3xf64> @@ -41,12 +41,12 @@ func @main() { // CHECK: memref.dealloc [[VAL_6]] : memref<3x2xf64> // OPT-LABEL: func @main() -// OPT: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 -// OPT: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 -// OPT: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 -// OPT: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 -// OPT: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 -// OPT: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 +// OPT-DAG: [[VAL_0:%.*]] = constant 1.000000e+00 : f64 +// OPT-DAG: [[VAL_1:%.*]] = constant 2.000000e+00 : f64 +// OPT-DAG: [[VAL_2:%.*]] = constant 3.000000e+00 : f64 +// OPT-DAG: [[VAL_3:%.*]] = constant 4.000000e+00 : f64 +// OPT-DAG: [[VAL_4:%.*]] = constant 5.000000e+00 : f64 +// OPT-DAG: [[VAL_5:%.*]] = constant 6.000000e+00 : f64 // OPT: [[VAL_6:%.*]] = memref.alloc() : memref<3x2xf64> // OPT: [[VAL_7:%.*]] = memref.alloc() : memref<2x3xf64> // OPT: affine.store [[VAL_0]], [[VAL_7]][0, 0] : memref<2x3xf64> |