summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/PipelineDataTransfer.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/PipelineDataTransfer.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/PipelineDataTransfer.cpp')
-rw-r--r--mlir/lib/Transforms/PipelineDataTransfer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/PipelineDataTransfer.cpp b/mlir/lib/Transforms/PipelineDataTransfer.cpp
index a0964a67fa6..c8a6ced4ed1 100644
--- a/mlir/lib/Transforms/PipelineDataTransfer.cpp
+++ b/mlir/lib/Transforms/PipelineDataTransfer.cpp
@@ -345,7 +345,7 @@ PassResult PipelineDataTransfer::runOnForStmt(ForStmt *forStmt) {
}
// Get shifts stored in map.
- std::vector<uint64_t> shifts(forStmt->getBody()->getStatements().size());
+ std::vector<uint64_t> shifts(forStmt->getBody()->getInstructions().size());
unsigned s = 0;
for (auto &stmt : *forStmt->getBody()) {
assert(stmtShiftMap.find(&stmt) != stmtShiftMap.end());
OpenPOWER on IntegriCloud