summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/Vectorize.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2018-10-25 16:58:08 -0700
committerjpienaar <jpienaar@google.com>2019-03-29 13:40:05 -0700
commitadbba70d8215007e2519fce8933f7259e64b991d (patch)
tree7218b65debde9d275f0e99a62583261a05ac386c /mlir/lib/Transforms/Vectorize.cpp
parent7de0da9594e5411aa555ee1a09e6c7f7bace0012 (diff)
downloadbcm5719-llvm-adbba70d8215007e2519fce8933f7259e64b991d.tar.gz
bcm5719-llvm-adbba70d8215007e2519fce8933f7259e64b991d.zip
Simplify FunctionPass to eliminate the CFGFunctionPass/MLFunctionPass
distinction. FunctionPasses can now choose to get called on all functions, or have the driver split CFG/ML Functions up for them. NFC. PiperOrigin-RevId: 218775885
Diffstat (limited to 'mlir/lib/Transforms/Vectorize.cpp')
-rw-r--r--mlir/lib/Transforms/Vectorize.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/Vectorize.cpp b/mlir/lib/Transforms/Vectorize.cpp
index 37c4f3abb59..f38fb8a117b 100644
--- a/mlir/lib/Transforms/Vectorize.cpp
+++ b/mlir/lib/Transforms/Vectorize.cpp
@@ -39,7 +39,7 @@ static cl::list<unsigned> clVirtualVectorSize(
namespace {
-struct Vectorize : public MLFunctionPass {
+struct Vectorize : public FunctionPass {
PassResult runOnMLFunction(MLFunction *f) override;
// Thread-safe RAII contexts local to pass, BumpPtrAllocator freed on exit.
@@ -73,4 +73,4 @@ PassResult Vectorize::runOnMLFunction(MLFunction *f) {
return PassResult::Success;
}
-MLFunctionPass *mlir::createVectorizePass() { return new Vectorize(); }
+FunctionPass *mlir::createVectorizePass() { return new Vectorize(); }
OpenPOWER on IntegriCloud