Home
last modified time | relevance | path

Searched refs:NumPreds (Results 1 – 21 of 21) sorted by relevance

/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNMinRegStrategy.cpp36 std::vector<unsigned> NumPreds; member in __anoned988fb30111::GCNMinRegScheduler
40 return NumPreds[SU->NodeNum] == std::numeric_limits<unsigned>::max(); in isScheduled()
45 NumPreds[SU->NodeNum] = std::numeric_limits<unsigned>::max(); in setIsScheduled()
50 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max()); in getNumPreds()
51 return NumPreds[SU->NodeNum]; in getNumPreds()
56 assert(NumPreds[SU->NodeNum] != std::numeric_limits<unsigned>::max()); in decNumPreds()
57 return --NumPreds[SU->NodeNum]; in decNumPreds()
81 NumPreds.resize(SUnits.size()); in initNumPreds()
83 NumPreds[I] = SUnits[I].NumPredsLeft; in initNumPreds()
H A DGCNILPSched.cpp88 if (SU->NumSuccs == 0 && SU->NumPreds != 0) in getNodePriority()
96 if (SU->NumPreds == 0 && SU->NumSuccs != 0) in getNodePriority()
/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h61 unsigned NumPreds = 0;
63 // Array[NumPreds] of predecessor blocks.
132 Info->NumPreds = Preds.size(); in BuildBlockList()
133 if (Info->NumPreds == 0) in BuildBlockList()
137 Info->NumPreds * sizeof(BBInfo *), alignof(BBInfo *))); in BuildBlockList()
139 for (unsigned p = 0; p != Info->NumPreds; ++p) { in BuildBlockList()
251 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindDominators()
309 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindPHIPlacement()
330 if (!Info->NumPreds) in FindSingularVal()
335 for (unsigned Idx = 1; Idx < Info->NumPreds; in FindSingularVal()
60 unsigned NumPreds = 0; global() variable
[all...]
/llvm-project/llvm/lib/CodeGen/
H A DScheduleDAG.cpp141 assert(NumPreds < std::numeric_limits<unsigned>::max() && in addPred()
142 "NumPreds will overflow!"); in addPred()
145 ++NumPreds; in addPred()
188 assert(NumPreds > 0 && "NumPreds will underflow!"); in removePred()
190 --NumPreds; in removePred()
326 if (NumPreds < 2) in biasCriticalPath()
397 if (SUnit.NumPreds == 0 && SUnit.NumSuccs == 0) { in VerifyScheduledDAG()
719 assert(SU->NumPreds == 0 && "Can only add SU's with no predecessors"); in AddSUnitWithoutPredecessors()
H A DScheduleDAGPrinter.cpp34 return (Node->NumPreds > 10 || Node->NumSuccs > 10); in isNodeHidden()
H A DMachineSSAUpdater.cpp322 static Register CreateEmptyPHI(MachineBasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
H A DWinEHPrepare.cpp991 unsigned NumPreds = PN->getNumIncomingValues(); in cloneCommonBlocks()
992 for (unsigned PredIdx = 0, PredEnd = NumPreds; PredIdx != PredEnd; in cloneCommonBlocks()
987 unsigned NumPreds = PN->getNumIncomingValues(); cloneCommonBlocks() local
H A DIfConversion.cpp2070 unsigned NumPreds = TailBB->pred_size(); in IfConvertDiamond() local
2071 if (NumPreds > 1) in IfConvertDiamond()
2073 else if (NumPreds == 1 && CanMergeTail) { in IfConvertDiamond()
H A DMachinePipeliner.cpp1757 else if (DepKind == SDep::Data && !TmpMI->isPHI() && TmpSU->NumPreds > 0) in findCircuits()
/llvm-project/clang/lib/Analysis/
H A DThreadSafetyTIL.cpp71 void BasicBlock::reservePredecessors(unsigned NumPreds) { in reservePredecessors() argument
72 Predecessors.reserve(NumPreds, Arena); in reservePredecessors()
75 Ph->values().reserve(NumPreds, Arena); in reservePredecessors()
/llvm-project/llvm/lib/Transforms/Utils/
H A DCloneFunction.cpp788 unsigned NumPreds = OPN->getNumIncomingValues(); in CloneAndPruneIntoFromInst()
799 for (unsigned pred = 0, e = NumPreds; pred != e; ++pred) { in CloneAndPruneIntoFromInst()
822 NumPreds = pred_size(NewBB); in CloneAndPruneIntoFromInst()
823 if (NumPreds != PN->getNumIncomingValues()) { in CloneAndPruneIntoFromInst()
824 assert(NumPreds < PN->getNumIncomingValues()); in CloneAndPruneIntoFromInst()
734 unsigned NumPreds = OPN->getNumIncomingValues(); CloneAndPruneIntoFromInst() local
H A DSSAUpdater.cpp297 /// vector, set Info->NumPreds, and allocate space in Info->Preds.
317 static Value *CreateEmptyPHI(BasicBlock *BB, unsigned NumPreds,
320 PHINode::Create(Updater->ProtoType, NumPreds, Updater->ProtoName); in CreateEmptyPHI()
318 CreateEmptyPHI(BasicBlock * BB,unsigned NumPreds,SSAUpdater * Updater) CreateEmptyPHI() argument
H A DLoopUtils.cpp1572 unsigned NumPreds = PN->getNumIncomingValues(); in rewriteLoopExitValues()
1584 for (unsigned i = 0; i != NumPreds; ++i) { in rewriteLoopExitValues()
1427 unsigned NumPreds = PN->getNumIncomingValues(); rewriteLoopExitValues() local
/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DResourcePriorityQueue.cpp519 if (ParallelLiveRanges >= SU->NumPreds) in scheduledNode()
520 ParallelLiveRanges -= SU->NumPreds; in scheduledNode()
H A DScheduleDAGRRList.cpp2053 if (SU->NumSuccs == 0 && SU->NumPreds != 0) in getNodePriority()
2060 if (SU->NumPreds == 0 && SU->NumSuccs != 0) in getNodePriority()
2743 if (SU->NumPreds == 0 && SU->NumSuccs != 0) in canEnableCoalescing()
2965 if (SU.NumPreds != 1) in PrescheduleNodesWithMultipleUses()
/llvm-project/llvm/lib/IR/
H A DBasicBlock.cpp548 unsigned NumPreds = cast<PHINode>(front()).getNumIncomingValues(); in canSplitPredecessors()
556 if (NumPreds == 1) in isLegalToHoistInto()
524 unsigned NumPreds = cast<PHINode>(front()).getNumIncomingValues(); removePredecessor() local
/llvm-project/llvm/include/llvm/Analysis/
H A DMemorySSA.h490 MemoryPhi(LLVMContext &C, BasicBlock *BB, unsigned Ver, unsigned NumPreds = 0)
492 ReservedSpace(NumPreds) {
/llvm-project/llvm/include/llvm/CodeGen/
H A DScheduleDAG.h272 unsigned NumPreds = 0; ///< # of SDep::Data preds. variable
/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp926 unsigned NumPreds = pred_size(TestBB); in getBestDestForJumpOnUndef()
927 if (NumPreds < MinNumPreds) { in getBestDestForJumpOnUndef() local
929 MinNumPreds = NumPreds; in getBestDestForJumpOnUndef()
/llvm-project/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyTIL.h1607 // Reserve space for NumPreds predecessors, including space in phi nodes.
1608 void reservePredecessors(unsigned NumPreds);
/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.cpp4082 static BlockValueNum CreateEmptyPHI(LDVSSABlock *BB, unsigned NumPreds, in resolveDbgPHIs()
4037 CreateEmptyPHI(LDVSSABlock * BB,unsigned NumPreds,LDVSSAUpdater * Updater) CreateEmptyPHI() argument