Home
last modified time | relevance | path

Searched refs:Succ (Results 1 – 25 of 132) sorted by relevance

123456

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineBlockPlacement.cpp421 const MachineBasicBlock *BB, const MachineBasicBlock *Succ,
435 const MachineBasicBlock *BB, const MachineBasicBlock *Succ,
494 const MachineBasicBlock *BB, const MachineBasicBlock *Succ,
518 const MachineBasicBlock *BB, MachineBasicBlock *Succ,
610 for (MachineBasicBlock *Succ : MBB->successors()) { in markBlockSuccessors()
611 if (BlockFilter && !BlockFilter->count(Succ)) in markBlockSuccessors()
613 BlockChain &SuccChain = *BlockToChain[Succ]; in markBlockSuccessors()
615 if (&Chain == &SuccChain || Succ == LoopHeaderBB) in markBlockSuccessors()
657 for (MachineBasicBlock *Succ : BB->successors()) { in collectViableSuccessors()
659 if (Succ->isEHPad() || (BlockFilter && !BlockFilter->count(Succ))) { in collectViableSuccessors()
[all …]
DCFIInstrInserter.cpp111 void report(const MBBCFAInfo &Pred, const MBBCFAInfo &Succ);
234 for (auto *Succ : CurrentInfo.MBB->successors()) { in updateSuccCFAInfo() local
235 MBBCFAInfo &SuccInfo = MBBVector[Succ->getNumber()]; in updateSuccCFAInfo()
239 Stack.push_back(Succ); in updateSuccCFAInfo()
295 void CFIInstrInserter::report(const MBBCFAInfo &Pred, const MBBCFAInfo &Succ) { in report() argument
304 errs() << "Succ: " << Succ.MBB->getName() << " #" << Succ.MBB->getNumber() in report()
305 << " incoming CFA Reg:" << Succ.IncomingCFARegister << "\n"; in report()
306 errs() << "Succ: " << Succ.MBB->getName() << " #" << Succ.MBB->getNumber() in report()
307 << " incoming CFA Offset:" << Succ.IncomingCFAOffset << "\n"; in report()
314 for (MachineBasicBlock *Succ : CurrMBB->successors()) { in verify()
[all …]
DMachineBasicBlock.cpp655 void MachineBasicBlock::addSuccessor(MachineBasicBlock *Succ, in addSuccessor() argument
661 Successors.push_back(Succ); in addSuccessor()
662 Succ->addPredecessor(this); in addSuccessor()
665 void MachineBasicBlock::addSuccessorWithoutProb(MachineBasicBlock *Succ) { in addSuccessorWithoutProb() argument
670 Successors.push_back(Succ); in addSuccessorWithoutProb()
671 Succ->addPredecessor(this); in addSuccessorWithoutProb()
693 void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ, in removeSuccessor() argument
695 succ_iterator I = find(Successors, Succ); in removeSuccessor()
779 MachineBasicBlock *Succ = *FromMBB->succ_begin(); in transferSuccessors() local
785 addSuccessor(Succ, Prob); in transferSuccessors()
[all …]
DMachineTraceMetrics.cpp219 if (!TBI->Succ) { in computeHeightResources()
227 unsigned SuccNum = TBI->Succ->getNumber(); in computeHeightResources()
360 for (const MachineBasicBlock *Succ : MBB->successors()) { in pickTraceSucc() local
362 if (CurLoop && Succ == CurLoop->getHeader()) in pickTraceSucc()
365 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc()
368 getHeightResources(Succ); in pickTraceSucc()
375 Best = Succ; in pickTraceSucc()
509 TBI.Succ = pickTraceSucc(I); in computeTrace()
511 if (TBI.Succ) in computeTrace()
512 dbgs() << printMBBReference(*TBI.Succ) << '\n'; in computeTrace()
[all …]
DLoopTraversal.cpp46 for (MachineBasicBlock *Succ : ActiveMBB->successors()) { in traverse()
47 unsigned SuccNumber = Succ->getNumber(); in traverse()
50 if (!isBlockDone(Succ)) { in traverse()
55 if (isBlockDone(Succ)) in traverse()
56 Workqueue.push_back(Succ); in traverse()
DMachineDominators.cpp103 MachineBasicBlock *Succ = Edge.ToBB; in applySplitCriticalEdges() local
104 MachineDomTreeNode *SuccDTNode = DT->getNode(Succ); in applySplitCriticalEdges()
106 for (MachineBasicBlock *PredBB : Succ->predecessors()) { in applySplitCriticalEdges()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceLoopAnalyzer.cpp62 NodeList::const_iterator currentSuccessor() const { return Succ; } in currentSuccessor()
63 void nextSuccessor() { ++Succ; } in nextSuccessor()
88 NodeList::const_iterator Succ; member in Ice::LoopAnalyzer::LoopNode
123 Succ = BB->getOutEdges().begin(); in reset()
137 for (CfgNode *Succ : BB->getOutEdges()) { in hasSelfEdge()
138 if (Succ == BB) in hasSelfEdge()
180 if (LoopNode *Succ = processNode(WorkNode)) in computeLoopNestDepth() local
181 WorkStack.push_back(Succ); in computeLoopNestDepth()
199 LoopNode &Succ = AllNodes[(*Node.currentSuccessor())->getIndex()]; in processNode() local
200 Node.tryLink(Succ.getLowLink()); in processNode()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopSimplifyCFG.cpp199 for (auto *Succ : successors(BB)) in hasIrreducibleCFG() local
200 if (L.contains(Succ) && !LI.isLoopHeader(Succ) && RPO[BB] > RPO[Succ]) in hasIrreducibleCFG()
249 for (BasicBlock *Succ : successors(BB)) in analyze()
250 if (!TakeFoldCandidate || TheOnlySucc == Succ) { in analyze()
251 if (L.contains(Succ)) in analyze()
252 LiveLoopBlocks.insert(Succ); in analyze()
254 LiveExitBlocks.insert(Succ); in analyze()
297 return any_of(successors(BB), [&](BasicBlock *Succ) { in analyze() argument
298 return BlocksInLoopAfterFolding.count(Succ) && IsEdgeLive(BB, Succ); in analyze()
490 for (auto *Succ : successors(BB)) in foldTerminators() local
[all …]
DADCE.cpp285 for (auto *Succ : successors(BB)) in initialize() local
286 if (State.onStack(Succ)) { in initialize()
590 for (auto *Succ : successors(BB)) { in updateDeadRegions() local
591 auto *Info = &BlockInfo[Succ]; in updateDeadRegions()
601 for (auto *Succ : successors(BB)) { in updateDeadRegions() local
602 if (!First || Succ != PreferredSucc->BB) { in updateDeadRegions()
603 Succ->removePredecessor(BB); in updateDeadRegions()
604 RemovedSuccessors.insert(Succ); in updateDeadRegions()
612 for (auto *Succ : RemovedSuccessors) { in updateDeadRegions() local
615 if (Succ != PreferredSucc->BB) { in updateDeadRegions()
[all …]
DPlaceSafepoints.cpp284 for (BasicBlock *Succ : successors(BB)) { in scanOneBB()
285 if (Seen.insert(Succ).second) { in scanOneBB()
286 Worklist.push_back(Succ); in scanOneBB()
552 BasicBlock *Succ = Term->getSuccessor(i); in runOnFunction() local
553 if (DT.dominates(Succ, Term->getParent())) { in runOnFunction()
554 Headers.insert(Succ); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFixIrreducibleControlFlow.cpp132 for (auto *Succ : MBB->successors()) { in calculate() local
133 if (Succ != Entry && inRegion(Succ)) { in calculate()
134 Reachable[MBB].insert(Succ); in calculate()
135 WorkList.emplace_back(MBB, Succ); in calculate()
141 MachineBasicBlock *MBB, *Succ; in calculate() local
142 std::tie(MBB, Succ) = WorkList.pop_back_val(); in calculate()
143 assert(inRegion(MBB) && Succ != Entry && inRegion(Succ)); in calculate()
148 if (Reachable[Pred].insert(Succ).second) { in calculate()
149 WorkList.emplace_back(Pred, Succ); in calculate()
458 for (auto *Succ : Pred->successors()) { in makeSingleEntryLoop() local
[all …]
DWebAssemblyCFGSort.cpp294 for (MachineBasicBlock *Succ : MBB->successors()) { in sortBlocks()
296 if (MachineLoop *SuccL = MLI.getLoopFor(Succ)) in sortBlocks()
297 if (SuccL->getHeader() == Succ && SuccL->contains(MBB)) in sortBlocks()
300 if (--NumPredsLeft[Succ->getNumber()] == 0) in sortBlocks()
301 Preferred.push(Succ); in sortBlocks()
DWebAssemblyLateEHPrepare.cpp96 for (auto *Succ : Succs) in eraseDeadBBsAndChildren() local
97 MBB->removeSuccessor(Succ); in eraseDeadBBsAndChildren()
201 for (auto *Succ : Succs) in removeUnnecessaryUnreachables() local
202 if (!Succ->isEHPad()) in removeUnnecessaryUnreachables()
203 MBB.removeSuccessor(Succ); in removeUnnecessaryUnreachables()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DSIMachineScheduler.cpp443 for (SDep& Succ : SU->Succs) { in undoSchedule()
444 if (BC->isSUInBlock(Succ.getSUnit(), ID)) in undoSchedule()
445 undoReleaseSucc(SU, &Succ); in undoSchedule()
484 for (SDep& Succ : SU->Succs) { in releaseSuccessors()
485 SUnit *SuccSU = Succ.getSUnit(); in releaseSuccessors()
493 releaseSucc(SU, &Succ); in releaseSuccessors()
516 for (SDep& Succ : SU->Succs) { in nodeScheduled()
518 NodeNum2Index.find(Succ.getSUnit()->NodeNum); in nodeScheduled()
555 void SIScheduleBlock::addSucc(SIScheduleBlock *Succ, in addSucc() argument
557 unsigned SuccID = Succ->getID(); in addSucc()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DCFG.h41 unsigned GetSuccessorNumber(const BasicBlock *BB, const BasicBlock *Succ);
49 bool isCriticalEdge(const Instruction *TI, const BasicBlock *Succ,
160 for (NodeT Succ : make_range(GT::child_begin(Node), GT::child_end(Node))) { in containsIrreducibleCFG() local
162 if (!Visited.count(Succ)) in containsIrreducibleCFG()
167 if (!isProperBackedge(Node, Succ)) in containsIrreducibleCFG()
DRegionInfoImpl.h261 for (BlockT *Succ : in verifyBBInRegion()
263 if (!contains(Succ) && exit != Succ) in verifyBBInRegion()
286 for (BlockT *Succ : in verifyWalk()
288 if (Succ != exit && visited->find(Succ) == visited->end()) in verifyWalk()
289 verifyWalk(Succ, visited); in verifyWalk()
601 for (BlockT *Succ : *entrySuccs) { in isRegion()
602 if (Succ == exit || Succ == entry) in isRegion()
604 if (exitSuccs->find(Succ) == exitSuccs->end()) in isRegion()
606 if (!isCommonDomFrontier(Succ, entry, exit)) in isRegion()
611 for (BlockT *Succ : *exitSuccs) { in isRegion()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DScheduleDAGFast.cpp192 for (SDep &Succ : SU->Succs) { in ScheduleNodeBottomUp()
193 if (Succ.isAssignedRegDep()) { in ScheduleNodeBottomUp()
194 if (LiveRegCycles[Succ.getReg()] == Succ.getSUnit()->getHeight()) { in ScheduleNodeBottomUp()
196 assert(LiveRegDefs[Succ.getReg()] == SU && in ScheduleNodeBottomUp()
199 LiveRegDefs[Succ.getReg()] = nullptr; in ScheduleNodeBottomUp()
200 LiveRegCycles[Succ.getReg()] = 0; in ScheduleNodeBottomUp()
291 for (SDep &Succ : SU->Succs) { in CopyAndMoveSuccessors()
292 if (Succ.isCtrl()) in CopyAndMoveSuccessors()
293 ChainSuccs.push_back(Succ); in CopyAndMoveSuccessors()
295 NodeSuccs.push_back(Succ); in CopyAndMoveSuccessors()
[all …]
DResourcePriorityQueue.cpp107 for (const SDep &Succ : SU->Succs) { in numberRCValSuccInSU() local
108 if (Succ.isCtrl()) in numberRCValSuccInSU()
111 SUnit *SuccSU = Succ.getSUnit(); in numberRCValSuccInSU()
144 for (const SDep &Succ : SU->Succs) in numberCtrlDepsInSU() local
145 if (Succ.isCtrl()) in numberCtrlDepsInSU()
229 for (const SDep &Succ : SU->Succs) in push() local
230 if (getSingleUnscheduledPred(Succ.getSUnit()) == SU) in push()
268 for (const SDep &Succ : Packet[i]->Succs) { in isResourceAvailable() local
271 if (Succ.isCtrl()) in isResourceAvailable()
274 if (Succ.getSUnit() == SU) in isResourceAvailable()
[all …]
DScheduleDAGRRList.cpp770 for (SDep &Succ : SU->Succs) { in ScheduleNodeBottomUp()
772 if (Succ.isAssignedRegDep() && LiveRegDefs[Succ.getReg()] == SU) { in ScheduleNodeBottomUp()
775 LiveRegDefs[Succ.getReg()] = nullptr; in ScheduleNodeBottomUp()
776 LiveRegGens[Succ.getReg()] = nullptr; in ScheduleNodeBottomUp()
777 releaseInterferences(Succ.getReg()); in ScheduleNodeBottomUp()
886 for (auto &Succ : SU->Succs) { in UnscheduleNodeBottomUp() local
887 if (Succ.isAssignedRegDep()) { in UnscheduleNodeBottomUp()
888 auto Reg = Succ.getReg(); in UnscheduleNodeBottomUp()
899 LiveRegGens[Reg] = Succ.getSUnit(); in UnscheduleNodeBottomUp()
1070 for (SDep &Succ : SU->Succs) { in TryUnfoldSU()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/HardwareUnits/
DLSUnit.h45 SmallVector<MemoryGroup *, 4> Succ; variable
60 ArrayRef<MemoryGroup *> getSuccessors() const { return Succ; } in getSuccessors()
61 unsigned getNumSuccessors() const { return Succ.size(); } in getNumSuccessors()
85 Succ.emplace_back(Group); in addSuccessor()
138 for (MemoryGroup *MG : Succ) in onInstructionIssued()
151 for (MemoryGroup *MG : Succ) in onInstructionExecuted()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DGenericIteratedDominanceFrontier.h176 auto DoWork = [&](NodeTy *Succ) { in calculate()
177 DomTreeNodeBase<NodeTy> *SuccNode = DT.getNode(Succ); in calculate()
196 for (auto Succ : ChildrenGetter.get(BB)) in calculate() local
197 DoWork(Succ); in calculate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/MSP430/
DMSP430BranchSelector.cpp160 for (MachineBasicBlock *Succ : MBB->successors()) { in expandBranches()
161 if (Succ == DestBB) { in expandBranches()
164 MBB->replaceSuccessor(Succ, NewBB); in expandBranches()
165 NewBB->addSuccessor(Succ); in expandBranches()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86SpeculativeLoadHardening.cpp224 MachineBasicBlock &Succ, int SuccCount, in splitEdge() argument
227 assert(!Succ.isEHPad() && "Shouldn't get edges to EH pads!"); in splitEdge()
240 assert(Br->getOperand(0).getMBB() == &Succ && in splitEdge()
261 if (!NewMBB.isLayoutSuccessor(&Succ)) { in splitEdge()
263 TII.insertBranch(NewMBB, &Succ, nullptr, Cond, Br->getDebugLoc()); in splitEdge()
268 assert(NewMBB.isLayoutSuccessor(&Succ) && in splitEdge()
277 MBB.replaceSuccessor(&Succ, &NewMBB); in splitEdge()
279 MBB.splitSuccessor(&Succ, &NewMBB); in splitEdge()
283 NewMBB.addSuccessor(&Succ); in splitEdge()
286 for (MachineInstr &MI : Succ) { in splitEdge()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroFrame.cpp796 static void setUnwindEdgeTo(Instruction *TI, BasicBlock *Succ) { in setUnwindEdgeTo() argument
798 II->setUnwindDest(Succ); in setUnwindEdgeTo()
800 CS->setUnwindDest(Succ); in setUnwindEdgeTo()
802 CR->setUnwindDest(Succ); in setUnwindEdgeTo()
836 static BasicBlock *ehAwareSplitEdge(BasicBlock *BB, BasicBlock *Succ, in ehAwareSplitEdge() argument
839 auto *PadInst = Succ->getFirstNonPHI(); in ehAwareSplitEdge()
841 return SplitEdge(BB, Succ); in ehAwareSplitEdge()
843 auto *NewBB = BasicBlock::Create(BB->getContext(), "", BB->getParent(), Succ); in ehAwareSplitEdge()
845 updatePhiNodes(Succ, BB, NewBB, LandingPadReplacement); in ehAwareSplitEdge()
849 auto *Terminator = BranchInst::Create(Succ, NewBB); in ehAwareSplitEdge()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp243 for (BasicBlock *Succ : successors(SI2BB)) in SafeToMergeTerminators()
244 if (SI1Succs.count(Succ)) in SafeToMergeTerminators()
245 for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) { in SafeToMergeTerminators()
250 FailBlocks->insert(Succ); in SafeToMergeTerminators()
286 for (BasicBlock *Succ : successors(SI2BB)) in isProfitableToFoldUnconditional()
287 if (SI1Succs.count(Succ)) in isProfitableToFoldUnconditional()
288 for (BasicBlock::iterator BBI = Succ->begin(); isa<PHINode>(BBI); ++BBI) { in isProfitableToFoldUnconditional()
302 static void AddPredecessorToBlock(BasicBlock *Succ, BasicBlock *NewPred, in AddPredecessorToBlock() argument
305 for (PHINode &PN : Succ->phis()) in AddPredecessorToBlock()
308 if (auto *MPhi = MSSAU->getMemorySSA()->getMemoryAccess(Succ)) in AddPredecessorToBlock()
[all …]

123456