Searched refs:NumPreds (Results 1 - 22 of 22) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNMinRegStrategy.cpp49 std::vector<unsigned> NumPreds; member in class:__anon3945::GCNMinRegScheduler
53 return NumPreds[SU->NodeNum] == std::numeric_limits<unsigned>::max();
58 NumPreds[SU->NodeNum] = std::numeric_limits<unsigned>::max();
63 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max());
64 return NumPreds[SU->NodeNum];
69 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max());
70 return --NumPreds[SU->NodeNum];
94 NumPreds.resize(SUnits.size());
96 NumPreds[I] = SUnits[I].NumPredsLeft;
H A DGCNILPSched.cpp89 if (SU->NumSuccs == 0 && SU->NumPreds != 0)
97 if (SU->NumPreds == 0 && SU->NumSuccs != 0)
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h60 unsigned NumPreds = 0; member in class:llvm::SSAUpdaterImpl::BBInfo
62 // Array[NumPreds] of predecessor blocks.
131 Info->NumPreds = Preds.size();
132 if (Info->NumPreds == 0)
136 Info->NumPreds * sizeof(BBInfo *), alignof(BBInfo *)));
138 for (unsigned p = 0; p != Info->NumPreds; ++p) {
251 for (unsigned p = 0; p != Info->NumPreds; ++p) {
309 for (unsigned p = 0; p != Info->NumPreds; ++p) {
347 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater);
371 for (unsigned p = 0; p != Info->NumPreds;
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DScheduleDAGPrinter.cpp39 return (Node->NumPreds > 10 || Node->NumSuccs > 10);
H A DScheduleDAG.cpp139 assert(NumPreds < std::numeric_limits<unsigned>::max() &&
140 "NumPreds will overflow!");
143 ++NumPreds;
190 assert(NumPreds > 0 && "NumPreds will underflow!");
192 --NumPreds;
326 if (NumPreds < 2)
395 if (SUnit.NumPreds == 0 && SUnit.NumSuccs == 0) {
718 assert(SU->NumPreds == 0 && "Can only add SU's with no predecessors");
H A DMachineSSAUpdater.cpp303 static Register CreateEmptyPHI(MachineBasicBlock *BB, unsigned NumPreds, argument
H A DWinEHPrepare.cpp847 unsigned NumPreds = PN->getNumIncomingValues();
848 for (unsigned PredIdx = 0, PredEnd = NumPreds; PredIdx != PredEnd;
H A DIfConversion.cpp2088 unsigned NumPreds = TailBB->pred_size(); local
2089 if (NumPreds > 1)
2091 else if (NumPreds == 1 && CanMergeTail) {
H A DMachinePipeliner.cpp1381 else if (DepKind == SDep::Data && !TmpMI->isPHI() && TmpSU->NumPreds > 0)
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp71 void BasicBlock::reservePredecessors(unsigned NumPreds) { argument
72 Predecessors.reserve(NumPreds, Arena);
75 Ph->values().reserve(NumPreds, Arena);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp520 unsigned NumPreds = OPN->getNumIncomingValues(); local
530 for (unsigned pred = 0, e = NumPreds; pred != e; ++pred) {
553 NumPreds = pred_size(NewBB);
554 if (NumPreds != PN->getNumIncomingValues()) {
555 assert(NumPreds < PN->getNumIncomingValues());
H A DSSAUpdater.cpp251 /// vector, set Info->NumPreds, and allocate space in Info->Preds.
273 static Value *CreateEmptyPHI(BasicBlock *BB, unsigned NumPreds, argument
275 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds,
H A DLoopUtils.cpp1307 unsigned NumPreds = PN->getNumIncomingValues(); local
1326 for (unsigned i = 0; i != NumPreds; ++i) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp336 unsigned NumPreds = cast<PHINode>(front()).getNumIncomingValues(); local
345 if (NumPreds > 1) {
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DResourcePriorityQueue.cpp524 if (ParallelLiveRanges >= SU->NumPreds)
525 ParallelLiveRanges -= SU->NumPreds;
H A DScheduleDAGRRList.cpp2043 if (SU->NumSuccs == 0 && SU->NumPreds != 0)
2050 if (SU->NumPreds == 0 && SU->NumSuccs != 0)
2724 if (SU->NumPreds == 0 && SU->NumSuccs != 0)
2949 if (SU.NumPreds != 1)
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSpeculateAroundPHIs.cpp428 int NumPreds, DominatorTree &DT, TargetTransformInfo &TTI) {
501 SpecCost *= (NumPreds - 1);
425 findProfitablePHIs(ArrayRef<PHINode *> PNs, const SmallDenseMap<PHINode *, int, 16> &CostSavingsMap, const SmallPtrSetImpl<Instruction *> &PotentialSpecSet, int NumPreds, DominatorTree &DT, TargetTransformInfo &TTI) argument
H A DJumpThreading.cpp965 unsigned NumPreds = pred_size(TestBB); local
966 if (NumPreds < MinNumPreds) {
968 MinNumPreds = NumPreds;
H A DRewriteStatepointsForGC.cpp1016 int NumPreds = pred_size(BB);
1017 assert(NumPreds > 0 && "how did we reach here");
1019 return PHINode::Create(I->getType(), NumPreds, Name, I);
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DMemorySSA.h490 MemoryPhi(LLVMContext &C, BasicBlock *BB, unsigned Ver, unsigned NumPreds = 0)
492 ReservedSpace(NumPreds) {
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DScheduleDAG.h266 unsigned NumPreds = 0; ///< # of SDep::Data preds. variable
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyTIL.h1602 // Reserve space for NumPreds predecessors, including space in phi nodes.
1603 void reservePredecessors(unsigned NumPreds);

Completed in 319 milliseconds