Home
last modified time | relevance | path

Searched refs:getParentRegion (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/mlir/lib/IR/
H A DRegion.cpp45 Region *Region::getParentRegion() { in getParentRegion() function in Region
47 return container->getParentRegion(); in getParentRegion()
54 while ((other = other->getParentRegion())) { in isProperAncestor()
170 while (Region *opRegion = curOp->getParentRegion()) { in findAncestorOpInRegion()
186 Region *llvm::ilist_traits<::mlir::Block>::getParentRegion() { in getParentRegion() function in llvm::ilist_traits::mlir::Block
197 block->parentValidOpOrderPair.setPointer(getParentRegion()); in addNodeToList()
213 auto *curParent = getParentRegion(); in transferNodesFromList()
214 if (curParent == otherList.getParentRegion()) in transferNodesFromList()
H A DValue.cpp41 Region *Value::getParentRegion() { in getParentRegion() function in Value
43 return op->getParentRegion(); in getParentRegion()
/llvm-project-15.0.7/mlir/lib/Transforms/Utils/
H A DLoopInvariantCodeMotionUtils.cpp40 if (op->isAncestor(operand.getParentRegion()->getParentOp())) in canBeHoisted()
74 if (op->getParentRegion() != region) in moveLoopInvariantCode()
89 if (user->getParentRegion() == region) in moveLoopInvariantCode()
H A DRegionUtils.cpp27 if (region.isAncestor(use.getOwner()->getParentRegion())) in replaceAllUsesInRegionWith()
40 for (auto *reg = limit.getParentRegion(); reg != nullptr; in visitUsedValuesDefinedAbove()
41 reg = reg->getParentRegion()) { in visitUsedValuesDefinedAbove()
48 if (properAncestors.count(operand.get().getParentRegion())) in visitUsedValuesDefinedAbove()
H A DControlFlowSinkUtils.cpp91 if (!op || op->getParentRegion() == region) in tryToSinkPredecessors()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransferOpTransforms.cpp34 for (; op != nullptr && op->getParentRegion() != region; in findAncestorOpInRegion()
63 assert(start->getParentRegion() == dest->getParentRegion() && in isReachable()
127 Region *topRegion = firstOverwriteCandidate->getParentRegion(); in deadStoreOp()
191 Region *topRegion = lastwrite->getParentRegion(); in storeToLoadForwarding()
/llvm-project-15.0.7/mlir/lib/Interfaces/
H A DControlFlowInterfaces.cpp335 while (Region *region = op->getParentRegion()) { in getEnclosingRepetitiveRegion()
345 Region *region = value.getParentRegion(); in getEnclosingRepetitiveRegion()
351 region = op->getParentRegion(); in getEnclosingRepetitiveRegion()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/Transforms/
H A DBufferOptimizations.cpp67 if (isRegionReturnLike(use) && use->getParentRegion() == parentRegion) in leavesAllocationScope()
77 Region *region = alloc.getParentRegion(); in hasAllocationScope()
93 } while ((region = region->getParentRegion())); in hasAllocationScope()
/llvm-project-15.0.7/mlir/lib/Dialect/Async/Transforms/
H A DAsyncRuntimeRefCountingOpt.cpp42 Region *definingRegion = value.getParentRegion(); in optimizeReferenceCounting()
78 while (user->getParentRegion() != definingRegion) { in optimizeReferenceCounting()
H A DAsyncRuntimeRefCounting.cpp244 Region *definingRegion = value.getParentRegion(); in addDropRefAfterLastUse()
348 Region *definingRegion = value.getParentRegion(); in addDropRefInDivergentLivenessSuccessor()
/llvm-project-15.0.7/mlir/test/lib/Dialect/SCF/
H A DTestLoopParametricTiling.cpp45 if (op->getParentRegion()->getParentOfType<scf::ForOp>()) in runOnOperation()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Affine/
H A DTestLoopMapping.cpp55 if (op->getParentRegion()->getParentOfType<scf::ForOp>()) in runOnOperation()
H A DTestAffineLoopParametricTiling.cpp55 Region *funcOpRegion = topLoop->getParentRegion(); in getTilingParameters()
/llvm-project-15.0.7/mlir/include/mlir/Transforms/
H A DRegionUtils.h26 if (!v.getParentRegion()->isProperAncestor(&limit)) in areValuesDefinedAbove()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DRegion.h197 Region *getParentRegion();
210 } while ((region = region->getParentRegion())); in getParentOfType()
H A DBlockSupport.h256 mlir::Region *getParentRegion();
/llvm-project-15.0.7/mlir/test/lib/Transforms/
H A DTestIntRangeInference.cpp39 : value.getParentRegion()->getParentOp()->getDialect(); in replaceWithConstant()
/llvm-project-15.0.7/mlir/test/lib/Analysis/
H A DTestAliasAnalysis.cpp25 Region *region = arg.getParentRegion(); in printAliasOperand()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/Transform/IR/
H A DTransformInterfaces.h281 assert(argument.getParentRegion() == regionStack.back() && in mapBlockArguments()
437 auto it = mappings.find(value.getParentRegion()); in getMapping()
448 auto it = mappings.find(operation->getParentRegion()); in getMapping()
/llvm-project-15.0.7/mlir/include/mlir/Interfaces/
H A DLoopLikeInterface.td34 return value.getParentRegion()->isProperAncestor(&$_op.getLoopBody());
/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DMemoryPromotion.cpp83 auto loop = cast<scf::ForOp>(v.getParentRegion()->getParentOp()); in insertCopyLoops()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Utils/
H A DUtils.cpp774 from->getParentRegion()->isAncestor(untilOp->getParentRegion()) && in hasNoInterveningEffect()
781 if (from->getParentRegion() != untilOp->getParentRegion()) { in hasNoInterveningEffect()
914 if (writeB->getParentRegion() != writeA->getParentRegion()) in findUnusedStore()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToGPU/
H A DSCFToGPU.cpp413 return val.getParentRegion()->isAncestor(launchOp->getParentRegion()); in processParallelLoop()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp1582 if (&op.getThenRegion() == trueVal.getParentRegion() || in matchAndRewrite()
1583 &op.getElseRegion() == falseVal.getParentRegion()) in matchAndRewrite()
1608 if (&replacement.getThenRegion() == trueVal.getParentRegion() || in matchAndRewrite()
1609 &replacement.getElseRegion() == falseVal.getParentRegion()) { in matchAndRewrite()
1664 if (op.getThenRegion().isAncestor(use.getOwner()->getParentRegion())) { in matchAndRewrite()
1674 use.getOwner()->getParentRegion())) { in matchAndRewrite()
1868 use.getOwner()->getParentRegion())) { in matchAndRewrite()
1873 use.getOwner()->getParentRegion())) { in matchAndRewrite()
2038 if (tup.value().getParentRegion() == &op.getThenRegion()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Transforms/
H A DInliner.cpp408 region = region->getParentRegion(); in processInlinedBlocks()
450 resolvedCall.call->getParentRegion())) in shouldInline()

12