diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2018-11-07 10:24:03 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 13:50:34 -0700 |
| commit | cc9a6ed09ddf75ad3964af5344b6fb74729d7a19 (patch) | |
| tree | 7564cfa3a9c4e943c4ab43e5a08b941cb70541ae /mlir/lib/Transforms/LoopFusion.cpp | |
| parent | a150e0b33dec0bc27d52184a47fda28e6b857915 (diff) | |
| download | bcm5719-llvm-cc9a6ed09ddf75ad3964af5344b6fb74729d7a19.tar.gz bcm5719-llvm-cc9a6ed09ddf75ad3964af5344b6fb74729d7a19.zip | |
Initialize Pass with PassID.
The passID is not currently stored in Pass but this avoids the unused variable warning. The passID is used to uniquely identify passes, currently this is only stored/used in PassInfo.
PiperOrigin-RevId: 220485662
Diffstat (limited to 'mlir/lib/Transforms/LoopFusion.cpp')
| -rw-r--r-- | mlir/lib/Transforms/LoopFusion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp index ae4647e143d..87657aeb359 100644 --- a/mlir/lib/Transforms/LoopFusion.cpp +++ b/mlir/lib/Transforms/LoopFusion.cpp @@ -42,7 +42,7 @@ namespace { // TODO(andydavis) Extend this pass to check for fusion preventing dependences, // and add support for more general loop fusion algorithms. struct LoopFusion : public FunctionPass { - LoopFusion() {} + LoopFusion() : FunctionPass(&LoopFusion::passID) {} PassResult runOnMLFunction(MLFunction *f) override; static char passID; |

