Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h42 unsigned NumPreds; // Number of predecessor blocks. variable
48 NumPreds(0), Preds(0), PHITag(0) { } in BBInfo()
108 Info->NumPreds = Preds.size(); in BuildBlockList()
109 if (Info->NumPreds == 0) in BuildBlockList()
113 (Allocator.Allocate(Info->NumPreds * sizeof(BBInfo*), in BuildBlockList()
116 for (unsigned p = 0; p != Info->NumPreds; ++p) { in BuildBlockList()
229 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindDominators()
287 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindPHIPlacement()
325 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater); in FindAvailableVals()
339 if (Info->NumPreds > 1) in FindAvailableVals()
[all …]
DBasicBlockUtils.h177 unsigned NumPreds, const char *Suffix,
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h53 unsigned NumPreds; // Number of predecessor blocks. variable
59 IDom(nullptr), NumPreds(0), Preds(nullptr), PHITag(nullptr) {} in BBInfo()
119 Info->NumPreds = Preds.size(); in BuildBlockList()
120 if (Info->NumPreds == 0) in BuildBlockList()
124 (Allocator.Allocate(Info->NumPreds * sizeof(BBInfo*), in BuildBlockList()
127 for (unsigned p = 0; p != Info->NumPreds; ++p) { in BuildBlockList()
240 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindDominators()
298 for (unsigned p = 0; p != Info->NumPreds; ++p) { in FindPHIPlacement()
336 ValT PHI = Traits::CreateEmptyPHI(Info->BB, Info->NumPreds, Updater); in FindAvailableVals()
350 if (Info->NumPreds > 1) in FindAvailableVals()
[all …]
DMemorySSA.h363 MemoryPhi(LLVMContext &C, BasicBlock *BB, unsigned Ver, unsigned NumPreds = 0)
364 : MemoryAccess(C, MemoryPhiVal, BB, 0), ID(Ver), ReservedSpace(NumPreds) {
/external/llvm/lib/CodeGen/
DScheduleDAG.cpp98 assert(NumPreds < UINT_MAX && "NumPreds will overflow!"); in addPred()
100 ++NumPreds; in addPred()
149 assert(NumPreds > 0 && "NumPreds will underflow!"); in removePred()
151 --NumPreds; in removePred()
299 if (NumPreds < 2) in biasCriticalPath()
387 if (SUnits[i].NumPreds == 0 && SUnits[i].NumSuccs == 0) { in VerifyScheduledDAG()
DScheduleDAGPrinter.cpp42 return (Node->NumPreds > 10 || Node->NumSuccs > 10); in isNodeHidden()
DMachineSSAUpdater.cpp296 static unsigned CreateEmptyPHI(MachineBasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
/external/clang/lib/Analysis/
DThreadSafetyTIL.cpp70 void BasicBlock::reservePredecessors(unsigned NumPreds) { in reservePredecessors() argument
71 Predecessors.reserve(NumPreds, Arena); in reservePredecessors()
74 Ph->values().reserve(NumPreds, Arena); in reservePredecessors()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DScheduleDAG.cpp100 assert(NumPreds < UINT_MAX && "NumPreds will overflow!"); in addPred()
102 ++NumPreds; in addPred()
147 assert(NumPreds > 0 && "NumPreds will underflow!"); in removePred()
149 --NumPreds; in removePred()
358 if (SUnits[i].NumPreds == 0 && SUnits[i].NumSuccs == 0) { in VerifySchedule()
DMachineSSAUpdater.cpp312 static unsigned CreateEmptyPHI(MachineBasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
DIfConversion.cpp1326 unsigned NumPreds = TailBB->pred_size(); in IfConvertDiamond() local
1327 if (NumPreds > 1) in IfConvertDiamond()
1329 else if (NumPreds == 1 && CanMergeTail) { in IfConvertDiamond()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DCloneFunction.cpp418 unsigned NumPreds = OPN->getNumIncomingValues(); in CloneAndPruneFunctionInto() local
428 for (unsigned pred = 0, e = NumPreds; pred != e; ++pred) { in CloneAndPruneFunctionInto()
450 NumPreds = std::distance(pred_begin(NewBB), pred_end(NewBB)); in CloneAndPruneFunctionInto()
451 if (NumPreds != PN->getNumIncomingValues()) { in CloneAndPruneFunctionInto()
452 assert(NumPreds < PN->getNumIncomingValues()); in CloneAndPruneFunctionInto()
DBasicBlockUtils.cpp457 unsigned NumPreds, const char *Suffix, in SplitBlockPredecessors() argument
467 for (unsigned i = 0; i != NumPreds; ++i) { in SplitBlockPredecessors()
480 if (NumPreds == 0) { in SplitBlockPredecessors()
489 UpdateAnalysisInformation(BB, NewBB, ArrayRef<BasicBlock*>(Preds, NumPreds), in SplitBlockPredecessors()
493 UpdatePHINodes(BB, NewBB, ArrayRef<BasicBlock*>(Preds, NumPreds), BI, in SplitBlockPredecessors()
DSSAUpdater.cpp299 static Value *CreateEmptyPHI(BasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
301 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp471 unsigned NumPreds = OPN->getNumIncomingValues(); in CloneAndPruneIntoFromInst() local
481 for (unsigned pred = 0, e = NumPreds; pred != e; ++pred) { in CloneAndPruneIntoFromInst()
504 NumPreds = std::distance(pred_begin(NewBB), pred_end(NewBB)); in CloneAndPruneIntoFromInst()
505 if (NumPreds != PN->getNumIncomingValues()) { in CloneAndPruneIntoFromInst()
506 assert(NumPreds < PN->getNumIncomingValues()); in CloneAndPruneIntoFromInst()
DSSAUpdater.cpp265 static Value *CreateEmptyPHI(BasicBlock *BB, unsigned NumPreds, in CreateEmptyPHI() argument
267 PHINode *PHI = PHINode::Create(Updater->ProtoType, NumPreds, in CreateEmptyPHI()
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DScheduleDAG.h247 unsigned NumPreds; // # of SDep::Data preds.
281 NodeQueueId(0), NumPreds(0), NumSuccs(0), NumPredsLeft(0),
295 NodeQueueId(0), NumPreds(0), NumSuccs(0), NumPredsLeft(0),
308 NodeQueueId(0), NumPreds(0), NumSuccs(0), NumPredsLeft(0),
/external/llvm/include/llvm/CodeGen/
DScheduleDAG.h268 unsigned NumPreds; // # of SDep::Data preds.
310 NodeNum(nodenum), NodeQueueId(0), NumPreds(0), NumSuccs(0),
326 NodeNum(nodenum), NodeQueueId(0), NumPreds(0), NumSuccs(0),
341 NodeNum(BoundaryID), NodeQueueId(0), NumPreds(0), NumSuccs(0),
/external/llvm/lib/CodeGen/SelectionDAG/
DResourcePriorityQueue.cpp533 if (ParallelLiveRanges >= SU->NumPreds) in scheduledNode()
534 ParallelLiveRanges -= SU->NumPreds; in scheduledNode()
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DProfileInfo.h164 BType *const *Preds, unsigned NumPreds);
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp512 unsigned NumPreds = PN->getNumIncomingValues(); in RewriteLoopExitValues() local
532 for (unsigned i = 0; i != NumPreds; ++i) { in RewriteLoopExitValues()
572 if (NumPreds == 1) { in RewriteLoopExitValues()
580 if (NumPreds != 1) { in RewriteLoopExitValues()
DJumpThreading.cpp602 unsigned NumPreds = std::distance(pred_begin(TestBB), pred_end(TestBB)); in GetBestDestForJumpOnUndef() local
603 if (NumPreds < MinNumPreds) { in GetBestDestForJumpOnUndef()
605 MinNumPreds = NumPreds; in GetBestDestForJumpOnUndef()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DProfileInfo.cpp444 unsigned NumPreds) { in splitBlock() argument
450 DEBUG(dbgs() << "Splitting " << NumPreds << " Edges from " << BB->getName() in splitBlock()
458 for (unsigned pred = 0; pred < NumPreds; ++pred) { in splitBlock()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DScheduleDAGRRList.cpp1791 if (SU->NumSuccs == 0 && SU->NumPreds != 0) in getNodePriority()
1798 if (SU->NumPreds == 0 && SU->NumSuccs != 0) in getNodePriority()
2507 if (SU->NumPreds == 0 && SU->NumSuccs != 0) in canEnableCoalescing()
2732 if (SU->NumPreds != 1) in PrescheduleNodesWithMultipleUses()
2920 bool LIsFloater = LIsTarget && left->NumPreds == 0; in operator ()()
2921 bool RIsFloater = RIsTarget && right->NumPreds == 0; in operator ()()
/external/llvm/lib/Transforms/Scalar/
DJumpThreading.cpp681 unsigned NumPreds = std::distance(pred_begin(TestBB), pred_end(TestBB)); in GetBestDestForJumpOnUndef() local
682 if (NumPreds < MinNumPreds) { in GetBestDestForJumpOnUndef()
684 MinNumPreds = NumPreds; in GetBestDestForJumpOnUndef()

12