summaryrefslogtreecommitdiffstats
path: root/mlir/test/lib/Transforms/TestLoopMapping.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/test/lib/Transforms/TestLoopMapping.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/test/lib/Transforms/TestLoopMapping.cpp')
-rw-r--r--mlir/test/lib/Transforms/TestLoopMapping.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/Transforms/TestLoopMapping.cpp b/mlir/test/lib/Transforms/TestLoopMapping.cpp
index fb1ef64d26f..bf354670f92 100644
--- a/mlir/test/lib/Transforms/TestLoopMapping.cpp
+++ b/mlir/test/lib/Transforms/TestLoopMapping.cpp
@@ -51,7 +51,7 @@ public:
func.walk<loop::ForOp>([&processorIds, &numProcessors](loop::ForOp op) {
// Ignore nested loops.
- if (op.getContainingRegion()->getParentOfType<loop::ForOp>())
+ if (op.getParentRegion()->getParentOfType<loop::ForOp>())
return;
mapLoopToProcessorIds(op, processorIds, numProcessors);
});
OpenPOWER on IntegriCloud