/external/llvm-project/llvm/test/Transforms/SimplifyCFG/ |
D | 2008-05-16-PHIBlockMerge.ll | 19 br label %Succ 21 Succ: ; preds = %Common, %BB.nomerge 26 Common: ; preds = %Succ 28 br i1 %cond, label %BB.nomerge, label %Succ 30 Exit: ; preds = %Succ 40 br label %Succ 42 Succ: ; preds = %Common, %BB.nomerge 49 Common: ; preds = %Succ 51 br i1 %cond, label %BB.nomerge, label %Succ 53 Exit: ; preds = %Succ [all …]
|
D | EqualPHIEdgeBlockMerge.ll | 144 br label %Succ 146 Succ: ; preds = %Common, %BB.nomerge 151 Common: ; preds = %Succ 153 br i1 %cond, label %BB.nomerge, label %Succ 155 Exit: ; preds = %Succ 165 br label %Succ 167 Succ: ; preds = %Common, %BB.nomerge 174 Common: ; preds = %Succ 176 br i1 %cond, label %BB.nomerge, label %Succ 178 Exit: ; preds = %Succ [all …]
|
/external/llvm/test/Transforms/SimplifyCFG/ |
D | 2008-05-16-PHIBlockMerge.ll | 19 br label %Succ 21 Succ: ; preds = %Common, %BB.nomerge 26 Common: ; preds = %Succ 28 br i1 %cond, label %BB.nomerge, label %Succ 30 Exit: ; preds = %Succ 40 br label %Succ 42 Succ: ; preds = %Common, %BB.nomerge 49 Common: ; preds = %Succ 51 br i1 %cond, label %BB.nomerge, label %Succ 53 Exit: ; preds = %Succ [all …]
|
D | EqualPHIEdgeBlockMerge.ll | 144 br label %Succ 146 Succ: ; preds = %Common, %BB.nomerge 151 Common: ; preds = %Succ 153 br i1 %cond, label %BB.nomerge, label %Succ 155 Exit: ; preds = %Succ 165 br label %Succ 167 Succ: ; preds = %Common, %BB.nomerge 174 Common: ; preds = %Succ 176 br i1 %cond, label %BB.nomerge, label %Succ 178 Exit: ; preds = %Succ [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | MachineBlockPlacement.cpp | 468 const MachineBasicBlock *BB, const MachineBasicBlock *Succ, 527 const MachineBasicBlock *BB, const MachineBasicBlock *Succ, 551 const MachineBasicBlock *BB, MachineBasicBlock *Succ, 643 for (MachineBasicBlock *Succ : MBB->successors()) { in markBlockSuccessors() 644 if (BlockFilter && !BlockFilter->count(Succ)) in markBlockSuccessors() 646 BlockChain &SuccChain = *BlockToChain[Succ]; in markBlockSuccessors() 648 if (&Chain == &SuccChain || Succ == LoopHeaderBB) in markBlockSuccessors() 690 for (MachineBasicBlock *Succ : BB->successors()) { in collectViableSuccessors() 692 if (Succ->isEHPad() || (BlockFilter && !BlockFilter->count(Succ))) { in collectViableSuccessors() 695 BlockChain *SuccChain = BlockToChain[Succ]; in collectViableSuccessors() [all …]
|
D | CFIInstrInserter.cpp | 130 void reportCFAError(const MBBCFAInfo &Pred, const MBBCFAInfo &Succ); 131 void reportCSRError(const MBBCFAInfo &Pred, const MBBCFAInfo &Succ); 281 for (auto *Succ : CurrentInfo.MBB->successors()) { in updateSuccCFAInfo() local 282 MBBCFAInfo &SuccInfo = MBBVector[Succ->getNumber()]; in updateSuccCFAInfo() 287 Stack.push_back(Succ); in updateSuccCFAInfo() 386 const MBBCFAInfo &Succ) { in reportCFAError() argument 395 errs() << "Succ: " << Succ.MBB->getName() << " #" << Succ.MBB->getNumber() in reportCFAError() 396 << " incoming CFA Reg:" << Succ.IncomingCFARegister << "\n"; in reportCFAError() 397 errs() << "Succ: " << Succ.MBB->getName() << " #" << Succ.MBB->getNumber() in reportCFAError() 398 << " incoming CFA Offset:" << Succ.IncomingCFAOffset << "\n"; in reportCFAError() [all …]
|
D | MachineBasicBlock.cpp | 280 for (const MachineBasicBlock *Succ : successors()) { in mayHaveInlineAsmBr() local 281 if (Succ->isInlineAsmBrIndirectTarget()) in mayHaveInlineAsmBr() 732 void MachineBasicBlock::addSuccessor(MachineBasicBlock *Succ, in addSuccessor() argument 738 Successors.push_back(Succ); in addSuccessor() 739 Succ->addPredecessor(this); in addSuccessor() 742 void MachineBasicBlock::addSuccessorWithoutProb(MachineBasicBlock *Succ) { in addSuccessorWithoutProb() argument 747 Successors.push_back(Succ); in addSuccessorWithoutProb() 748 Succ->addPredecessor(this); in addSuccessorWithoutProb() 770 void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ, in removeSuccessor() argument 772 succ_iterator I = find(Successors, Succ); in removeSuccessor() [all …]
|
D | LoopTraversal.cpp | 46 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()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | MachineBlockPlacement.cpp | 421 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 …]
|
D | CFIInstrInserter.cpp | 111 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 …]
|
D | MachineBasicBlock.cpp | 655 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 …]
|
D | LoopTraversal.cpp | 46 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()
|
D | MachineTraceMetrics.cpp | 219 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 …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceLoopAnalyzer.cpp | 62 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 …]
|
/external/llvm/lib/CodeGen/ |
D | MachineBlockPlacement.cpp | 292 bool shouldPredBlockBeOutlined(MachineBasicBlock *BB, MachineBasicBlock *Succ, 298 hasBetterLayoutPredecessor(MachineBasicBlock *BB, MachineBasicBlock *Succ, 398 for (MachineBasicBlock *Succ : MBB->successors()) { in markChainSuccessors() 399 if (BlockFilter && !BlockFilter->count(Succ)) in markChainSuccessors() 401 BlockChain &SuccChain = *BlockToChain[Succ]; in markChainSuccessors() 403 if (&Chain == &SuccChain || Succ == LoopHeaderBB) in markChainSuccessors() 445 for (MachineBasicBlock *Succ : BB->successors()) { in collectViableSuccessors() 447 if (Succ->isEHPad() || (BlockFilter && !BlockFilter->count(Succ))) { in collectViableSuccessors() 450 BlockChain *SuccChain = BlockToChain[Succ]; in collectViableSuccessors() 453 } else if (Succ != *SuccChain->begin()) { in collectViableSuccessors() [all …]
|
D | MachineBasicBlock.cpp | 527 void MachineBasicBlock::addSuccessor(MachineBasicBlock *Succ, in addSuccessor() argument 533 Successors.push_back(Succ); in addSuccessor() 534 Succ->addPredecessor(this); in addSuccessor() 537 void MachineBasicBlock::addSuccessorWithoutProb(MachineBasicBlock *Succ) { in addSuccessorWithoutProb() argument 542 Successors.push_back(Succ); in addSuccessorWithoutProb() 543 Succ->addPredecessor(this); in addSuccessorWithoutProb() 546 void MachineBasicBlock::removeSuccessor(MachineBasicBlock *Succ, in removeSuccessor() argument 548 succ_iterator I = std::find(Successors.begin(), Successors.end(), Succ); in removeSuccessor() 624 MachineBasicBlock *Succ = *FromMBB->succ_begin(); in transferSuccessors() local 629 addSuccessor(Succ, Prob); in transferSuccessors() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 199 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 …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 201 for (auto *Succ : successors(BB)) in hasIrreducibleCFG() local 202 if (L.contains(Succ) && !LI.isLoopHeader(Succ) && RPO[BB] > RPO[Succ]) in hasIrreducibleCFG() 251 for (BasicBlock *Succ : successors(BB)) in analyze() 252 if (!TakeFoldCandidate || TheOnlySucc == Succ) { in analyze() 253 if (L.contains(Succ)) in analyze() 254 LiveLoopBlocks.insert(Succ); in analyze() 256 LiveExitBlocks.insert(Succ); in analyze() 299 return any_of(successors(BB), [&](BasicBlock *Succ) { in analyze() argument 300 return BlocksInLoopAfterFolding.count(Succ) && IsEdgeLive(BB, Succ); in analyze() 497 for (auto *Succ : successors(BB)) in foldTerminators() local [all …]
|
/external/llvm-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixIrreducibleControlFlow.cpp | 143 for (auto *Succ : MBB->successors()) { in calculate() local 144 if (Succ != Entry && inRegion(Succ)) { in calculate() 145 Reachable[MBB].insert(Succ); in calculate() 146 WorkList.emplace_back(MBB, Succ); in calculate() 152 MachineBasicBlock *MBB, *Succ; in calculate() local 153 std::tie(MBB, Succ) = WorkList.pop_back_val(); in calculate() 154 assert(inRegion(MBB) && Succ != Entry && inRegion(Succ)); in calculate() 159 if (Reachable[Pred].insert(Succ).second) { in calculate() 160 WorkList.emplace_back(Pred, Succ); in calculate() 470 for (auto *Succ : Pred->successors()) { in makeSingleEntryLoop() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixIrreducibleControlFlow.cpp | 132 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 …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopSimplifyCFG.cpp | 48 BasicBlock *Succ = cast_or_null<BasicBlock>(Block); in simplifyLoopCFG() local 49 if (!Succ) in simplifyLoopCFG() 52 BasicBlock *Pred = Succ->getSinglePredecessor(); in simplifyLoopCFG() 58 L.moveToHeader(Succ); in simplifyLoopCFG() 60 MergeBasicBlockIntoOnlyPred(Succ, &DT); in simplifyLoopCFG()
|
/external/llvm/lib/Target/Mips/ |
D | MipsHazardSchedule.cpp | 128 for (auto *Succ : FI->successors()) { in runOnMachineFunction() local 129 if (FI->isLayoutSuccessor(Succ) && in runOnMachineFunction() 130 getNextMachineInstr(Succ->begin()) != Succ->end() && in runOnMachineFunction() 131 !TII->SafeInForbiddenSlot(*getNextMachineInstr(Succ->begin()))) { in runOnMachineFunction()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyFixIrreducibleControlFlow.cpp | 219 for (auto *Succ : Meta.successors()) in VisitLoop() local 220 if (Succ != Header && (!Loop || Loop->contains(Succ))) in VisitLoop() 221 SuccWorklist.push_back(Succ); in VisitLoop() 229 for (auto *Succ : MBB->successors()) { in VisitLoop() local 230 if (!Indices.count(Succ)) in VisitLoop() 234 MF.insert(MBB->isLayoutSuccessor(Succ) ? MachineFunction::iterator(Succ) in VisitLoop() 243 .addImm(Indices[Succ]); in VisitLoop() 247 Map[Succ] = Split; in VisitLoop()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIMachineScheduler.cpp | 423 for (SDep& Succ : SU->Succs) { in undoSchedule() 424 if (BC->isSUInBlock(Succ.getSUnit(), ID)) in undoSchedule() 425 undoReleaseSucc(SU, &Succ); in undoSchedule() 464 for (SDep& Succ : SU->Succs) { in releaseSuccessors() 465 SUnit *SuccSU = Succ.getSUnit(); in releaseSuccessors() 470 releaseSucc(SU, &Succ); in releaseSuccessors() 494 for (SDep& Succ : SU->Succs) { in nodeScheduled() 496 NodeNum2Index.find(Succ.getSUnit()->NodeNum); in nodeScheduled() 530 void SIScheduleBlock::addSucc(SIScheduleBlock *Succ) { in addSucc() argument 531 unsigned SuccID = Succ->getID(); in addSucc() [all …]
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 96 const CFGBlock *Succ = *(Entry->succ_begin()); in ExecuteWorkList() local 100 BlockEdge StartLoc(Entry, Succ, L); in ExecuteWorkList() 555 ExplodedNode *Succ = G.getNode(Loc, N->getState(), false, &IsNew); in enqueueStmtNode() local 556 Succ->addPredecessor(N, G); in enqueueStmtNode() 559 WList->enqueue(Succ, Block, Idx+1); in enqueueStmtNode() 642 ExplodedNode *Succ = generateNodeImpl(Loc, State, NodePred); in generateNode() local 643 return Succ; in generateNode() 651 ExplodedNode *Succ = in generateNode() local 654 Succ->addPredecessor(Pred, Eng.G); in generateNode() 660 Eng.WList->enqueue(Succ); in generateNode() [all …]
|