| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Region.cpp | 14 Region::Region(Operation *container) : container(container) {} in Region() function in Region 16 Region::~Region() { in ~Region() 24 MLIRContext *Region::getContext() { in getContext() 31 Location Region::getLoc() { in getLoc() 45 Region *Region::getParentRegion() { in getParentRegion() 50 bool Region::isProperAncestor(Region *other) { in isProperAncestor() 70 void Region::cloneInto(Region *dest, BlockAndValueMapping &mapper) { in cloneInto() 76 void Region::cloneInto(Region *dest, Region::iterator destPos, in cloneInto() 188 size_t(&((Region *)nullptr->*Region::getSublistAccess(nullptr)))); in getParentRegion() 226 Region::OpIterator::OpIterator(Region *region, bool end) in OpIterator() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | primary64.h | 90 *Region = {}; in unmapTestOnly() 164 if (Region->MappedUser) in getStats() 360 Region->Data = Data; in populateFreeList() 374 static_cast<u32>((Region->MappedUser - Region->AllocatedUser) / Size)); in populateFreeList() 416 const uptr InUse = Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks; in getStats() 423 Region->Stats.PoppedBlocks, Region->Stats.PushedBlocks, InUse, in getStats() 425 Region->ReleaseInfo.LastReleasedBytes >> 10, Region->RegionBeg, in getStats() 434 DCHECK_GE(Region->Stats.PoppedBlocks, Region->Stats.PushedBlocks); 437 (Region->Stats.PoppedBlocks - Region->Stats.PushedBlocks) * BlockSize; 469 ReleaseRecorder Recorder(Region->RegionBeg, &Region->Data); [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 107 assert(Region); in getPointedRegion() 121 assert(Region); in getArrayRegion() 134 return Region; in getArrayRegion() 141 return Region; in getArrayRegion() 157 if (!Region) in reportPointerArithMisuse() 160 Region = getPointedRegion(Region, C); in reportPointerArithMisuse() 161 if (!Region) in reportPointerArithMisuse() 230 if (!Region) in checkPostStmt() 251 if (!Region) in checkPostStmt() 267 if (!Region) in checkPostStmt() [all …]
|
| H A D | MoveChecker.cpp | 165 ID.AddPointer(Region); in Profile() 179 const MemRegion *Region; member in __anon1dac178a0211::MoveChecker::MovedBugVisitor 245 if (!Region) in removeFromState() 248 if (E.first->isSubRegionOf(Region)) in removeFromState() 316 Chk.explainObject(OS, Region, RD, MK); in VisitNode() 409 explainObject(OS, Region, RD, MK); in reportBug() 413 explainObject(OS, Region, RD, MK); in reportBug() 418 explainObject(OS, Region, RD, MK); in reportBug() 423 explainObject(OS, Region, RD, MK); in reportBug() 684 const MemRegion *Region = E.first; in checkDeadSymbols() local [all …]
|
| H A D | NullabilityChecker.cpp | 143 ID.AddPointer(Region); in Profile() 152 const MemRegion *Region; member in __anon0e3a3a9c0111::NullabilityChecker::NullabilityBugVisitor 171 if (Region) { in reportBug() 483 const MemRegion *Region = in checkEvent() local 485 if (!Region) in checkEvent() 536 const auto *Region = in checkLocation() local 538 if (!Region) in checkLocation() 650 if (!Region) in checkPreStmt() 742 if (!Region) in checkPreCall() 802 if (!Region) in checkPostCall() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | Region.h | 26 class Region { 28 Region() = default; 30 ~Region(); 72 return &Region::blocks; in getSublistAccess() 156 Region *region; 158 Region::iterator block; 197 Region *getParentRegion(); 237 void cloneInto(Region *dest, Region::iterator destPos, 331 PointerUnion<Region *, const std::unique_ptr<Region> *, Region **>, 332 Region *, Region *, Region *> { [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | IROutliner.cpp | 885 Region.IgnoreRegion = true; in getCodeExtractorArguments() 1400 if (Region.IgnoreRegion) in findAddInputsOutputs() 1514 Region.Call = Call; in replaceCalledFunction() 2699 Region.ExtractedFunction = in extractSection() 2724 Region.PrevBB = NewPrev; in extractSection() 2729 Region.EndBB = RewrittenBB; in extractSection() 2746 IDL->insert(Region.Candidate->begin(), *Region.NewFront); in extractSection() 2749 IDL->insert(Region.Candidate->end(), *Region.NewBack); in extractSection() 2751 IDL->erase(Region.Candidate->begin(), std::prev(Region.Candidate->end())); in extractSection() 2761 Region.Call = CI; in extractSection() [all …]
|
| H A D | HotColdSplitting.cpp | 234 for (BasicBlock *BB : Region) in getOutliningBenefit() 258 for (BasicBlock *BB : Region) { in getOutliningPenalty() 267 if (!is_contained(Region, SuccBB)) { in getOutliningPenalty() 320 Penalty -= Region.size(); in getOutliningPenalty() 338 assert(!Region.empty()); in extractColdRegion() 358 Function *OrigF = Region[0]->getParent(); in extractColdRegion() 392 << ore::NV("Block", Region.front()); in extractColdRegion() 632 for (OutliningRegion &Region : Regions) { in outlineColdRegions() 633 if (Region.empty()) in outlineColdRegions() 636 if (Region.isEntireFunctionCold()) { in outlineColdRegions() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Transforms/ |
| H A D | RegionUtils.h | 24 bool areValuesDefinedAbove(Range values, Region &limit) { in areValuesDefinedAbove() 32 void replaceAllUsesInRegionWith(Value orig, Value replacement, Region ®ion); 36 void visitUsedValuesDefinedAbove(Region ®ion, Region &limit, 41 void visitUsedValuesDefinedAbove(MutableArrayRef<Region> regions, 46 void getUsedValuesDefinedAbove(Region ®ion, Region &limit, 51 void getUsedValuesDefinedAbove(MutableArrayRef<Region> regions, 60 MutableArrayRef<Region> regions); 65 MutableArrayRef<Region> regions); 70 MutableArrayRef<Region> regions);
|
| H A D | InliningUtils.h | 28 class Region; variable 69 virtual bool isLegalToInline(Region *dest, Region *src, bool wouldBeCloned, in isLegalToInline() 81 virtual bool isLegalToInline(Operation *op, Region *dest, bool wouldBeCloned, in isLegalToInline() 160 processInlinedBlocks(iterator_range<Region::iterator> inlinedBlocks) {} in processInlinedBlocks() 172 virtual bool isLegalToInline(Region *dest, Region *src, bool wouldBeCloned, 186 Operation *call, iterator_range<Region::iterator> inlinedBlocks) const; 207 LogicalResult inlineRegion(InlinerInterface &interface, Region *src, 213 LogicalResult inlineRegion(InlinerInterface &interface, Region *src, 224 LogicalResult inlineRegion(InlinerInterface &interface, Region *src, 229 LogicalResult inlineRegion(InlinerInterface &interface, Region *src, [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | CoverageExporterJson.cpp | 87 return json::Array({Region.LineStart, Region.ColumnStart, Region.LineEnd, in renderRegion() 88 Region.ColumnEnd, clamp_uint64_to_int64(Region.ExecutionCount), in renderRegion() 89 Region.FileID, Region.ExpandedFileID, in renderRegion() 90 int64_t(Region.Kind)}); in renderRegion() 95 {Region.LineStart, Region.ColumnStart, Region.LineEnd, Region.ColumnEnd, in renderBranch() 97 clamp_uint64_to_int64(Region.FalseExecutionCount), Region.FileID, in renderBranch() 98 Region.ExpandedFileID, int64_t(Region.Kind)}); in renderBranch() 103 for (const auto &Region : Regions) in renderRegions() local 104 RegionArray.push_back(renderRegion(Region)); in renderRegions() 110 for (const auto &Region : Regions) in renderBranchRegions() local [all …]
|
| H A D | SourceCoverageView.h | 31 CounterMappingRegion Region; member 34 ExpansionView(const CounterMappingRegion &Region, in ExpansionView() 36 : Region(Region), View(std::move(View)) {} in ExpansionView() 38 : Region(std::move(RHS.Region)), View(std::move(RHS.View)) {} in ExpansionView() 40 Region = std::move(RHS.Region); 45 unsigned getLine() const { return Region.LineStart; } in getLine() 46 unsigned getStartCol() const { return Region.ColumnStart; } in getStartCol() 47 unsigned getEndCol() const { return Region.ColumnEnd; } in getEndCol() 50 return LHS.Region.startLoc() < RHS.Region.startLoc(); 275 void addExpansion(const CounterMappingRegion &Region,
|
| /llvm-project-15.0.7/mlir/lib/Transforms/Utils/ |
| H A D | ControlFlowSinkUtils.cpp | 37 function_ref<void(Operation *, Region *)> moveIntoRegion, in Sinker() 50 bool allUsersDominatedBy(Operation *op, Region *region); 57 void tryToSinkPredecessors(Operation *user, Region *region, 62 void sinkRegion(Region *region); 65 function_ref<bool(Operation *, Region *)> shouldMoveIntoRegion; 67 function_ref<void(Operation *, Region *)> moveIntoRegion; 75 bool Sinker::allUsersDominatedBy(Operation *op, Region *region) { in allUsersDominatedBy() 85 void Sinker::tryToSinkPredecessors(Operation *user, Region *region, in tryToSinkPredecessors() 105 void Sinker::sinkRegion(Region *region) { in sinkRegion() 121 for (Region *region : regions) in sinkRegions() [all …]
|
| H A D | RegionUtils.cpp | 33 Region ®ion, Region &limit, function_ref<void(OpOperand *)> callback) { in visitUsedValuesDefinedAbove() 39 SmallPtrSet<Region *, 4> properAncestors; in visitUsedValuesDefinedAbove() 55 for (Region ®ion : regions) in visitUsedValuesDefinedAbove() 59 void mlir::getUsedValuesDefinedAbove(Region ®ion, Region &limit, in getUsedValuesDefinedAbove() 68 for (Region ®ion : regions) in getUsedValuesDefinedAbove() 86 SmallVector<Region *, 1> worklist; in eraseUnreachableBlocks() 88 for (Region ®ion : regions) in eraseUnreachableBlocks() 91 Region *region = worklist.pop_back_val(); in eraseUnreachableBlocks() 239 for (Region ®ion : op->getRegions()) in propagateLiveness() 313 for (Region ®ion : regions) { in deleteDeadness() [all …]
|
| H A D | LoopInvariantCodeMotionUtils.cpp | 52 function_ref<bool(Value, Region *)> isDefinedOutsideRegion, in moveLoopInvariantCode() 53 function_ref<bool(Operation *, Region *)> shouldMoveOutOfRegion, in moveLoopInvariantCode() 54 function_ref<void(Operation *, Region *)> moveOutOfRegion) { in moveLoopInvariantCode() 57 for (Region *region : regions) { in moveLoopInvariantCode() 100 [&](Value value, Region *) { in moveLoopInvariantCode() argument 103 [&](Operation *op, Region *) { return isSideEffectFree(op); }, in moveLoopInvariantCode() argument 104 [&](Operation *op, Region *) { loopLike.moveOutOfLoop(op); }); in moveLoopInvariantCode() argument
|
| H A D | InliningUtils.cpp | 30 remapInlinedLocations(iterator_range<Region::iterator> inlinedBlocks, in remapInlinedLocations() 45 static void remapInlinedOperands(iterator_range<Region::iterator> inlinedBlocks, in remapInlinedOperands() 68 Region *dest, Region *src, bool wouldBeCloned, in isLegalToInline() 76 Operation *op, Region *dest, bool wouldBeCloned, in isLegalToInline() 106 Operation *call, iterator_range<Region::iterator> inlinedBlocks) const { in processInlinedCallBlocks() 113 static bool isLegalToInline(InlinerInterface &interface, Region *src, in isLegalToInline() 129 llvm::any_of(op.getRegions(), [&](Region ®ion) { in isLegalToInline() 161 Region *insertRegion = inlineBlock->getParent(); in inlineRegionImpl() 262 LogicalResult mlir::inlineRegion(InlinerInterface &interface, Region *src, in inlineRegion() 284 LogicalResult mlir::inlineRegion(InlinerInterface &interface, Region *src, in inlineRegion() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanVerifier.cpp | 45 static void verifyBlocksInRegion(const VPRegionBlock *Region) { in verifyBlocksInRegion() argument 47 df_iterator<const VPBlockBase *>::begin(Region->getEntry()), in verifyBlocksInRegion() 98 static void verifyRegion(const VPRegionBlock *Region) { in verifyRegion() argument 99 const VPBlockBase *Entry = Region->getEntry(); in verifyRegion() 100 const VPBlockBase *Exiting = Region->getExiting(); in verifyRegion() 109 verifyBlocksInRegion(Region); in verifyRegion() 114 static void verifyRegionRec(const VPRegionBlock *Region) { in verifyRegionRec() argument 115 verifyRegion(Region); in verifyRegionRec() 271 for (const VPRegionBlock *Region : in verifyPlanIsValid() local 275 if (Region->getEntry()->getNumPredecessors() != 0) { in verifyPlanIsValid() [all …]
|
| /llvm-project-15.0.7/polly/include/polly/ |
| H A D | ScopDetection.h | 137 using RegionSet = SetVector<const Region *>; 144 Region &CurRegion; // The region to check. 187 DetectionContext(Region &R, AAResults &AA, bool Verify) in DetectionContext() 222 void removeCachedResults(const Region &R); 225 void removeCachedResultsRecursively(const Region &R); 298 Region *expandRegion(Region &R); 303 void findScops(Region &R); 512 bool isReducibleRegion(Region &R, DebugLoc &DbgLoc) const; 551 const RejectLog *lookupRejectionLog(const Region *R) const; 558 std::string regionIsInvalidBecause(const Region *R) const; [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | GCNIterativeScheduler.h | 60 struct Region { struct 73 SpecificBumpPtrAllocator<Region> Alloc; argument 74 std::vector<Region*> Regions; 84 GCNRegPressure getSchedulePressure(const Region &R, 90 GCNRegPressure getRegionPressure(const Region &R) const { in getRegionPressure() 94 void setBestSchedule(Region &R, 98 void scheduleBest(Region &R); 105 void scheduleRegion(Region &R, Range &&Schedule, 117 const Region *R,
|
| H A D | AMDGPUMachineCFGStructurizer.cpp | 353 void setRegionMRT(RegionMRT *Region) { RMRT = Region; } in setRegionMRT() argument 446 void setParent(RegionMRT *Region) { Parent = Region; } in setParent() argument 492 MachineRegion *Region; member in __anonde98b0ec0211::RegionMRT 669 RegionMap[Region]->setSucc(Region->getExit()); in buildMRT() 1634 auto Exit = Region->getSucc(); in rewriteRegionExitPHIs() 1693 auto Exit = Region->getSucc(); in createLinearizedExitBlock() 2537 if (Region->contains(*PI)) { in removeOldExitPreds() 2586 removeOldExitPreds(Region); in structurizeComplexRegion() 2703 if (Region->isRoot()) { in structurizeComplexRegion() 2722 fixupRegionExits(Region); in structurizeRegion() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | RegionInfo.cpp | 47 static cl::opt<Region::PrintStyle, true> printStyleX("print-region-style", 52 clEnumValN(Region::PrintNone, "none", "print no details"), 53 clEnumValN(Region::PrintBB, "bb", 55 clEnumValN(Region::PrintRN, "rn", 62 Region::Region(BasicBlock *Entry, BasicBlock *Exit, in Region() function in Region 64 DominatorTree *DT, Region *Parent) : in Region() 69 Region::~Region() = default; 88 void RegionInfo::updateStatistics(Region *R) { in updateStatistics() 102 TopLevelRegion = new Region(&F.getEntryBlock(), nullptr, in recalculate()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-mca/X86/ |
| H A D | llvm-mca-markers-5.s | 5 # LLVM-MCA-BEGIN First Region 8 # LLVM-MCA-BEGIN Second Region 11 # LLVM-MCA-BEGIN Third Region 16 # CHECK: [0] Code Region - First Region 39 # CHECK: [1] Code Region - Second Region 62 # CHECK: [2] Code Region - Third Region
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-mca/AArch64/Cortex/ |
| H A D | forwarding-A57.s | 3 # CHECK: [0] Code Region 10 # CHECK: [1] Code Region 17 # CHECK: [2] Code Region 24 # CHECK: [3] Code Region 31 # CHECK: [4] Code Region 38 # CHECK: [5] Code Region 45 # CHECK: [6] Code Region 52 # CHECK: [7] Code Region 59 # CHECK: [8] Code Region 66 # CHECK: [9] Code Region [all …]
|
| /llvm-project-15.0.7/polly/include/polly/Support/ |
| H A D | SCEVValidator.h | 47 bool hasScalarDepsInsideRegion(const llvm::SCEV *Expr, const llvm::Region *R, 50 bool isAffineExpr(const llvm::Region *R, llvm::Loop *Scope, 55 bool isAffineConstraint(llvm::Value *V, const llvm::Region *R, 59 ParameterSetTy getParamsInAffineExpr(const llvm::Region *R, llvm::Loop *Scope, 78 const llvm::SCEV *tryForwardThroughPHI(const llvm::SCEV *Expr, llvm::Region &R, 86 llvm::Value *getUniqueNonErrorValue(llvm::PHINode *PHI, llvm::Region *R,
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | RegionPass.h | 25 class Region; variable 48 virtual bool runOnRegion(Region *R, RGPassManager &RGM) = 0; 62 virtual bool doInitialization(Region *R, RGPassManager &RGM) { return false; } in doInitialization() 83 bool skipRegion(Region &R) const; 88 std::deque<Region*> RQ; 90 Region *CurrentRegion;
|