/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 72 template <typename... Preds> struct And { 79 template <typename Pred, typename... Preds> 80 struct And<Pred, Preds...> : And<Preds...> { 82 And(Pred &&p, Preds &&... preds) 83 : And<Preds...>(std::forward<Preds>(preds)...), P(std::forward<Pred>(p)) { 87 return P.match(MRI, src) && And<Preds...>::match(MRI, src); 91 template <typename... Preds> struct Or { 98 template <typename Pred, typename... Preds> 99 struct Or<Pred, Preds...> : Or<Preds...> { 101 Or(Pred &&p, Preds &&... preds) [all …]
|
/external/llvm-project/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() 197 SmallVector<BasicBlock *, 2> Preds(predecessors(CallSiteBB)); in canSplitCallSite() local 198 if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) || in canSplitCallSite() 199 isa<IndirectBrInst>(Preds[1]->getTerminator())) in canSplitCallSite() 306 const SmallVectorImpl<std::pair<BasicBlock *, ConditionsTy>> &Preds, in splitCallSite() argument 317 CallPN = PHINode::Create(CB.getType(), Preds.size(), "phi.call"); in splitCallSite() 323 assert(Preds.size() == 2 && "The ValueToValueMaps array has size 2."); in splitCallSite() 327 for (unsigned i = 0; i < Preds.size(); i++) { in splitCallSite() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | CallSiteSplitting.cpp | 182 SmallVector<BasicBlock *, 2> Preds(predecessors((BB))); in getTwoPredecessors() local 183 assert(Preds.size() == 2 && "Expected exactly 2 predecessors!"); in getTwoPredecessors() 184 return Preds; in getTwoPredecessors() 199 SmallVector<BasicBlock *, 2> Preds(predecessors(CallSiteBB)); in canSplitCallSite() local 200 if (Preds.size() != 2 || isa<IndirectBrInst>(Preds[0]->getTerminator()) || in canSplitCallSite() 201 isa<IndirectBrInst>(Preds[1]->getTerminator())) in canSplitCallSite() 308 const SmallVectorImpl<std::pair<BasicBlock *, ConditionsTy>> &Preds, in splitCallSite() argument 320 CallPN = PHINode::Create(Instr->getType(), Preds.size(), "phi.call"); in splitCallSite() 326 assert(Preds.size() == 2 && "The ValueToValueMaps array has size 2."); in splitCallSite() 330 for (unsigned i = 0; i < Preds.size(); i++) { in splitCallSite() [all …]
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 94 template <typename... Preds> struct And { 101 template <typename Pred, typename... Preds> 102 struct And<Pred, Preds...> : And<Preds...> { 104 And(Pred &&p, Preds &&... preds) 105 : And<Preds...>(std::forward<Preds>(preds)...), P(std::forward<Pred>(p)) { 109 return P.match(MRI, src) && And<Preds...>::match(MRI, src); 113 template <typename... Preds> struct Or { 120 template <typename Pred, typename... Preds> 121 struct Or<Pred, Preds...> : Or<Preds...> { 123 Or(Pred &&p, Preds &&... preds) [all …]
|
/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 …]
|
/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-10.0/llvm/lib/CodeGen/ |
D | ScheduleDAG.cpp | 109 for (SDep &PredDep : Preds) { in addPred() 166 Preds.push_back(D); in addPred() 177 SmallVectorImpl<SDep>::iterator I = llvm::find(Preds, D); in removePred() 178 if (I == Preds.end()) in removePred() 187 Preds.erase(I); in removePred() 239 for (SDep &PredDep : SU->Preds) { in setHeightDirty() 272 for (const SDep &PredDep : Cur->Preds) { in ComputeDepth() 329 SUnit::pred_iterator BestI = Preds.begin(); in biasCriticalPath() 331 for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E; in biasCriticalPath() 336 if (BestI != Preds.begin()) in biasCriticalPath() [all …]
|
D | MacroFusion.cpp | 40 for (const SDep &SI : SU.Preds) in getPredClusterSU() 62 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 87 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 113 for (const SDep &SI : SecondSU.Preds) { in fuseInstructionPair() 178 for (SDep &Dep : AnchorSU.Preds) { in scheduleAdjacentImpl()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | ScheduleDAG.cpp | 109 for (SDep &PredDep : Preds) { in addPred() 166 Preds.push_back(D); in addPred() 177 SmallVectorImpl<SDep>::iterator I = llvm::find(Preds, D); in removePred() 178 if (I == Preds.end()) in removePred() 187 Preds.erase(I); in removePred() 239 for (SDep &PredDep : SU->Preds) { in setHeightDirty() 272 for (const SDep &PredDep : Cur->Preds) { in ComputeDepth() 329 SUnit::pred_iterator BestI = Preds.begin(); in biasCriticalPath() 331 for (SUnit::pred_iterator I = std::next(BestI), E = Preds.end(); I != E; in biasCriticalPath() 336 if (BestI != Preds.begin()) in biasCriticalPath() [all …]
|
D | MacroFusion.cpp | 40 for (const SDep &SI : SU.Preds) in getPredClusterSU() 62 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 87 for (SDep &SI : SecondSU.Preds) in fuseInstructionPair() 113 for (const SDep &SI : SecondSU.Preds) { in fuseInstructionPair() 178 for (SDep &Dep : AnchorSU.Preds) { in scheduleAdjacentImpl()
|
/external/llvm-project/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 63 BBInfo **Preds = nullptr; variable 126 SmallVector<BlkT *, 10> Preds; in BuildBlockList() local 129 Preds.clear(); in BuildBlockList() 130 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 131 Info->NumPreds = Preds.size(); in BuildBlockList() 133 Info->Preds = nullptr; in BuildBlockList() 135 Info->Preds = static_cast<BBInfo **>(Allocator.Allocate( in BuildBlockList() 139 BlkT *Pred = Preds[p]; in BuildBlockList() 144 Info->Preds[p] = BBMapBucket.second; in BuildBlockList() 152 Info->Preds[p] = PredInfo; in BuildBlockList() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdaterImpl.h | 63 BBInfo **Preds = nullptr; variable 126 SmallVector<BlkT *, 10> Preds; in BuildBlockList() local 129 Preds.clear(); in BuildBlockList() 130 Traits::FindPredecessorBlocks(Info->BB, &Preds); in BuildBlockList() 131 Info->NumPreds = Preds.size(); in BuildBlockList() 133 Info->Preds = nullptr; in BuildBlockList() 135 Info->Preds = static_cast<BBInfo **>(Allocator.Allocate( in BuildBlockList() 139 BlkT *Pred = Preds[p]; in BuildBlockList() 144 Info->Preds[p] = BBMapBucket.second; in BuildBlockList() 152 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 …]
|
/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-10.0/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 553 ArrayRef<BasicBlock *> Preds, in UpdateAnalysisInformation() argument 570 MSSAU->wireOldPredecessorsToNewImmediatePredecessor(OldBB, NewBB, Preds); in UpdateAnalysisInformation() 583 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 617 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 644 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() argument 647 SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end()); in UpdatePHINodes() 655 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 691 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI); in UpdatePHINodes() 710 ArrayRef<BasicBlock *> Preds, in SplitBlockPredecessors() argument 724 SplitLandingPadPredecessors(BB, Preds, Suffix, NewName.c_str(), NewBBs, DT, in SplitBlockPredecessors() [all …]
|
/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-10.0/llvm/lib/Target/PowerPC/ |
D | PPCHazardRecognizers.cpp | 38 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isLoadAfterStore() 39 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isLoadAfterStore() 43 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier()) in isLoadAfterStore() 47 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isLoadAfterStore() 64 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isBCTRAfterSet() 65 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isBCTRAfterSet() 69 if (SU->Preds[i].isCtrl()) in isBCTRAfterSet() 73 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isBCTRAfterSet()
|
D | PPCCTRLoops.cpp | 132 SmallVector<MachineBasicBlock *, 8> Preds; in verifyCTRBranch() local 168 if (!CheckPreds && Preds.empty()) in verifyCTRBranch() 183 Preds.push_back(*PI); in verifyCTRBranch() 187 MBB = Preds.pop_back_val(); in verifyCTRBranch() 192 } while (!Preds.empty()); in verifyCTRBranch()
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCHazardRecognizers.cpp | 38 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isLoadAfterStore() 39 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isLoadAfterStore() 43 if (!SU->Preds[i].isNormalMemory() && !SU->Preds[i].isBarrier()) in isLoadAfterStore() 47 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isLoadAfterStore() 64 for (unsigned i = 0, ie = (unsigned) SU->Preds.size(); i != ie; ++i) { in isBCTRAfterSet() 65 const MCInstrDesc *PredMCID = DAG->getInstrDesc(SU->Preds[i].getSUnit()); in isBCTRAfterSet() 69 if (SU->Preds[i].isCtrl()) in isBCTRAfterSet() 73 if (SU->Preds[i].getSUnit() == CurGroup[j]) in isBCTRAfterSet()
|
D | PPCCTRLoops.cpp | 132 SmallVector<MachineBasicBlock *, 8> Preds; in verifyCTRBranch() local 168 if (!CheckPreds && Preds.empty()) in verifyCTRBranch() 183 Preds.push_back(*PI); in verifyCTRBranch() 187 MBB = Preds.pop_back_val(); in verifyCTRBranch() 192 } while (!Preds.empty()); in verifyCTRBranch()
|
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | ExplodedGraph.h | 129 NodeGroup Preds; variable 200 unsigned pred_size() const { return Preds.size(); } in pred_size() 202 bool pred_empty() const { return Preds.empty(); } in pred_empty() 239 pred_iterator pred_begin() { return Preds.begin(); } in pred_begin() 240 pred_iterator pred_end() { return Preds.end(); } in pred_end() 241 pred_range preds() { return {Preds.begin(), Preds.end()}; } in preds() 249 const_pred_range preds() const { return {Preds.begin(), Preds.end()}; } in preds() 298 void replacePredecessor(ExplodedNode *node) { Preds.replaceNode(node); } in replacePredecessor()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | BasicBlockUtils.cpp | 574 ArrayRef<BasicBlock *> Preds, in UpdateAnalysisInformation() argument 591 MSSAU->wireOldPredecessorsToNewImmediatePredecessor(OldBB, NewBB, Preds); in UpdateAnalysisInformation() 604 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 638 for (BasicBlock *Pred : Preds) { in UpdateAnalysisInformation() 665 ArrayRef<BasicBlock *> Preds, BranchInst *BI, in UpdatePHINodes() argument 668 SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end()); in UpdatePHINodes() 676 InVal = PN->getIncomingValueForBlock(Preds[0]); in UpdatePHINodes() 712 PHINode::Create(PN->getType(), Preds.size(), PN->getName() + ".ph", BI); in UpdatePHINodes() 731 ArrayRef<BasicBlock *> Preds, in SplitBlockPredecessors() argument 745 SplitLandingPadPredecessors(BB, Preds, Suffix, NewName.c_str(), NewBBs, DT, in SplitBlockPredecessors() [all …]
|
/external/llvm-project/clang/test/Analysis/ |
D | blocks.mm | 32 // CHECK-NEXT: Preds (1): B2 36 // CHECK-NEXT: Preds (1): B1 59 // CHECK-NEXT: Preds (1): B2 63 // CHECK-NEXT: Preds (1): B1 84 // CHECK-NEXT: Preds (1): B2 88 // CHECK-NEXT: Preds (1): B1
|
/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/llvm-project/llvm/lib/Target/ARM/ |
D | ARMInstructionSelector.cpp | 393 std::pair<ARMCC::CondCodes, ARMCC::CondCodes> Preds = {ARMCC::AL, ARMCC::AL}; in getComparePreds() local 396 Preds = {ARMCC::GT, ARMCC::MI}; in getComparePreds() 399 Preds = {ARMCC::EQ, ARMCC::VS}; in getComparePreds() 403 Preds.first = ARMCC::EQ; in getComparePreds() 407 Preds.first = ARMCC::GT; in getComparePreds() 411 Preds.first = ARMCC::GE; in getComparePreds() 415 Preds.first = ARMCC::HI; in getComparePreds() 418 Preds.first = ARMCC::MI; in getComparePreds() 422 Preds.first = ARMCC::LS; in getComparePreds() 425 Preds.first = ARMCC::VC; in getComparePreds() [all …]
|