summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewFunctionGraph.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2018-12-30 23:10:35 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:49:52 -0700
commit7974889f549a445890435950208ab3863722a3c5 (patch)
tree3859ccb7d2a785c32208c4fd2ed9e2137af7dcf7 /mlir/lib/Transforms/ViewFunctionGraph.cpp
parent3c8fc797deaed5919aa13602e65d10395472c304 (diff)
downloadbcm5719-llvm-7974889f549a445890435950208ab3863722a3c5.tar.gz
bcm5719-llvm-7974889f549a445890435950208ab3863722a3c5.zip
Update and generalize various passes to work on both CFG and ML functions,
simplifying them in minor ways. The only significant cleanup here is the constant folding pass. All the other changes are simple and easy, but this is still enough to shrink the compiler by 45LOC. The one pass left to merge is the CSE pass, which will be move involved, so I'm splitting it out to its own patch (which I'll tackle right after this). This is step 28/n towards merging instructions and statements. PiperOrigin-RevId: 227328115
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
-rw-r--r--mlir/lib/Transforms/ViewFunctionGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp
index 50a3cf5a595..e46dc503ea9 100644
--- a/mlir/lib/Transforms/ViewFunctionGraph.cpp
+++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp
@@ -78,7 +78,7 @@ struct PrintCFGPass : public FunctionPass {
const llvm::Twine &title = "")
: FunctionPass(&PrintCFGPass::passID), os(os), shortNames(shortNames),
title(title) {}
- PassResult runOnCFGFunction(Function *function) override {
+ PassResult runOnFunction(Function *function) override {
mlir::writeGraph(os, function, shortNames, title);
return success();
}
OpenPOWER on IntegriCloud