summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/PipelineDataTransfer.cpp
diff options
context:
space:
mode:
authorUday Bondhugula <bondhugula@google.com>2019-02-06 21:54:18 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:19:33 -0700
commit4ba8c9147d04d82d629dde4730e1dd5d4ae4123d (patch)
treeb16681ef2a8f2327993d1f4b75596ce100732403 /mlir/lib/Transforms/PipelineDataTransfer.cpp
parent99fee0b181106a0213501800c6076aec95afa46c (diff)
downloadbcm5719-llvm-4ba8c9147d04d82d629dde4730e1dd5d4ae4123d.tar.gz
bcm5719-llvm-4ba8c9147d04d82d629dde4730e1dd5d4ae4123d.zip
Automated rollback of changelist 232717775.
PiperOrigin-RevId: 232807986
Diffstat (limited to 'mlir/lib/Transforms/PipelineDataTransfer.cpp')
-rw-r--r--mlir/lib/Transforms/PipelineDataTransfer.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/mlir/lib/Transforms/PipelineDataTransfer.cpp b/mlir/lib/Transforms/PipelineDataTransfer.cpp
index 84c8cd830dc..cfa045f2279 100644
--- a/mlir/lib/Transforms/PipelineDataTransfer.cpp
+++ b/mlir/lib/Transforms/PipelineDataTransfer.cpp
@@ -71,11 +71,11 @@ static unsigned getTagMemRefPos(const Instruction &dmaInst) {
return 0;
}
-/// Doubles the buffer of the supplied memref on the specified 'affine.for'
-/// instruction by adding a leading dimension of size two to the memref.
-/// Replaces all uses of the old memref by the new one while indexing the newly
-/// added dimension by the loop IV of the specified 'affine.for' instruction
-/// modulo 2. Returns false if such a replacement cannot be performed.
+/// Doubles the buffer of the supplied memref on the specified 'for' instruction
+/// by adding a leading dimension of size two to the memref. Replaces all uses
+/// of the old memref by the new one while indexing the newly added dimension by
+/// the loop IV of the specified 'for' instruction modulo 2. Returns false if
+/// such a replacement cannot be performed.
static bool doubleBuffer(Value *oldMemRef, OpPointer<AffineForOp> forOp) {
auto *forBody = forOp->getBody();
FuncBuilder bInner(forBody, forBody->begin());
@@ -108,7 +108,7 @@ static bool doubleBuffer(Value *oldMemRef, OpPointer<AffineForOp> forOp) {
dynamicDimCount++));
}
- // Create and place the alloc right before the 'affine.for' instruction.
+ // Create and place the alloc right before the 'for' instruction.
// TODO(mlir-team): we are assuming scoped allocation here, and aren't
// inserting a dealloc -- this isn't the right thing.
Value *newMemRef =
@@ -137,9 +137,9 @@ static bool doubleBuffer(Value *oldMemRef, OpPointer<AffineForOp> forOp) {
/// Returns success if the IR is in a valid state.
PassResult PipelineDataTransfer::runOnFunction(Function *f) {
// Do a post order walk so that inner loop DMAs are processed first. This is
- // necessary since 'affine.for' instructions nested within would otherwise
- // become invalid (erased) when the outer loop is pipelined (the pipelined one
- // gets deleted and replaced by a prologue, a new steady-state loop and an
+ // necessary since 'for' instructions nested within would otherwise become
+ // invalid (erased) when the outer loop is pipelined (the pipelined one gets
+ // deleted and replaced by a prologue, a new steady-state loop and an
// epilogue).
forOps.clear();
f->walkPostOrder<AffineForOp>(
OpenPOWER on IntegriCloud