| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | GenericDomTreeConstruction.h | 557 DT.reset(); in CalculateFromScratch() 573 DT.Roots = FindRoots(DT, PostViewBUI); in CalculateFromScratch() 590 DT.RootNode = DT.createNode(Root); in CalculateFromScratch() 591 SNCA.attachNewSubtree(DT, DT.RootNode); in CalculateFromScratch() 880 InsertReachable(DT, BUI, DT.getNode(Edge.first), Edge.second); in InsertUnreachable() 1043 InsertReachable(DT, BUI, DT.getNode(nullptr), ToTN); in DeleteUnreachable() 1222 if (!DT.Parent && !DT.Roots.empty()) { in verifyRoots() 1235 if (DT.getRoot() != GetEntryNode(DT)) { in verifyRoots() 1329 if (!DT.DFSInfoValid || !DT.Parent) in VerifyDFSNumbers() 1605 if (!SNCA.verifyRoots(DT) || !SNCA.verifyReachability(DT) || in Verify() [all …]
|
| H A D | GenericIteratedDominanceFrontier.h | 63 IDFCalculatorBase(DominatorTreeBase<NodeTy, IsPostDom> &DT) : DT(DT) {} in IDFCalculatorBase() argument 65 IDFCalculatorBase(DominatorTreeBase<NodeTy, IsPostDom> &DT, in IDFCalculatorBase() argument 67 : DT(DT), ChildrenGetter(C) {} in IDFCalculatorBase() 104 DominatorTreeBase<NodeTy, IsPostDom> &DT; 144 DT.updateDFSNumbers(); in calculate() 151 if (DomTreeNodeBase<NodeTy> *Node = DT.getNode(BB)) { in calculate() 176 DomTreeNodeBase<NodeTy> *SuccNode = DT.getNode(Succ); in calculate()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineDominators.h | 92 if (!DT) in getBase() 95 return *DT; in getBase() 102 return DT->getRoot(); in getRoot() 107 return DT->getRootNode(); in getRootNode() 117 return DT->dominates(A, B); in dominates() 128 return DT->dominates(A, B); in dominates() 168 return DT->getNode(BB); 176 return DT->getNode(BB); in getNode() 208 DT->eraseNode(BB); in eraseNode() 215 DT->splitBlock(NewBB); in splitBlock() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CodeMoverUtils.cpp | 64 const DominatorTree &DT, 102 DomTreeNode *DA = DT->getNode(InstA->getParent()); in domTreeLevelBefore() 103 DomTreeNode *DB = DT->getNode(InstB->getParent()); in domTreeLevelBefore() 128 assert(DT.dominates(&Dominator, IDom) && in collectControlConditions() 337 if (isReachedBefore(&I, &InsertPoint, &DT, PDT)) in isSafeToMoveBefore() 342 if (isReachedBefore(&InsertPoint, &I, &DT, PDT)) in isSafeToMoveBefore() 350 DT.dominates(OpInst, &I)) in isSafeToMoveBefore() 352 if (!DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore() 356 DT.updateDFSNumbers(); in isSafeToMoveBefore() 470 const DominatorTree *DT, in isReachedBefore() argument [all …]
|
| H A D | FixIrreducible.cpp | 196 assert(DT.verify(DominatorTree::VerificationLevel::Full)); in createNaturalLoopInternal() 198 assert(DT.verify(DominatorTree::VerificationLevel::Fast)); in createNaturalLoopInternal() 240 LI.verify(DT); in createNaturalLoopInternal() 262 createNaturalLoopInternal(LI, DT, &L, Blocks, Headers); in createNaturalLoop() 291 if (!DT.isReachableFromEntry(P)) in makeReducible() 307 createNaturalLoop(LI, DT, G, Blocks, Headers); in makeReducible() 323 Changed |= makeReducible(LI, DT, &F); in FixIrreducibleImpl() 333 Changed |= makeReducible(LI, DT, *L); in FixIrreducibleImpl() 345 return FixIrreducibleImpl(F, LI, DT); in runOnFunction() 351 auto &DT = AM.getResult<DominatorTreeAnalysis>(F); in run() local [all …]
|
| H A D | LoopUnrollRuntime.cpp | 192 if (DT) { in ConnectProlog() 321 if (DT) { in ConnectEpilog() 371 if (DT) { in CloneLoopBlocks() 374 DT->addNewBlock(NewBB, InsertTop); in CloneLoopBlocks() 742 DT, LI); in UnrollRuntimeLoopRemainder() 805 if (DT) { in UnrollRuntimeLoopRemainder() 880 if (DT && !L->getExitingBlock()) { in UnrollRuntimeLoopRemainder() 887 auto *DomNodeBB = DT->getNode(BB); in UnrollRuntimeLoopRemainder() 962 if (DT) { in UnrollRuntimeLoopRemainder() 964 LI->verify(*DT); in UnrollRuntimeLoopRemainder() [all …]
|
| H A D | UnifyLoopExits.cpp | 88 static void restoreSSA(const DominatorTree &DT, const Loop *L, in INITIALIZE_PASS_DEPENDENCY() 125 if (Def->getParent() == In || DT.dominates(Def, In)) { in INITIALIZE_PASS_DEPENDENCY() 191 restoreSSA(DT, L, ExitingBlocks, LoopExitBlock); in unifyLoopExits() 194 assert(DT.verify(DominatorTree::VerificationLevel::Full)); in unifyLoopExits() 196 assert(DT.verify(DominatorTree::VerificationLevel::Fast)); in unifyLoopExits() 210 LI.verify(DT); in unifyLoopExits() 216 static bool runImpl(LoopInfo &LI, DominatorTree &DT) { in runImpl() argument 223 Changed |= unifyLoopExits(DT, LI, L); in runImpl() 236 return runImpl(LI, DT); in runOnFunction() 244 auto &DT = AM.getResult<DominatorTreeAnalysis>(F); in run() local [all …]
|
| H A D | LCSSA.cpp | 113 if (!DT.isReachableFromEntry(UserBB)) { in formLCSSAForInstructions() 142 const DomTreeNode *DomNode = DT.getNode(DomBB); in formLCSSAForInstructions() 156 if (!DT.dominates(DomNode, DT.getNode(ExitBB))) in formLCSSAForInstructions() 419 assert(L.isLCSSAForm(DT)); in formLCSSA() 431 Changed |= formLCSSARecursively(*SubLoop, DT, LI, SE); in formLCSSARecursively() 433 Changed |= formLCSSA(L, DT, LI, SE); in formLCSSARecursively() 442 Changed |= formLCSSARecursively(*L, DT, LI, SE); in formLCSSAOnAllLoops() 454 DominatorTree *DT; member 516 return formLCSSAOnAllLoops(LI, *DT, SE); in runOnFunction() 521 auto &DT = AM.getResult<DominatorTreeAnalysis>(F); in run() local [all …]
|
| H A D | LoopSimplify.cpp | 248 PHINode *PN = findPHIToPartitionLoops(L, DT, AC); in separateNestedLoop() 302 if (DT->dominates(Header, P)) in separateNestedLoop() 334 formDedicatedExitBlocks(L, DT, LI, MSSAU, PreserveLCSSA); in separateNestedLoop() 343 formLCSSA(*L, *DT, LI, SE); in separateNestedLoop() 345 assert(NewOuter->isRecursivelyLCSSAForm(*DT, *LI) && in separateNestedLoop() 468 DT->splitBlock(BEBlock); in insertUniqueBackedgeBlock() 479 DominatorTree *DT, LoopInfo *LI, in simplifyOneLoop() argument 675 DomTreeNode *Node = DT->getNode(ExitingBlock); in simplifyOneLoop() 680 DT->eraseNode(ExitingBlock); in simplifyOneLoop() 710 assert(DT && "DT not available."); in simplifyLoop() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | CallBrPrepare.cpp | 59 DominatorTree &DT); 86 Changed |= SplitCriticalEdges(CBRs, DT); in run() 87 Changed |= InsertIntrinsicCalls(CBRs, DT); in run() 118 CriticalEdgeSplittingOptions Options(&DT); in SplitCriticalEdges() 158 UpdateSSA(DT, CBR, Intrinsic, SSAUpdate); in InsertIntrinsicCalls() 213 if (DT.dominates(DefaultDest, *U)) in UpdateSSA() 234 DominatorTree *DT; in runOnFunction() local 237 DT = &DTWP->getDomTree(); in runOnFunction() 240 DT = &*LazilyComputedDomTree; in runOnFunction() 243 if (SplitCriticalEdges(CBRs, *DT)) in runOnFunction() [all …]
|
| H A D | MachineDominators.cpp | 62 DT.reset(new DomTreeBase<MachineBasicBlock>()); in calculate() 63 DT->recalculate(F); in calculate() 73 DT.reset(nullptr); in releaseMemory() 77 if (DT && VerifyMachineDomInfo) in verifyAnalysis() 78 if (!DT->verify(MachineDomTree::VerificationLevel::Basic)) { in verifyAnalysis() 85 if (DT) in print() 86 DT->print(OS); in print() 106 MachineDomTreeNode *SuccDTNode = DT->getNode(Succ); in applySplitCriticalEdges() 129 if (!DT->dominates(SuccDTNode, DT->getNode(PredBB))) { in applySplitCriticalEdges() 141 MachineDomTreeNode *NewDTNode = DT->addNewBlock(Edge.NewBB, Edge.FromBB); in applySplitCriticalEdges() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DomTreeUpdater.cpp | 123 if (DT) in recalculate() 139 if (DT) in recalculate() 155 if (!DT) in hasPendingDomTreeUpdates() 231 if (!DT && !PDT) in applyUpdates() 243 if (DT) in applyUpdates() 251 if (!DT && !PDT) in applyUpdatesPermissive() 297 if (DT) in applyUpdatesPermissive() 307 return *DT; in getDomTree() 324 if (!DT) in dropOutOfDateUpdates() 345 if (DT) in dump() [all …]
|
| H A D | PHITransAddr.cpp | 182 {DL, TLI, DT, AC})) { in translateSubExpr() 193 (!DT || DT->dominates(CastI->getParent(), PredBB))) in translateSubExpr() 232 (!DT || DT->dominates(GEPI->getParent(), PredBB))) { in translateSubExpr() 284 (!DT || DT->dominates(BO->getParent(), PredBB))) in translateSubExpr() 299 const DominatorTree *DT, in translateValue() argument 301 assert(DT || !MustDominate); in translateValue() 303 if (DT && DT->isReachableFromEntry(PredBB)) in translateValue() 304 Addr = translateSubExpr(Addr, CurBB, PredBB, DT); in translateValue() 312 if (!DT->dominates(Inst->getParent(), PredBB)) in translateValue() 366 DT, NewInsts); in insertTranslatedSubExpr() [all …]
|
| H A D | CFG.cpp | 139 if (DT && !DT->isReachableFromEntry(StopBB)) in isPotentiallyReachableFromMany() 140 DT = nullptr; in isPotentiallyReachableFromMany() 145 DT = nullptr; in isPotentiallyReachableFromMany() 170 if (DT && DT->dominates(BB, StopBB)) in isPotentiallyReachableFromMany() 214 if (DT) { in isPotentiallyReachable() 215 if (DT->isReachableFromEntry(A) && !DT->isReachableFromEntry(B)) in isPotentiallyReachable() 218 if (A->isEntryBlock() && DT->isReachableFromEntry(B)) in isPotentiallyReachable() 220 if (B->isEntryBlock() && DT->isReachableFromEntry(A)) in isPotentiallyReachable() 228 return isPotentiallyReachableFromMany(Worklist, B, ExclusionSet, DT, LI); in isPotentiallyReachable() 269 ExclusionSet, DT, LI); in isPotentiallyReachable() [all …]
|
| H A D | CaptureTracking.cpp | 107 : BeforeHere(I), DT(DT), ReturnCaptures(ReturnCaptures), in CapturesBefore() 118 if (!DT->isReachableFromEntry(I->getParent())) in isSafeToPrune() 122 return !isPotentiallyReachable(I, BeforeHere, nullptr, DT, LI); in isSafeToPrune() 141 const DominatorTree *DT; member 162 : DT(DT), ReturnCaptures(ReturnCaptures), F(F) {} in EarliestCaptures() 177 EarliestCapture = DT.findNearestCommonDominator(EarliestCapture, I); in captured() 187 const DominatorTree &DT; member 245 if (!DT) in PointerMayBeCapturedBefore() 252 CapturesBefore CB(ReturnCaptures, I, DT, IncludeI, LI); in PointerMayBeCapturedBefore() 263 const DominatorTree &DT, in FindEarliestCapture() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Sink.cpp | 66 DominatorTree &DT, LoopInfo &LI) { in IsAcceptableTarget() argument 87 if (!DT.dominates(Inst->getParent(), SuccToSinkTo)) in IsAcceptableTarget() 140 if (!DT.isReachableFromEntry(UseBlock)) in SinkInstruction() 148 if (!DT.dominates(BB, SuccToSinkTo)) in SinkInstruction() 156 !IsAcceptableTarget(Inst, SuccToSinkTo, DT, LI)) in SinkInstruction() 180 if (!DT.isReachableFromEntry(&BB)) return false; in ProcessBlock() 201 if (SinkInstruction(Inst, Stores, DT, LI, AA)) { in ProcessBlock() 221 MadeChange |= ProcessBlock(I, DT, LI, AA); in iterativelySinkInstructions() 230 auto &DT = AM.getResult<DominatorTreeAnalysis>(F); in run() local 234 if (!iterativelySinkInstructions(F, DT, LI, AA)) in run() [all …]
|
| H A D | SimplifyCFGPass.cpp | 266 DominatorTree *DT, in simplifyFunctionCFGImpl() argument 283 if (!removeUnreachableBlocks(F, DT ? &DTU : nullptr)) in simplifyFunctionCFGImpl() 295 DominatorTree *DT, in simplifyFunctionCFG() argument 298 (DT && DT->verify(DominatorTree::VerificationLevel::Full))) && in simplifyFunctionCFG() 301 bool Changed = simplifyFunctionCFGImpl(F, TTI, DT, Options); in simplifyFunctionCFG() 304 (DT && DT->verify(DominatorTree::VerificationLevel::Full))) && in simplifyFunctionCFG() 360 DominatorTree *DT = nullptr; in run() local 362 DT = &AM.getResult<DominatorTreeAnalysis>(F); in run() 363 if (!simplifyFunctionCFG(F, TTI, DT, Options)) in run() 392 DominatorTree *DT = nullptr; in runOnFunction() local [all …]
|
| H A D | LICM.cpp | 455 ? sinkRegionForLoopNest(DT->getNode(L->getHeader()), AA, LI, DT, in runOnLoop() 457 : sinkRegion(DT->getNode(L->getHeader()), AA, LI, DT, TLI, TTI, L, in runOnLoop() 461 Changed |= hoistRegion(DT->getNode(L->getHeader()), AA, LI, DT, AC, TLI, L, in runOnLoop() 626 Changed |= sinkRegion(DT->getNode(L->getHeader()), AA, LI, DT, TLI, TTI, L, in sinkRegionForLoopNest() 644 DominatorTree *DT; member in __anon7e16e74e0511::ControlFlowHoister 659 : LI(LI), DT(DT), CurLoop(CurLoop), MSSAU(MSSAU) {} in ControlFlowHoister() 798 DT->addNewBlock(New, HoistTarget); in getOrCreateHoistedBlock() 1030 LI->verify(*DT); in hoistRegion() 1647 if (!DT->isReachableFromEntry(BB)) { in sink() 2473 DominatorTree *DT) { in hoistGEP() argument [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Dominators.h | 61 extern template void Calculate<BBDomTree>(BBDomTree &DT); 65 extern template void Calculate<BBPostDomTree>(BBPostDomTree &DT); 69 extern template void InsertEdge<BBPostDomTree>(BBPostDomTree &DT, 79 extern template void ApplyUpdates<BBDomTree>(BBDomTree &DT, 86 extern template bool Verify<BBDomTree>(const BBDomTree &DT, 169 recalculate(*DT.Parent, U); 263 static NodeRef getEntryNode(DominatorTree *DT) { return DT->getRootNode(); } 314 DominatorTree DT; 321 DominatorTree &getDomTree() { return DT; } 322 const DominatorTree &getDomTree() const { return DT; } [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Dominators.cpp | 80 DomTreeBuilder::BBDomTree &DT); 86 DomTreeBuilder::BBPostDomTree &DT); 107 const DomTreeBuilder::BBDomTree &DT, 110 const DomTreeBuilder::BBPostDomTree &DT, 373 DominatorTree DT; in run() local 374 DT.recalculate(F); in run() 375 return DT; in run() 393 assert(DT.verify()); in run() 394 (void)DT; in run() 417 DT.recalculate(F); in runOnFunction() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | CodeMoverUtils.h | 32 const DominatorTree &DT, 39 const DominatorTree &DT, 44 DominatorTree &DT, 52 DominatorTree &DT, 59 DominatorTree &DT, 66 DominatorTree &DT, const PostDominatorTree &PDT, 75 const DominatorTree *DT, 80 const DominatorTree *DT, const PostDominatorTree *PDT);
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/Analysis/Analyses/ |
| H A D | Dominators.h | 56 DominatorTreeBase &getBase() { return DT; } in getBase() 62 return DT.getRoot(); in getRoot() 67 return DT.getRootNode(); in getRootNode() 80 if (DT.compare(Other.getBase())) in compare() 90 DT.recalculate(*cfg); in buildDominatorTree() 137 return DT.dominates(A, B); in dominates() 144 return DT.properlyDominates(A, B); in properlyDominates() 166 return DT.isReachableFromEntry(A); in isReachableFromEntry() 174 DT.print(OS); 179 DominatorTreeBase DT; variable [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURewriteUndefForPHI.cpp | 102 bool rewritePHIs(Function &F, UniformityInfo &UA, DominatorTree *DT) { in INITIALIZE_PASS_DEPENDENCY() 127 if (!DT->dominates(&BB, IncomingBB)) in INITIALIZE_PASS_DEPENDENCY() 137 if (DT->dominates(IncomingBB, DominateBB)) in INITIALIZE_PASS_DEPENDENCY() 156 if (DT->dominates(DominateBB, &BB) && all_of(Undefs, [&](BasicBlock *UD) { in INITIALIZE_PASS_DEPENDENCY() 157 return DT->dominates(DominateBB, UD); in INITIALIZE_PASS_DEPENDENCY() 175 DominatorTree *DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree(); in runOnFunction() local 176 return rewritePHIs(F, UA, DT); in runOnFunction() 182 DominatorTree *DT = &AM.getResult<DominatorTreeAnalysis>(F); in run() local 183 bool Changed = rewritePHIs(F, UA, DT); in run()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 134 DT.IncludedUndefinedIds = !Macro; in EvaluateDefined() 221 DT.TheMacro = II; in EvaluateDefined() 235 DT.State = DefinedTracker::Unknown; in EvaluateValue() 282 DT.IncludedUndefinedIds = true; in EvaluateValue() 496 DT.State = DefinedTracker::Unknown; in EvaluateValue() 509 DT.State = DefinedTracker::Unknown; in EvaluateValue() 632 DefinedTracker DT; in EvaluateDirectiveSubExpr() local 827 DefinedTracker DT; in EvaluateDirectiveSubExpr() local 892 DefinedTracker DT; in EvaluateDirectiveExpression() local 907 DT.IncludedUndefinedIds, in EvaluateDirectiveExpression() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueTracking.h | 60 const DominatorTree *DT = nullptr, 67 const DominatorTree *DT = nullptr, 75 const DominatorTree *DT = nullptr, 116 const DominatorTree *DT = nullptr, 130 const DominatorTree *DT = nullptr, 158 const DominatorTree *DT = nullptr, 183 const DominatorTree *DT = nullptr, 512 TLI, AC, CtxI, DT, UseInstrInfo); 527 DT, UseInstrInfo); 856 const DominatorTree &DT); [all …]
|