| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ScheduleDAG.cpp | 220 WorkList.push_back(this); in setDepthDirty() 235 WorkList.push_back(this); in setHeightDirty() 284 WorkList.pop_back(); in ComputeDepth() 315 WorkList.pop_back(); in ComputeHeight() 497 WorkList.pop_back(); in InitDAGTopologicalSorting() 575 WorkList.push_back(SU); in DFS() 577 SU = WorkList.back(); in DFS() 578 WorkList.pop_back(); in DFS() 621 WorkList.pop_back(); in GetSubGraph() 645 WorkList.clear(); in GetSubGraph() [all …]
|
| H A D | ProcessImplicitDefs.cpp | 33 SmallSetVector<MachineInstr*, 16> WorkList; member in __anon58d524040111::ProcessImplicitDefs 89 WorkList.insert(UserMI); in processImplicitDef() 144 assert(WorkList.empty() && "Inconsistent worklist state"); in runOnMachineFunction() 150 WorkList.insert(&MI); in runOnMachineFunction() 152 if (WorkList.empty()) in runOnMachineFunction() 155 LLVM_DEBUG(dbgs() << printMBBReference(MBB) << " has " << WorkList.size() in runOnMachineFunction() 160 do processImplicitDef(WorkList.pop_back_val()); in runOnMachineFunction() 161 while (!WorkList.empty()); in runOnMachineFunction()
|
| H A D | LiveRangeCalc.cpp | 140 SetVector<unsigned> WorkList; in isDefOnEntry() local 144 WorkList.insert(P->getNumber()); in isDefOnEntry() 146 for (unsigned i = 0; i != WorkList.size(); ++i) { in isDefOnEntry() 148 unsigned N = WorkList[i]; in isDefOnEntry() 186 WorkList.insert(P->getNumber()); in isDefOnEntry() 263 WorkList.push_back(Pred->getNumber()); in findReachingDefs() 277 if (WorkList.size() > 4) in findReachingDefs() 278 array_pod_sort(WorkList.begin(), WorkList.end()); in findReachingDefs() 284 for (unsigned BN : WorkList) { in findReachingDefs() 313 LiveIn.reserve(WorkList.size()); in findReachingDefs() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Combiner.cpp | 53 WorkListTy &WorkList; member in __anonb1bb82c40111::WorkListMaintainer 59 WorkListMaintainer(WorkListTy &WorkList) in WorkListMaintainer() argument 60 : GISelChangeObserver(), WorkList(WorkList) {} in WorkListMaintainer() 66 WorkList.remove(&MI); in erasingInstr() 70 WorkList.insert(&MI); in createdInstr() 75 WorkList.insert(&MI); in changingInstr() 79 WorkList.insert(&MI); in changedInstr() 126 GISelWorkList<512> WorkList; in combineMachineInstrs() local 142 WorkList.deferred_insert(CurMI); in combineMachineInstrs() 145 WorkList.finalize(); in combineMachineInstrs() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | WorkList.cpp | 36 class DFS : public WorkList { 56 class BFS : public WorkList { 79 WorkList::~WorkList() = default; 81 std::unique_ptr<WorkList> WorkList::makeDFS() { in makeDFS() 85 std::unique_ptr<WorkList> WorkList::makeBFS() { in makeBFS() 91 class BFSBlockDFSContents : public WorkList { 126 std::unique_ptr<WorkList> WorkList::makeBFSBlockDFSContents() { in makeBFSBlockDFSContents() 132 class UnexploredFirstStack : public WorkList { 188 std::unique_ptr<WorkList> WorkList::makeUnexploredFirst() { in makeUnexploredFirst() 251 std::unique_ptr<WorkList> WorkList::makeUnexploredFirstPriorityQueue() { in makeUnexploredFirstPriorityQueue() [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | WorkList.h | 60 class WorkList { 63 virtual ~WorkList(); 82 static std::unique_ptr<WorkList> makeDFS(); 83 static std::unique_ptr<WorkList> makeBFS(); 84 static std::unique_ptr<WorkList> makeBFSBlockDFSContents(); 85 static std::unique_ptr<WorkList> makeUnexploredFirst(); 86 static std::unique_ptr<WorkList> makeUnexploredFirstPriorityQueue(); 87 static std::unique_ptr<WorkList> makeUnexploredFirstPriorityLocationQueue();
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Reg2Mem.cpp | 72 std::list<Instruction*> WorkList; in runPass() local 75 WorkList.push_front(&I); in runPass() 78 NumRegsDemoted += WorkList.size(); in runPass() 79 for (Instruction *I : WorkList) in runPass() 82 WorkList.clear(); in runPass() 87 WorkList.push_front(&Phi); in runPass() 90 NumPhisDemoted += WorkList.size(); in runPass() 91 for (Instruction *I : WorkList) in runPass()
|
| H A D | DCE.cpp | 89 SmallSetVector<Instruction *, 16> &WorkList, in DCEInstruction() argument 112 WorkList.insert(OpI); in DCEInstruction() 124 SmallSetVector<Instruction *, 16> WorkList; in eliminateDeadCode() local 131 if (!WorkList.count(&I)) in eliminateDeadCode() 132 MadeChange |= DCEInstruction(&I, WorkList, TLI); in eliminateDeadCode() 135 while (!WorkList.empty()) { in eliminateDeadCode() 136 Instruction *I = WorkList.pop_back_val(); in eliminateDeadCode() 137 MadeChange |= DCEInstruction(I, WorkList, TLI); in eliminateDeadCode()
|
| H A D | BDCE.cpp | 50 SmallVector<Instruction *, 16> WorkList; in clearAssumptionsOfUsers() local 58 WorkList.push_back(J); in clearAssumptionsOfUsers() 72 while (!WorkList.empty()) { in clearAssumptionsOfUsers() 73 Instruction *J = WorkList.pop_back_val(); in clearAssumptionsOfUsers() 88 WorkList.push_back(K); in clearAssumptionsOfUsers()
|
| H A D | ConstraintElimination.cpp | 262 SmallVector<ConstraintOrBlock, 64> WorkList; in eliminateConstraints() local 269 WorkList.emplace_back(DT.getNode(&BB)); in eliminateConstraints() 292 WorkList.emplace_back(DT.getNode(FalseSuccessor), cast<CmpInst>(Op0), in eliminateConstraints() 294 WorkList.emplace_back(DT.getNode(FalseSuccessor), cast<CmpInst>(Op1), in eliminateConstraints() 307 WorkList.emplace_back(DT.getNode(TrueSuccessor), cast<CmpInst>(Op0), in eliminateConstraints() 309 WorkList.emplace_back(DT.getNode(TrueSuccessor), cast<CmpInst>(Op1), in eliminateConstraints() 319 WorkList.emplace_back(DT.getNode(Br->getSuccessor(0)), CmpI, false); in eliminateConstraints() 321 WorkList.emplace_back(DT.getNode(Br->getSuccessor(1)), CmpI, true); in eliminateConstraints() 328 sort(WorkList, [](const ConstraintOrBlock &A, const ConstraintOrBlock &B) { in eliminateConstraints() 335 for (ConstraintOrBlock &CB : WorkList) { in eliminateConstraints()
|
| H A D | DeadStoreElimination.cpp | 498 SmallVector<BlockAddressPair, 16> WorkList; in memoryIsNotModifiedBetween() local 512 WorkList.push_back( in memoryIsNotModifiedBetween() 517 while (!WorkList.empty()) { in memoryIsNotModifiedBetween() 1165 SmallVector<MemoryAccess *, 4> WorkList; in isWriteAtEndOfFunction() local 1180 MemoryAccess *UseAccess = WorkList[I]; in isWriteAtEndOfFunction() 1501 MemoryAccess *UseAccess = WorkList[I]; in getDomMemoryDef() 1641 SetVector<BasicBlock *> WorkList; in getDomMemoryDef() local 1646 WorkList.insert(CommonPred); in getDomMemoryDef() 1649 WorkList.insert(R); in getDomMemoryDef() 1656 BasicBlock *Current = WorkList[I]; in getDomMemoryDef() [all …]
|
| H A D | AlignmentFromAssumptions.cpp | 252 SmallVector<Instruction*, 16> WorkList; in processAssumption() local 258 WorkList.push_back(K); in processAssumption() 261 while (!WorkList.empty()) { in processAssumption() 262 Instruction *J = WorkList.pop_back_val(); in processAssumption() 316 WorkList.push_back(K); in processAssumption()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowWorklist.h | 27 WorkList; variable 31 : EnqueuedBlocks(Cfg.getNumBlockIDs()), POV(POV), WorkList(C) {} in DataflowWorklistBase() 38 WorkList.push(Block); in enqueueBlock() 43 if (WorkList.empty()) in dequeue() 45 const CFGBlock *B = WorkList.top(); in dequeue() 46 WorkList.pop(); in dequeue()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | SSAUpdaterImpl.h | 121 WorkList.push_back(Info); in BuildBlockList() 127 while (!WorkList.empty()) { in BuildBlockList() 128 Info = WorkList.pop_back_val(); in BuildBlockList() 158 WorkList.push_back(PredInfo); in BuildBlockList() 173 WorkList.push_back(Info); in BuildBlockList() 176 while (!WorkList.empty()) { in BuildBlockList() 177 Info = WorkList.back(); in BuildBlockList() 185 WorkList.pop_back(); in BuildBlockList() 203 WorkList.push_back(SuccInfo); in BuildBlockList() 406 WorkList.push_back(PHI); in CheckIfPHIMatches() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CFLAndersAliasAnalysis.cpp | 620 WorkList); in initializeWorkList() 622 WorkList); in initializeWorkList() 747 WorkList.push_back(Node); in buildAttrMap() 751 while (!WorkList.empty()) { in buildAttrMap() 752 for (const auto &Dst : WorkList) { in buildAttrMap() 774 WorkList.swap(NextList); in buildAttrMap() 792 std::vector<WorkListItem> WorkList, NextList; in buildInfoFrom() local 793 initializeWorkList(WorkList, ReachSet, Graph); in buildInfoFrom() 795 while (!WorkList.empty()) { in buildInfoFrom() 796 for (const auto &Item : WorkList) in buildInfoFrom() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PreTileConfig.cpp | 212 SmallVector<Register, 8> WorkList( in INITIALIZE_PASS_DEPENDENCY() local 214 while (!WorkList.empty()) { in INITIALIZE_PASS_DEPENDENCY() 215 Register R = WorkList.pop_back_val(); in INITIALIZE_PASS_DEPENDENCY() 299 SmallVector<MachineBasicBlock *, 8> WorkList; in runOnMachineFunction() local 308 WorkList.push_back(I.first); in runOnMachineFunction() 310 while (!WorkList.empty()) { in runOnMachineFunction() 315 WorkList.push_back(Pred); in runOnMachineFunction() 328 SmallVector<MIRef, 8> WorkList({I}); in runOnMachineFunction() local 329 while (!WorkList.empty()) { in runOnMachineFunction() 330 MIRef I = WorkList.pop_back_val(); in runOnMachineFunction() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixIrreducibleControlFlow.cpp | 139 SmallVector<BlockPair, 4> WorkList; in calculate() local 146 WorkList.emplace_back(MBB, Succ); in calculate() 151 while (!WorkList.empty()) { in calculate() 153 std::tie(MBB, Succ) = WorkList.pop_back_val(); in calculate() 160 WorkList.emplace_back(Pred, Succ); in calculate() 209 BlockVector WorkList; in calculate() local 214 WorkList.push_back(Pred); in calculate() 219 while (!WorkList.empty()) { in calculate() 220 auto *MBB = WorkList.pop_back_val(); in calculate() 225 WorkList.push_back(Pred); in calculate()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CodeMoverUtils.cpp | 284 SmallPtrSetImpl<Instruction *> &WorkList) { in collectInstructionsInBetween() argument 286 WorkList.insert(NextInst); in collectInstructionsInBetween() 290 WorkList.insert(&Succ->front()); in collectInstructionsInBetween() 294 SmallPtrSet<Instruction *, 10> WorkList; in collectInstructionsInBetween() local 295 getNextInsts(StartInst, WorkList); in collectInstructionsInBetween() 296 while (!WorkList.empty()) { in collectInstructionsInBetween() 297 Instruction *CurInst = *WorkList.begin(); in collectInstructionsInBetween() 298 WorkList.erase(CurInst); in collectInstructionsInBetween() 306 getNextInsts(*CurInst, WorkList); in collectInstructionsInBetween()
|
| H A D | FixIrreducible.cpp | 312 SmallVector<Loop *, 8> WorkList; in FixIrreducibleImpl() local 319 append_range(WorkList, LI); in FixIrreducibleImpl() 321 while (!WorkList.empty()) { in FixIrreducibleImpl() 322 auto L = WorkList.pop_back_val(); in FixIrreducibleImpl() 328 WorkList.append(L->begin(), L->end()); in FixIrreducibleImpl()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | LLVMContextImpl.cpp | 126 SmallSetVector<ConstantArray *, 4> WorkList; in dropTriviallyDeadConstantArrays() local 134 WorkList.insert(C); in dropTriviallyDeadConstantArrays() 136 while (!WorkList.empty()) { in dropTriviallyDeadConstantArrays() 137 ConstantArray *C = WorkList.pop_back_val(); in dropTriviallyDeadConstantArrays() 141 WorkList.insert(COp); in dropTriviallyDeadConstantArrays()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTaggingPreRA.cpp | 276 SmallVector<Register, 8> WorkList; in findFirstSlotCandidate() local 277 WorkList.push_back(RetagReg); in findFirstSlotCandidate() 279 while (!WorkList.empty()) { in findFirstSlotCandidate() 280 Register UseReg = WorkList.back(); in findFirstSlotCandidate() 281 WorkList.pop_back(); in findFirstSlotCandidate() 293 WorkList.push_back(DstReg); in findFirstSlotCandidate()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCBoolRetToInt.cpp | 74 SmallVector<Value *, 8> WorkList; in findAllDefs() local 75 WorkList.push_back(V); in findAllDefs() 77 while (!WorkList.empty()) { in findAllDefs() 78 Value *Curr = WorkList.pop_back_val(); in findAllDefs() 85 WorkList.push_back(Op); in findAllDefs()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsOptimizePICCall.cpp | 204 SmallVector<MBBInfo, 8> WorkList(1, MBBInfo(MDT->getRootNode())); in runOnMachineFunction() local 206 while (!WorkList.empty()) { in runOnMachineFunction() 207 MBBInfo &MBBI = WorkList.back(); in runOnMachineFunction() 213 WorkList.pop_back(); in runOnMachineFunction() 221 WorkList.append(Node->begin(), Node->end()); in runOnMachineFunction()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanTransforms.cpp | 109 SetVector<VPValue *> WorkList; in sinkScalarOperands() local 115 WorkList.insert(RepR->op_begin(), RepR->op_end()); in sinkScalarOperands() 120 while (!WorkList.empty()) { in sinkScalarOperands() 121 auto *C = WorkList.pop_back_val(); in sinkScalarOperands() 146 WorkList.insert(SinkCandidate->op_begin(), SinkCandidate->op_end()); in sinkScalarOperands()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 446 std::vector<Value *> WorkList; in tryPromoteAllocaToVector() local 477 WorkList.push_back(AllocaUser); in tryPromoteAllocaToVector() 499 for (Value *V : WorkList) { in tryPromoteAllocaToVector() 608 if (is_contained(WorkList, User)) in collectUsesWithPtrTypes() 615 WorkList.push_back(User); in collectUsesWithPtrTypes() 652 WorkList.push_back(ICmp); in collectUsesWithPtrTypes() 660 WorkList.push_back(User); in collectUsesWithPtrTypes() 702 WorkList.push_back(User); in collectUsesWithPtrTypes() 911 std::vector<Value*> WorkList; in handleAlloca() local 913 if (!collectUsesWithPtrTypes(&I, &I, WorkList)) { in handleAlloca() [all …]
|