/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/swiftshader/third_party/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 …]
|
/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 …]
|
D | MachineTraceMetrics.cpp | 207 if (!TBI->Succ) { in computeHeightResources() 216 unsigned SuccNum = TBI->Succ->getNumber(); in computeHeightResources() 347 for (const MachineBasicBlock *Succ : MBB->successors()) { in pickTraceSucc() local 349 if (CurLoop && Succ == CurLoop->getHeader()) in pickTraceSucc() 352 if (isExitingLoop(CurLoop, getLoopFor(Succ))) in pickTraceSucc() 355 getHeightResources(Succ); in pickTraceSucc() 362 Best = Succ; in pickTraceSucc() 488 TBI.Succ = pickTraceSucc(I); in computeTrace() 490 if (TBI.Succ) in computeTrace() 491 dbgs() << "BB#" << TBI.Succ->getNumber() << '\n'; in computeTrace() [all …]
|
D | MachineDominators.cpp | 96 MachineBasicBlock *Succ = Edge.ToBB; in applySplitCriticalEdges() local 97 MachineDomTreeNode *SuccDTNode = DT->getNode(Succ); in applySplitCriticalEdges() 99 for (MachineBasicBlock *PredBB : Succ->predecessors()) { in applySplitCriticalEdges()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineBasicBlock.cpp | 414 MachineBasicBlock *Succ = *fromMBB->succ_begin(); in transferSuccessors() local 422 addSuccessor(Succ, weight); in transferSuccessors() 423 fromMBB->removeSuccessor(Succ); in transferSuccessors() 433 MachineBasicBlock *Succ = *fromMBB->succ_begin(); in transferSuccessorsAndUpdatePHIs() local 434 addSuccessor(Succ); in transferSuccessorsAndUpdatePHIs() 435 fromMBB->removeSuccessor(Succ); in transferSuccessorsAndUpdatePHIs() 438 for (MachineBasicBlock::iterator MI = Succ->begin(), ME = Succ->end(); in transferSuccessorsAndUpdatePHIs() 504 MachineBasicBlock::SplitCriticalEdge(MachineBasicBlock *Succ, Pass *P) { in SplitCriticalEdge() argument 531 << " -- BB#" << Succ->getNumber() << '\n'); in SplitCriticalEdge() 557 ReplaceUsesOfBlockWith(Succ, NMBB); in SplitCriticalEdge() [all …]
|
D | MachineBranchProbabilityInfo.cpp | 35 MachineBasicBlock *Succ = *I; in getSumForBlock() local 36 uint32_t Weight = getEdgeWeight(MBB, Succ); in getSumForBlock() 74 MachineBasicBlock *Succ = *I; in getHotSucc() local 75 uint32_t Weight = getEdgeWeight(MBB, Succ); in getHotSucc() 83 MaxSucc = Succ; in getHotSucc()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | Local.cpp | 153 BasicBlock *Succ = SI->getSuccessor(i); in ConstantFoldTerminator() local 154 if (Succ == TheOnlyDest) in ConstantFoldTerminator() 157 Succ->removePredecessor(BB); in ConstantFoldTerminator() 479 static bool CanPropagatePredecessorsForPHIs(BasicBlock *BB, BasicBlock *Succ) { in CanPropagatePredecessorsForPHIs() argument 480 assert(*succ_begin(BB) == Succ && "Succ is not successor of BB!"); in CanPropagatePredecessorsForPHIs() 483 << Succ->getName() << "\n"); in CanPropagatePredecessorsForPHIs() 486 if (Succ->getSinglePredecessor()) return true; in CanPropagatePredecessorsForPHIs() 494 for (pred_iterator PI = pred_begin(Succ), PE = pred_end(Succ); in CanPropagatePredecessorsForPHIs() 507 for (BasicBlock::iterator I = Succ->begin(); isa<PHINode>(I); ++I) { in CanPropagatePredecessorsForPHIs() 520 << Succ->getName() << " is conflicting with " in CanPropagatePredecessorsForPHIs() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 192 BasicBlock *Succ = *I; in calcReturnHeuristics() local 193 if (isReturningBlock(Succ)) in calcReturnHeuristics() 194 ReturningEdges.insert(Succ); in calcReturnHeuristics() 196 StayEdges.insert(Succ); in calcReturnHeuristics() 273 BasicBlock *Succ = *I; in calcLoopBranchHeuristics() local 274 Loop *SuccL = LI->getLoopFor(Succ); in calcLoopBranchHeuristics() 276 ExitingEdges.insert(Succ); in calcLoopBranchHeuristics() 277 else if (Succ == L->getHeader()) in calcLoopBranchHeuristics() 278 BackEdges.insert(Succ); in calcLoopBranchHeuristics() 280 InEdges.insert(Succ); in calcLoopBranchHeuristics() [all …]
|
D | ProfileInfo.cpp | 250 succ_const_iterator Succ = succ_begin(BB), End = succ_end(BB); in GetPath() local 251 if (Succ == End) { in GetPath() 258 for(;Succ != End; ++Succ) { in GetPath() 259 if (P.find(*Succ) != P.end()) continue; in GetPath() 260 Edge e = getEdge(BB,*Succ); in GetPath() 262 P[*Succ] = BB; in GetPath() 263 BFS.push(*Succ); in GetPath() 264 if ((Mode & GetPathToDest) && *Succ == Dest) { in GetPath() 266 BB = *Succ; in GetPath() 269 if ((Mode & GetPathToValue) && (getExecutionCount(*Succ) != MissingValue)) { in GetPath() [all …]
|
/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/clang/lib/StaticAnalyzer/Core/ |
D | CoreEngine.cpp | 185 const CFGBlock *Succ = *(Entry->succ_begin()); in ExecuteWorkList() local 189 BlockEdge StartLoc(Entry, Succ, L); in ExecuteWorkList() 586 ExplodedNode *Succ = G.getNode(Loc, N->getState(), false, &IsNew); in enqueueStmtNode() local 587 Succ->addPredecessor(N, G); in enqueueStmtNode() 590 WList->enqueue(Succ, Block, Idx+1); in enqueueStmtNode() 681 ExplodedNode *Succ = generateNodeImpl(Loc, State, NodePred); in generateNode() local 682 return Succ; in generateNode() 690 ExplodedNode *Succ = in generateNode() local 693 Succ->addPredecessor(Pred, Eng.G); in generateNode() 699 Eng.WList->enqueue(Succ); in generateNode() [all …]
|
/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/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/clang/lib/Analysis/ |
D | CFG.cpp | 374 CFGBlock *Succ; member in __anone933097c0111::CFGBuilder 416 Block(nullptr), Succ(nullptr), in CFGBuilder() 521 : IsConditional(false), KnownExecuted(true), Succ(nullptr), in TempDtorContext() 525 : IsConditional(true), KnownExecuted(KnownExecuted), Succ(nullptr), in TempDtorContext() 541 Succ = S; in setDecisionPoint() 547 CFGBlock *Succ; member 1030 Succ = createBlock(); in buildCFG() 1031 assert(Succ == &cfg->getExit()); in buildCFG() 1054 Succ = B; in buildCFG() 1100 if (add_successor && Succ) in createBlock() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/ |
D | OptimalEdgeProfiling.cpp | 183 BasicBlock *Succ = TI->getSuccessor(s); in runOnModule() local 184 ProfileInfo::Edge edge = ProfileInfo::getEdge(BB,Succ); in runOnModule() 189 Succ = TI->getSuccessor(s); in runOnModule() 191 InsertedBlocks.insert(Succ); in runOnModule() 202 printEdgeCounter(edge, Succ, i); in runOnModule() 203 IncrementCounterInBlock(Succ, i, Counters); ++NumEdgesInserted; in runOnModule()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | TestAfterDivZeroChecker.cpp | 73 PathDiagnosticPiece *VisitNode(const ExplodedNode *Succ, 97 PathDiagnosticPiece *DivisionBRVisitor::VisitNode(const ExplodedNode *Succ, in REGISTER_SET_WITH_PROGRAMSTATE() 106 if (Optional<PostStmt> P = Succ->getLocationAs<PostStmt>()) in REGISTER_SET_WITH_PROGRAMSTATE() 118 ProgramStateRef State = Succ->getState(); in REGISTER_SET_WITH_PROGRAMSTATE() 119 SVal S = State->getSVal(E, Succ->getLocationContext()); in REGISTER_SET_WITH_PROGRAMSTATE() 120 if (ZeroSymbol == S.getAsSymbol() && SFC == Succ->getStackFrame()) { in REGISTER_SET_WITH_PROGRAMSTATE() 124 ProgramPoint P = Succ->getLocation(); in REGISTER_SET_WITH_PROGRAMSTATE()
|
D | ObjCSuperDeallocChecker.cpp | 76 PathDiagnosticPiece *VisitNode(const ExplodedNode *Succ, 252 PathDiagnosticPiece *SuperDeallocBRVisitor::VisitNode(const ExplodedNode *Succ, in VisitNode() argument 259 ProgramStateRef State = Succ->getState(); in VisitNode() 262 Succ->getState()->contains<CalledSuperDealloc>(ReceiverSymbol); in VisitNode() 271 ProgramPoint P = Succ->getLocation(); in VisitNode()
|
/external/clang/test/SemaTemplate/ |
D | alias-church-numerals.cpp | 10 …typename> class, typename> class N, template<typename> class F, typename X> using Succ = F<N<F,X>>; typedef 12 template<template<typename> class F, typename X> using One = Succ<Zero, F, X>; 13 template<template<typename> class F, typename X> using Two = Succ<One, F, X>;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | ScheduleDAGRRList.cpp | 851 for (auto &Succ : SU->Succs) { in UnscheduleNodeBottomUp() local 852 if (Succ.isAssignedRegDep()) { in UnscheduleNodeBottomUp() 853 auto Reg = Succ.getReg(); in UnscheduleNodeBottomUp() 864 LiveRegGens[Reg] = Succ.getSUnit(); in UnscheduleNodeBottomUp() 1038 for (SDep &Succ : SU->Succs) { in CopyAndMoveSuccessors() 1039 if (Succ.isCtrl()) in CopyAndMoveSuccessors() 1040 ChainSuccs.push_back(Succ); in CopyAndMoveSuccessors() 1042 NodeSuccs.push_back(Succ); in CopyAndMoveSuccessors() 1111 for (SDep &Succ : SU->Succs) { in CopyAndMoveSuccessors() 1112 if (Succ.isArtificial()) in CopyAndMoveSuccessors() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | BasicBlockUtils.h | 84 unsigned GetSuccessorNumber(BasicBlock *BB, BasicBlock *Succ); 125 inline bool SplitCriticalEdge(BasicBlock *Succ, pred_iterator PI, Pass *P = 0) { 129 if (TI->getSuccessor(i) == Succ)
|