From 1e42954032cd4288963b652e1eeeb26915cf8eac Mon Sep 17 00:00:00 2001 From: River Riddle Date: Fri, 9 Aug 2019 20:07:25 -0700 Subject: 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 --- mlir/test/lib/Transforms/TestLoopMapping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mlir/test/lib/Transforms/TestLoopMapping.cpp') 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([&processorIds, &numProcessors](loop::ForOp op) { // Ignore nested loops. - if (op.getContainingRegion()->getParentOfType()) + if (op.getParentRegion()->getParentOfType()) return; mapLoopToProcessorIds(op, processorIds, numProcessors); }); -- cgit v1.2.3