summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/ComposeAffineMaps.cpp
diff options
context:
space:
mode:
authorChris Lattner <clattner@google.com>2018-12-28 13:07:39 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 14:43:58 -0700
commit315a466aed9bcc896007098719ed9e0a35a3459d (patch)
tree5de796018001a55709d69fc51d362197680d315c /mlir/lib/Transforms/ComposeAffineMaps.cpp
parent2a463c36b1f1cc42e585144a9b012cf948baa708 (diff)
downloadbcm5719-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/ComposeAffineMaps.cpp')
-rw-r--r--mlir/lib/Transforms/ComposeAffineMaps.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Transforms/ComposeAffineMaps.cpp b/mlir/lib/Transforms/ComposeAffineMaps.cpp
index 8c69fa61578..c97b83f8485 100644
--- a/mlir/lib/Transforms/ComposeAffineMaps.cpp
+++ b/mlir/lib/Transforms/ComposeAffineMaps.cpp
@@ -45,8 +45,8 @@ struct ComposeAffineMaps : public FunctionPass, StmtWalker<ComposeAffineMaps> {
std::vector<OperationInst *> affineApplyOpsToErase;
explicit ComposeAffineMaps() : FunctionPass(&ComposeAffineMaps::passID) {}
- using StmtListType = llvm::iplist<Statement>;
- void walk(StmtListType::iterator Start, StmtListType::iterator End);
+ using InstListType = llvm::iplist<Statement>;
+ void walk(InstListType::iterator Start, InstListType::iterator End);
void visitOperationInst(OperationInst *stmt);
PassResult runOnMLFunction(Function *f) override;
using StmtWalker<ComposeAffineMaps>::walk;
@@ -62,8 +62,8 @@ FunctionPass *mlir::createComposeAffineMapsPass() {
return new ComposeAffineMaps();
}
-void ComposeAffineMaps::walk(StmtListType::iterator Start,
- StmtListType::iterator End) {
+void ComposeAffineMaps::walk(InstListType::iterator Start,
+ InstListType::iterator End) {
while (Start != End) {
walk(&(*Start));
// Increment iterator after walk as visit function can mutate stmt list
OpenPOWER on IntegriCloud