Add custom lilith script.

Add custom lilith script with paths set to MLIR tools directories to simplify lit test.

PiperOrigin-RevId: 209486232
This commit is contained in:
Jacques Pienaar 2018-08-20 14:37:39 -07:00 committed by jpienaar
parent 9265197c4e
commit ff6daf98fe
8 changed files with 9 additions and 22 deletions

View File

@ -1,4 +1,4 @@
// RUN: %S/../../mlir-opt %s -o - | FileCheck %s
// RUN: mlir-opt %s -o - | FileCheck %s
// CHECK: #map{{[0-9]+}} = (d0, d1) -> (d0, d1)
#map0 = (i, j) -> (i, j)

View File

@ -1,7 +1,4 @@
// TODO(andydavis) Resolve relative path issue w.r.t invoking mlir-opt in RUN
// statements (perhaps through using lit config substitutions).
//
// RUN: %S/../../mlir-opt --help | FileCheck %s
// RUN: mlir-opt --help | FileCheck %s
//
// CHECK: OVERVIEW: MLIR modular optimizer driver

View File

@ -1,4 +1,4 @@
// RUN: %S/../../mlir-opt %s -o - | FileCheck %s
// RUN: mlir-opt %s -o - | FileCheck %s
// CHECK: #map0 = (d0) -> (d0 + 1)

View File

@ -1,5 +1,4 @@
//
// RUN: %S/../../mlir-opt %s -o - -check-parser-errors
// RUN: mlir-opt %s -o - -check-parser-errors
// Check different error cases.
// -----

View File

@ -1,7 +1,4 @@
// TODO(andydavis) Resolve relative path issue w.r.t invoking mlir-opt in RUN
// statements (perhaps through using lit config substitutions).
//
// RUN: %S/../../mlir-opt %s -o - -check-parser-errors
// RUN: mlir-opt %s -o - -check-parser-errors
cfgfunc @dim(tensor<1xf32>) {
bb(%0: tensor<1xf32>):

View File

@ -1,7 +1,4 @@
// TODO(andydavis) Resolve relative path issue w.r.t invoking mlir-opt in RUN
// statements (perhaps through using lit config substitutions).
//
// RUN: %S/../../mlir-opt %s -o - -check-parser-errors
// RUN: mlir-opt %s -o - -check-parser-errors
// Check different error cases.
// -----

View File

@ -1,4 +1,4 @@
// RUN: %S/../../mlir-opt %s -o - | FileCheck %s
// RUN: mlir-opt %s -o - | FileCheck %s
// CHECK: #map0 = (d0, d1) -> (d0, d1)
// CHECK: #map1 = (d0, d1)[s0] -> (d0 + s0, d1)

View File

@ -1,7 +1,4 @@
// TODO(andydavis) Resolve relative path issue w.r.t invoking mlir-opt in RUN
// statements (perhaps through using lit config substitutions).
//
// RUN: %S/../../mlir-opt %s -o - | FileCheck %s
// RUN: mlir-opt %s -o - | FileCheck %s
// CHECK-DAG: #map{{[0-9]+}} = (d0, d1, d2, d3, d4)[s0] -> (d0, d1, d2, d3, d4)
#map0 = (d0, d1, d2, d3, d4)[s0] -> (d0, d1, d2, d3, d4)
@ -334,4 +331,4 @@ bb0:
// CHECK: "foo"() {a: 4.000000e+00, b: 2.000000e+00, c: 7.100000e+00, d: -0.000000e+00} : () -> ()
"foo"(){a: 4.0, b: 2.0, c: 7.1, d: -0.0} : () -> ()
return
}
}