aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riddleriver@gmail.com>2020-04-01 01:48:34 -0700
committerRiver Riddle <riddleriver@gmail.com>2020-04-01 02:10:46 -0700
commit8155e41ac6196f035875229ee4fc5f2e3bfb4855 (patch)
tree9c68176156ec61e8580e0133d953326b92d6cb9e /mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
parent038f03cb5ef5d44676cbde06560ed2668f4a7acc (diff)
downloadllvm-8155e41ac6196f035875229ee4fc5f2e3bfb4855.zip
llvm-8155e41ac6196f035875229ee4fc5f2e3bfb4855.tar.gz
llvm-8155e41ac6196f035875229ee4fc5f2e3bfb4855.tar.bz2
[mlir][Pass] Add a tablegen backend for defining Pass information
This will greatly simplify a number of things related to passes: * Enables generation of pass registration * Enables generation of boiler plate pass utilities * Enables generation of pass documentation This revision focuses on adding the basic structure and adds support for generating the registration for passes in the Transforms/ directory. Future revisions will add more support and move more passes over. Differential Revision: https://reviews.llvm.org/D76656
Diffstat (limited to 'mlir/lib/Transforms/LoopInvariantCodeMotion.cpp')
-rw-r--r--mlir/lib/Transforms/LoopInvariantCodeMotion.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
index e616663..3092248 100644
--- a/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
+++ b/mlir/lib/Transforms/LoopInvariantCodeMotion.cpp
@@ -121,7 +121,3 @@ void LoopInvariantCodeMotion::runOnOperation() {
std::unique_ptr<Pass> mlir::createLoopInvariantCodeMotionPass() {
return std::make_unique<LoopInvariantCodeMotion>();
}
-
-static PassRegistration<LoopInvariantCodeMotion>
- pass("loop-invariant-code-motion",
- "Hoist loop invariant instructions outside of the loop");