diff options
| author | MLIR Team <no-reply@google.com> | 2019-10-08 18:23:13 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-08 18:23:43 -0700 |
| commit | 744615123618e000caba27ed9fe3885e79668cb5 (patch) | |
| tree | 3b07a7bd209246af31820decc872adad2f3c7c3f /mlir/test/Transforms | |
| parent | 71c7962201cace1300ca9c981959b9693edb8eea (diff) | |
| download | bcm5719-llvm-744615123618e000caba27ed9fe3885e79668cb5.tar.gz bcm5719-llvm-744615123618e000caba27ed9fe3885e79668cb5.zip | |
Add Instance Specific Pass Options.
This allows individual passes to define options structs and for these options to be parsed per instance of the pass while building the pass pipeline from the command line provided textual specification.
The user can specify these per-instance pipeline options like so:
```
struct MyPassOptions : public PassOptions<MyPassOptions> {
Option<int> exampleOption{*this, "flag-name", llvm::cl::desc("...")};
List<int> exampleListOption{*this, "list-flag-name", llvm::cl::desc("...")};
};
static PassRegistration<MyPass, MyPassOptions> pass("my-pass", "description");
```
PiperOrigin-RevId: 273650140
Diffstat (limited to 'mlir/test/Transforms')
| -rw-r--r-- | mlir/test/Transforms/parametric-tiling.mlir | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/test/Transforms/parametric-tiling.mlir b/mlir/test/Transforms/parametric-tiling.mlir index 7ee323a2140..42654628970 100644 --- a/mlir/test/Transforms/parametric-tiling.mlir +++ b/mlir/test/Transforms/parametric-tiling.mlir @@ -1,5 +1,5 @@ -// RUN: mlir-opt -test-extract-fixed-outer-loops -test-outer-loop-sizes=7 %s | FileCheck %s --check-prefixes=COMMON,TILE_7 -// RUN: mlir-opt -test-extract-fixed-outer-loops -test-outer-loop-sizes=7,4 %s | FileCheck %s --check-prefixes=COMMON,TILE_74 +// RUN: mlir-opt -test-extract-fixed-outer-loops='test-outer-loop-sizes=7' %s | FileCheck %s --check-prefixes=COMMON,TILE_7 +// RUN: mlir-opt -test-extract-fixed-outer-loops='test-outer-loop-sizes=7,4' %s | FileCheck %s --check-prefixes=COMMON,TILE_74 // COMMON-LABEL: @rectangular func @rectangular(%arg0: memref<?x?xf32>) { @@ -130,4 +130,4 @@ func @triangular(%arg0: memref<?x?xf32>) { } } return -}
\ No newline at end of file +} |

