summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/LoopOps
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-08-09 20:07:25 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-08-09 20:07:52 -0700
commit1e42954032cd4288963b652e1eeeb26915cf8eac (patch)
tree654703084ad169c57e34b5e4a9ffc54ccfac4302 /mlir/lib/Dialect/LoopOps
parentac68637ba94d05f413b1b963950c300fb2f81a99 (diff)
downloadbcm5719-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/Dialect/LoopOps')
-rw-r--r--mlir/lib/Dialect/LoopOps/LoopOps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/LoopOps/LoopOps.cpp b/mlir/lib/Dialect/LoopOps/LoopOps.cpp
index 63e0da029c7..13dc35ec7ce 100644
--- a/mlir/lib/Dialect/LoopOps/LoopOps.cpp
+++ b/mlir/lib/Dialect/LoopOps/LoopOps.cpp
@@ -118,7 +118,7 @@ ForOp mlir::loop::getForInductionVarOwner(Value *val) {
if (!ivArg)
return ForOp();
assert(ivArg->getOwner() && "unlinked block argument");
- auto *containingInst = ivArg->getOwner()->getContainingOp();
+ auto *containingInst = ivArg->getOwner()->getParentOp();
return dyn_cast_or_null<ForOp>(containingInst);
}
OpenPOWER on IntegriCloud