summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ViewRegionGraph.cpp
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-12-18 09:28:48 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-12-18 09:29:20 -0800
commit4562e389a43caa2e30ebf277c12743edafe6a0ac (patch)
tree1901855666adba9be9576e864877fe191e197085 /mlir/lib/Transforms/ViewRegionGraph.cpp
parent24ab8362f2099ed42f2e05f09fb9323ad0c5ab27 (diff)
downloadbcm5719-llvm-4562e389a43caa2e30ebf277c12743edafe6a0ac.tar.gz
bcm5719-llvm-4562e389a43caa2e30ebf277c12743edafe6a0ac.zip
NFC: Remove unnecessary 'llvm::' prefix from uses of llvm symbols declared in `mlir` namespace.
Aside from being cleaner, this also makes the codebase more consistent. PiperOrigin-RevId: 286206974
Diffstat (limited to 'mlir/lib/Transforms/ViewRegionGraph.cpp')
-rw-r--r--mlir/lib/Transforms/ViewRegionGraph.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/mlir/lib/Transforms/ViewRegionGraph.cpp b/mlir/lib/Transforms/ViewRegionGraph.cpp
index 57c2f31e6a4..db55415d62e 100644
--- a/mlir/lib/Transforms/ViewRegionGraph.cpp
+++ b/mlir/lib/Transforms/ViewRegionGraph.cpp
@@ -53,41 +53,40 @@ std::string DOTGraphTraits<Region *>::getNodeLabel(Block *Block, Region *) {
} // end namespace llvm
-void mlir::viewGraph(Region &region, const llvm::Twine &name, bool shortNames,
- const llvm::Twine &title,
- llvm::GraphProgram::Name program) {
+void mlir::viewGraph(Region &region, const Twine &name, bool shortNames,
+ const Twine &title, llvm::GraphProgram::Name program) {
llvm::ViewGraph(&region, name, shortNames, title, program);
}
-llvm::raw_ostream &mlir::writeGraph(llvm::raw_ostream &os, Region &region,
- bool shortNames, const llvm::Twine &title) {
+raw_ostream &mlir::writeGraph(raw_ostream &os, Region &region, bool shortNames,
+ const Twine &title) {
return llvm::WriteGraph(os, &region, shortNames, title);
}
-void mlir::Region::viewGraph(const llvm::Twine &regionName) {
+void mlir::Region::viewGraph(const Twine &regionName) {
::mlir::viewGraph(*this, regionName);
}
void mlir::Region::viewGraph() { viewGraph("region"); }
namespace {
struct PrintCFGPass : public FunctionPass<PrintCFGPass> {
- PrintCFGPass(llvm::raw_ostream &os = llvm::errs(), bool shortNames = false,
- const llvm::Twine &title = "")
+ PrintCFGPass(raw_ostream &os = llvm::errs(), bool shortNames = false,
+ const Twine &title = "")
: os(os), shortNames(shortNames), title(title.str()) {}
void runOnFunction() override {
mlir::writeGraph(os, getFunction().getBody(), shortNames, title);
}
private:
- llvm::raw_ostream &os;
+ raw_ostream &os;
bool shortNames;
std::string title;
};
} // namespace
std::unique_ptr<mlir::OpPassBase<mlir::FuncOp>>
-mlir::createPrintCFGGraphPass(llvm::raw_ostream &os, bool shortNames,
- const llvm::Twine &title) {
+mlir::createPrintCFGGraphPass(raw_ostream &os, bool shortNames,
+ const Twine &title) {
return std::make_unique<PrintCFGPass>(os, shortNames, title);
}
OpenPOWER on IntegriCloud