diff options
author | River Riddle <riverriddle@google.com> | 2019-08-09 20:07:25 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-09 20:07:52 -0700 |
commit | 1e42954032cd4288963b652e1eeeb26915cf8eac (patch) | |
tree | 654703084ad169c57e34b5e4a9ffc54ccfac4302 /mlir/lib/Transforms/AffineDataCopyGeneration.cpp | |
parent | ac68637ba94d05f413b1b963950c300fb2f81a99 (diff) | |
download | bcm5719-llvm-1e42954032cd4288963b652e1eeeb26915cf8eac.tar.gz bcm5719-llvm-1e42954032cd4288963b652e1eeeb26915cf8eac.zip |
NFC: Standardize the terminology used for parent ops/regions/etc.
There are currently several different terms used to refer to a parent IR unit in 'get' methods: getParent/getEnclosing/getContaining. This cl standardizes all of these methods to use 'getParent*'.
PiperOrigin-RevId: 262680287
Diffstat (limited to 'mlir/lib/Transforms/AffineDataCopyGeneration.cpp')
-rw-r--r-- | mlir/lib/Transforms/AffineDataCopyGeneration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/Transforms/AffineDataCopyGeneration.cpp b/mlir/lib/Transforms/AffineDataCopyGeneration.cpp index c4dec159190..522ed4a4c09 100644 --- a/mlir/lib/Transforms/AffineDataCopyGeneration.cpp +++ b/mlir/lib/Transforms/AffineDataCopyGeneration.cpp @@ -249,7 +249,7 @@ static bool getFullMemRefAsRegion(Operation *opInst, unsigned numParamLoopIVs, static InFlightDiagnostic LLVM_ATTRIBUTE_UNUSED emitRemarkForBlock(Block &block) { - return block.getContainingOp()->emitRemark(); + return block.getParentOp()->emitRemark(); } /// Generates a point-wise copy from/to `memref' to/from `fastMemRef' and @@ -872,7 +872,7 @@ uint64_t AffineDataCopyGeneration::runOnBlock(Block::iterator begin, if (totalCopyBuffersSizeInBytes > fastMemCapacityBytes) { StringRef str = "Total size of all copy buffers' for this block " "exceeds fast memory capacity\n"; - block->getContainingOp()->emitError(str); + block->getParentOp()->emitError(str); } return totalCopyBuffersSizeInBytes; |