/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 74 template <typename... Preds> struct And { 81 template <typename Pred, typename... Preds> 82 struct And<Pred, Preds...> : And<Preds...> { 84 And(Pred &&p, Preds &&... preds) 85 : And<Preds...>(std::forward<Preds>(preds)...), P(std::forward<Pred>(p)) { 89 return P.match(MRI, src) && And<Preds...>::match(MRI, src); 93 template <typename... Preds> struct Or { 100 template <typename Pred, typename... Preds> 101 struct Or<Pred, Preds...> : Or<Preds...> { 103 Or(Pred &&p, Preds &&... preds) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 181 SmallVector<BasicBlock *, 2> Preds(predecessors((BB))); in getTwoPredecessors() local 182 assert(Preds.size() == 2 && "Expected exactly 2 predecessors!"); in getTwoPredecessors() 183 return Preds; in getTwoPredecessors() 195 SmallVector<BasicBlock *, 2> Preds(predecessors(CallSiteBB)); in canSplitCallSite() local 196 if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) || in canSplitCallSite() 197 isa<IndirectBrInst>(Preds[1]->getTerminator())) in canSplitCallSite() 304 const SmallVectorImpl<std::pair<BasicBlock *, ConditionsTy>> &Preds, in splitCallSite() argument 316 CallPN = PHINode::Create(Instr->getType(), Preds.size(), "phi.call"); in splitCallSite() 320 assert(Preds.size() == 2 && "The ValueToValueMaps array has size 2."); in splitCallSite() 324 for (unsigned i = 0; i < Preds.size(); i++) { in splitCallSite() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 321 ArrayRef<BasicBlock *> Preds, in UpdateAnalysisInformation() argument 335 i = Preds.begin(), e = Preds.end(); i != e; ++i) { in UpdateAnalysisInformation() 369 i = Preds.begin(), e = Preds.end(); i != e; ++i) { in UpdateAnalysisInformation() 397 ArrayRef<BasicBlock*> Preds, BranchInst *BI, in UpdatePHINodes() argument 408 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 409 for (unsigned i = 1, e = Preds.size(); i != e; ++i) in UpdatePHINodes() 410 if (InVal != PN->getIncomingValueForBlock(Preds[i])) { in UpdatePHINodes() 420 for (unsigned i = 0, e = Preds.size(); i != e; ++i) in UpdatePHINodes() 421 PN->removeIncomingValue(Preds[i], false); in UpdatePHINodes() 426 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI); in UpdatePHINodes() [all …]
|
D | BreakCriticalEdges.cpp | 125 static void CreatePHIsForSplitLoopExit(SmallVectorImpl<BasicBlock *> &Preds, in CreatePHIsForSplitLoopExit() argument 143 PHINode *NewPN = PHINode::Create(PN->getType(), Preds.size(), "split", in CreatePHIsForSplitLoopExit() 145 for (unsigned i = 0, e = Preds.size(); i != e; ++i) in CreatePHIsForSplitLoopExit() 146 NewPN->addIncoming(V, Preds[i]); in CreatePHIsForSplitLoopExit() 352 SmallVector<BasicBlock *, 4> Preds; in SplitCriticalEdge() local 360 Preds.clear(); in SplitCriticalEdge() 363 Preds.push_back(P); in SplitCriticalEdge() 373 if (!Preds.empty() && HasPredOutsideOfLoop) { in SplitCriticalEdge() 375 SplitBlockPredecessors(Exit, Preds.data(), Preds.size(), in SplitCriticalEdge() 378 CreatePHIsForSplitLoopExit(Preds, NewExitBB, Exit); in SplitCriticalEdge()
|
/external/llvm/lib/CodeGen/ |
D | ScheduleDAG.cpp | 67 for (SmallVectorImpl<SDep>::iterator I = Preds.begin(), E = Preds.end(); in addPred() 121 Preds.push_back(D); in addPred() 135 for (SmallVectorImpl<SDep>::iterator I = Preds.begin(), E = Preds.end(); in removePred() 146 Preds.erase(I); in removePred() 201 for (SUnit::const_pred_iterator I = SU->Preds.begin(), in setHeightDirty() 202 E = SU->Preds.end(); I != E; ++I) { in setHeightDirty() 242 for (SUnit::const_pred_iterator I = Cur->Preds.begin(), in ComputeDepth() 243 E = Cur->Preds.end(); I != E; ++I) { in ComputeDepth() 302 SUnit::pred_iterator BestI = Preds.begin(); in biasCriticalPath() 304 for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E; in biasCriticalPath() [all …]
|
D | TailDuplicator.cpp | 75 SmallSetVector<MachineBasicBlock *, 8> Preds(MBB->pred_begin(), in VerifyPHIs() local 81 for (SmallSetVector<MachineBasicBlock *, 8>::iterator PI = Preds.begin(), in VerifyPHIs() 82 PE = Preds.end(); in VerifyPHIs() 103 if (CheckExtra && !Preds.count(PHIBB)) { in VerifyPHIs() 649 SmallVector<MachineBasicBlock *, 8> Preds(TailBB->pred_begin(), in duplicateSimpleBB() local 652 for (SmallSetVector<MachineBasicBlock *, 8>::iterator PI = Preds.begin(), in duplicateSimpleBB() 653 PE = Preds.end(); in duplicateSimpleBB() 738 SmallSetVector<MachineBasicBlock *, 8> Preds(TailBB->pred_begin(), in tailDuplicate() local 740 for (SmallSetVector<MachineBasicBlock *, 8>::iterator PI = Preds.begin(), in tailDuplicate() 741 PE = Preds.end(); in tailDuplicate() [all …]
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | ScheduleDAG.cpp | 90 for (SmallVector<SDep, 4>::const_iterator I = Preds.begin(), E = Preds.end(); in addPred() 113 Preds.push_back(D); in addPred() 127 for (SmallVector<SDep, 4>::iterator I = Preds.begin(), E = Preds.end(); in removePred() 144 Preds.erase(I); in removePred() 191 for (SUnit::const_pred_iterator I = SU->Preds.begin(), in setHeightDirty() 192 E = SU->Preds.end(); I != E; ++I) { in setHeightDirty() 232 for (SUnit::const_pred_iterator I = Cur->Preds.begin(), in ComputeDepth() 233 E = Cur->Preds.end(); I != E; ++I) { in ComputeDepth() 305 if (Preds.size() != 0) { in dumpAll() 307 for (SUnit::const_succ_iterator I = Preds.begin(), E = Preds.end(); in dumpAll() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 43 BBInfo **Preds; // Array[NumPreds] of predecessor blocks. variable 48 NumPreds(0), Preds(0), PHITag(0) { } in BBInfo() 103 SmallVector<BlkT*, 10> Preds; in BuildBlockList() local 106 Preds.clear(); in BuildBlockList() 107 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 108 Info->NumPreds = Preds.size(); in BuildBlockList() 110 Info->Preds = 0; in BuildBlockList() 112 Info->Preds = static_cast<BBInfo**> in BuildBlockList() 117 BlkT *Pred = Preds[p]; in BuildBlockList() 122 Info->Preds[p] = BBMapBucket.second; in BuildBlockList() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 54 BBInfo **Preds; // Array[NumPreds] of predecessor blocks. variable 59 IDom(nullptr), NumPreds(0), Preds(nullptr), PHITag(nullptr) {} in BBInfo() 114 SmallVector<BlkT*, 10> Preds; in BuildBlockList() local 117 Preds.clear(); in BuildBlockList() 118 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 119 Info->NumPreds = Preds.size(); in BuildBlockList() 121 Info->Preds = nullptr; in BuildBlockList() 123 Info->Preds = static_cast<BBInfo**> in BuildBlockList() 128 BlkT *Pred = Preds[p]; in BuildBlockList() 133 Info->Preds[p] = BBMapBucket.second; in BuildBlockList() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | ScheduleDAG.cpp | 108 for (SDep &PredDep : Preds) { in addPred() 165 Preds.push_back(D); in addPred() 176 SmallVectorImpl<SDep>::iterator I = llvm::find(Preds, D); in removePred() 177 if (I == Preds.end()) in removePred() 186 Preds.erase(I); in removePred() 238 for (SDep &PredDep : SU->Preds) { in setHeightDirty() 271 for (const SDep &PredDep : Cur->Preds) { in ComputeDepth() 328 SUnit::pred_iterator BestI = Preds.begin(); in biasCriticalPath() 330 for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E; in biasCriticalPath() 335 if (BestI != Preds.begin()) in biasCriticalPath() [all …]
|
D | MacroFusion.cpp | 48 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 65 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 91 for (const SDep &SI : SecondSU.Preds) { in fuseInstructionPair() 158 for (SDep &Dep : AnchorSU.Preds) { in scheduleAdjacentImpl()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 332 ArrayRef<BasicBlock *> Preds, in UpdateAnalysisInformation() argument 357 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 391 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 418 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() argument 421 SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end()); in UpdatePHINodes() 429 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 465 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI); in UpdatePHINodes() 484 ArrayRef<BasicBlock *> Preds, in SplitBlockPredecessors() argument 497 SplitLandingPadPredecessors(BB, Preds, Suffix, NewName.c_str(), NewBBs, DT, in SplitBlockPredecessors() 511 for (unsigned i = 0, e = Preds.size(); i != e; ++i) { in SplitBlockPredecessors() [all …]
|
D | FlattenCFG.cpp | 148 SmallPtrSet<BasicBlock *, 16> Preds(pred_begin(BB), pred_end(BB)); in FlattenParallelAndOr() local 149 for (SmallPtrSetIterator<BasicBlock *> PI = Preds.begin(), PE = Preds.end(); in FlattenParallelAndOr() 166 if (UnCondBlock || !PP || (Preds.count(PP) == 0) || in FlattenParallelAndOr() 182 if (PP && Preds.count(PP)) { in FlattenParallelAndOr() 219 if (Preds.count(PS) == 0) { in FlattenParallelAndOr()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 64 BBInfo **Preds = nullptr; variable 127 SmallVector<BlkT *, 10> Preds; in BuildBlockList() local 130 Preds.clear(); in BuildBlockList() 131 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 132 Info->NumPreds = Preds.size(); in BuildBlockList() 134 Info->Preds = nullptr; in BuildBlockList() 136 Info->Preds = static_cast<BBInfo **>(Allocator.Allocate( in BuildBlockList() 140 BlkT *Pred = Preds[p]; in BuildBlockList() 145 Info->Preds[p] = BBMapBucket.second; in BuildBlockList() 153 Info->Preds[p] = PredInfo; in BuildBlockList() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 279 ArrayRef<BasicBlock *> Preds, in UpdateAnalysisInformation() argument 296 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 324 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 351 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() argument 354 SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end()); in UpdatePHINodes() 362 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 398 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI); in UpdatePHINodes() 417 ArrayRef<BasicBlock *> Preds, in SplitBlockPredecessors() argument 430 SplitLandingPadPredecessors(BB, Preds, Suffix, NewName.c_str(), NewBBs, DT, in SplitBlockPredecessors() 444 for (unsigned i = 0, e = Preds.size(); i != e; ++i) { in SplitBlockPredecessors() [all …]
|
D | FlattenCFG.cpp | 135 SmallPtrSet<BasicBlock *, 16> Preds(pred_begin(BB), pred_end(BB)); in FlattenParallelAndOr() local 136 for (SmallPtrSetIterator<BasicBlock *> PI = Preds.begin(), PE = Preds.end(); in FlattenParallelAndOr() 153 if (UnCondBlock || !PP || (Preds.count(PP) == 0) || in FlattenParallelAndOr() 169 if (PP && Preds.count(PP)) { in FlattenParallelAndOr() 206 if (Preds.count(PS) == 0) { in FlattenParallelAndOr()
|
/external/clang/test/Analysis/ |
D | blocks.mm | 21 // CHECK-NEXT: Preds (1): B2 25 // CHECK-NEXT: Preds (1): B1 47 // CHECK-NEXT: Preds (1): B2 51 // CHECK-NEXT: Preds (1): B1 71 // CHECK-NEXT: Preds (1): B2 75 // CHECK-NEXT: Preds (1): B1
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCHazardRecognizers.cpp | 40 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isLoadAfterStore() 41 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isLoadAfterStore() 45 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier()) in isLoadAfterStore() 49 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isLoadAfterStore() 66 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isBCTRAfterSet() 67 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isBCTRAfterSet() 71 if (SU->Preds[i].isCtrl()) in isBCTRAfterSet() 75 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isBCTRAfterSet()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCHazardRecognizers.cpp | 40 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isLoadAfterStore() 41 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isLoadAfterStore() 45 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier()) in isLoadAfterStore() 49 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isLoadAfterStore() 66 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isBCTRAfterSet() 67 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isBCTRAfterSet() 71 if (SU->Preds[i].isCtrl()) in isBCTRAfterSet() 75 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isBCTRAfterSet()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/ |
D | ARMInstructionSelector.cpp | 287 std::pair<ARMCC::CondCodes, ARMCC::CondCodes> Preds = {ARMCC::AL, ARMCC::AL}; in getComparePreds() local 290 Preds = {ARMCC::GT, ARMCC::MI}; in getComparePreds() 293 Preds = {ARMCC::EQ, ARMCC::VS}; in getComparePreds() 297 Preds.first = ARMCC::EQ; in getComparePreds() 301 Preds.first = ARMCC::GT; in getComparePreds() 305 Preds.first = ARMCC::GE; in getComparePreds() 309 Preds.first = ARMCC::HI; in getComparePreds() 312 Preds.first = ARMCC::MI; in getComparePreds() 316 Preds.first = ARMCC::LS; in getComparePreds() 319 Preds.first = ARMCC::VC; in getComparePreds() [all …]
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExplodedGraph.cpp | 220 Preds.addNode(V, G); in addPredecessor() 380 if (N->Preds.empty()) { in trim() 386 WL1.append(N->Preds.begin(), N->Preds.end()); in trim() 413 if (N->Preds.empty()) in trim() 421 for (ExplodedNode::pred_iterator I = N->Preds.begin(), E = N->Preds.end(); in trim()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonSubtarget.cpp | 134 for (auto &D : SU.Preds) in apply() 163 for (SDep &PI : SI.getSUnit()->Preds) { in apply() 451 auto F = std::find(Dst->Preds.begin(), Dst->Preds.end(), T); in restoreLatency() 452 assert(F != Dst->Preds.end()); in restoreLatency() 468 auto F = std::find(Dst->Preds.begin(), Dst->Preds.end(), T); in changeLatency() 469 assert(F != Dst->Preds.end()); in changeLatency() 513 SUnit *SrcBest = getZeroLatency(Dst, Dst->Preds); in isBestZeroLatency() 555 for (auto &I : DstBest->Preds) in isBestZeroLatency()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | ScheduleDAGRRList.cpp | 425 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in ReleasePredecessors() 676 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in UnscheduleNodeBottomUp() 859 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in CopyAndMoveSuccessors() 938 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in CopyAndMoveSuccessors() 1074 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in DelayForLiveRegsBottomUp() 1372 if (SUnits[i].Preds.empty()) { in ListScheduleTopDown() 1735 for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in CalcNodeSethiUllmanNumber() 1835 for (SUnit::const_pred_iterator I = SU->Preds.begin(),E = SU->Preds.end(); in HighRegPressure() 1885 for (SUnit::const_pred_iterator I = SU->Preds.begin(),E = SU->Preds.end(); in RegPressureDiff() 1929 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in ScheduledNode() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExplodedGraph.h | 119 NodeGroup Preds; variable 179 unsigned pred_size() const { return Preds.size(); } in pred_size() 181 bool pred_empty() const { return Preds.empty(); } in pred_empty() 207 pred_iterator pred_begin() { return Preds.begin(); } in pred_begin() 208 pred_iterator pred_end() { return Preds.end(); } in pred_end() 241 void replacePredecessor(ExplodedNode *node) { Preds.replaceNode(node); } in replacePredecessor()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | ResourcePriorityQueue.cpp | 72 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in numberRCValPredInSU() 157 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in numberCtrlPredInSU() 217 for (SUnit::const_pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in getSingleUnscheduledPred() 509 for (SUnit::pred_iterator I = SU->Preds.begin(), E = SU->Preds.end(); in scheduledNode() 544 HorizontalVerticalBalance -= (SU->Preds.size() - numberCtrlPredInSU(SU)); in scheduledNode()
|