summaryrefslogtreecommitdiffstats
path: root/mlir/lib/IR/Value.cpp
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/IR/Value.cpp
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/IR/Value.cpp')
-rw-r--r--mlir/lib/IR/Value.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/lib/IR/Value.cpp b/mlir/lib/IR/Value.cpp
index 4fa49213a3f..4ad1460e90b 100644
--- a/mlir/lib/IR/Value.cpp
+++ b/mlir/lib/IR/Value.cpp
@@ -35,12 +35,12 @@ Location Value::getLoc() {
}
/// Return the Region in which this Value is defined.
-Region *Value::getContainingRegion() {
+Region *Value::getParentRegion() {
switch (getKind()) {
case Value::Kind::BlockArgument:
return cast<BlockArgument>(this)->getOwner()->getParent();
case Value::Kind::OpResult:
- return getDefiningOp()->getContainingRegion();
+ return getDefiningOp()->getParentRegion();
}
llvm_unreachable("Unknown Value Kind");
}
OpenPOWER on IntegriCloud