From adbba70d8215007e2519fce8933f7259e64b991d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Oct 2018 16:58:08 -0700 Subject: 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 --- mlir/lib/Transforms/Vectorize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir/lib/Transforms/Vectorize.cpp') 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 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(); } -- cgit v1.2.3