diff options
| author | Chris Lattner <clattner@google.com> | 2018-12-28 13:07:39 -0800 |
|---|---|---|
| committer | jpienaar <jpienaar@google.com> | 2019-03-29 14:43:58 -0700 |
| commit | 315a466aed9bcc896007098719ed9e0a35a3459d (patch) | |
| tree | 5de796018001a55709d69fc51d362197680d315c /mlir/lib/Transforms/ViewFunctionGraph.cpp | |
| parent | 2a463c36b1f1cc42e585144a9b012cf948baa708 (diff) | |
| download | bcm5719-llvm-315a466aed9bcc896007098719ed9e0a35a3459d.tar.gz bcm5719-llvm-315a466aed9bcc896007098719ed9e0a35a3459d.zip | |
Rename BasicBlock and StmtBlock to Block, and make a pass cleaning it up. I did not make an effort to rename all of the 'bb' names in the codebase, since they are still correct and any specific missed once can be fixed up on demand.
The last major renaming is Statement -> Instruction, which is why Statement and
Stmt still appears in various places.
This is step 19/n towards merging instructions and statements, NFC.
PiperOrigin-RevId: 227163082
Diffstat (limited to 'mlir/lib/Transforms/ViewFunctionGraph.cpp')
| -rw-r--r-- | mlir/lib/Transforms/ViewFunctionGraph.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mlir/lib/Transforms/ViewFunctionGraph.cpp b/mlir/lib/Transforms/ViewFunctionGraph.cpp index 2ce8af3613a..50a3cf5a595 100644 --- a/mlir/lib/Transforms/ViewFunctionGraph.cpp +++ b/mlir/lib/Transforms/ViewFunctionGraph.cpp @@ -28,16 +28,16 @@ template <> struct llvm::DOTGraphTraits<const Function *> : public DefaultDOTGraphTraits { using DefaultDOTGraphTraits::DefaultDOTGraphTraits; - static std::string getNodeLabel(const BasicBlock *basicBlock, - const Function *); + static std::string getNodeLabel(const Block *Block, const Function *); }; -std::string llvm::DOTGraphTraits<const Function *>::getNodeLabel( - const BasicBlock *basicBlock, const Function *) { +std::string +llvm::DOTGraphTraits<const Function *>::getNodeLabel(const Block *Block, + const Function *) { // Reuse the print output for the node labels. std::string outStreamStr; raw_string_ostream os(outStreamStr); - basicBlock->print(os); + Block->print(os); std::string &outStr = os.str(); if (outStr[0] == '\n') |

