Home
last modified time | relevance | path

Searched refs:WorkList (Results 1 – 25 of 113) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DScheduleDAG.cpp220 SmallVector<SUnit*, 8> WorkList; in setDepthDirty() local
221 WorkList.push_back(this); in setDepthDirty()
223 SUnit *SU = WorkList.pop_back_val(); in setDepthDirty()
228 WorkList.push_back(SuccSU); in setDepthDirty()
230 } while (!WorkList.empty()); in setDepthDirty()
235 SmallVector<SUnit*, 8> WorkList; in setHeightDirty() local
236 WorkList.push_back(this); in setHeightDirty()
238 SUnit *SU = WorkList.pop_back_val(); in setHeightDirty()
243 WorkList.push_back(PredSU); in setHeightDirty()
245 } while (!WorkList.empty()); in setHeightDirty()
[all …]
H A DProcessImplicitDefs.cpp34 SmallSetVector<MachineInstr*, 16> WorkList; member in __anonb70e92d00111::ProcessImplicitDefs
95 WorkList.insert(UserMI); in processImplicitDef()
148 assert(WorkList.empty() && "Inconsistent worklist state"); in runOnMachineFunction()
154 WorkList.insert(&MI); in runOnMachineFunction()
156 if (WorkList.empty()) in runOnMachineFunction()
159 LLVM_DEBUG(dbgs() << printMBBReference(MBB) << " has " << WorkList.size() in runOnMachineFunction()
164 do processImplicitDef(WorkList.pop_back_val()); in runOnMachineFunction()
165 while (!WorkList.empty()); in runOnMachineFunction()
H A DLiveRangeCalc.cpp138 SetVector<unsigned> WorkList; in isDefOnEntry() local
142 WorkList.insert(P->getNumber()); in isDefOnEntry()
144 for (unsigned i = 0; i != WorkList.size(); ++i) { in isDefOnEntry()
146 unsigned N = WorkList[i]; in isDefOnEntry()
184 WorkList.insert(P->getNumber()); in isDefOnEntry()
197 SmallVector<unsigned, 16> WorkList(1, UseMBBNum); in findReachingDefs() local
206 for (unsigned i = 0; i != WorkList.size(); ++i) { in findReachingDefs()
207 MachineBasicBlock *MBB = MF->getBlockNumbered(WorkList[i]); in findReachingDefs()
266 WorkList.push_back(Pred->getNumber()); in findReachingDefs()
280 if (WorkList in findReachingDefs()
[all...]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DWorkList.cpp36 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()
193 class UnexploredFirstPriorityQueue : public WorkList {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombiner.cpp58 WorkListTy &WorkList; member in Combiner::WorkListMaintainer
66 WorkListMaintainer(WorkListTy &WorkList) : WorkList(WorkList) {} in WorkListMaintainer() argument
71 WorkList.remove(&MI); in erasingInstr()
75 WorkList.insert(&MI); in createdInstr()
80 WorkList.insert(&MI); in changingInstr()
84 WorkList.insert(&MI); in changedInstr()
102 WLObserver(std::make_unique<WorkListMaintainer>(WorkList)), in Combiner()
149 WorkList.clear(); in combineMachineInstrs()
167 WorkList.deferred_insert(&CurMI); in combineMachineInstrs()
170 WorkList.finalize(); in combineMachineInstrs()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DWorkList.h60 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/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp71 std::list<Instruction*> WorkList; in runPass() local
74 WorkList.push_front(&I); in runPass()
77 NumRegsDemoted += WorkList.size(); in runPass()
78 for (Instruction *I : WorkList) in runPass()
81 WorkList.clear(); in runPass()
86 WorkList.push_front(&Phi); in runPass()
89 NumPhisDemoted += WorkList.size(); in runPass()
90 for (Instruction *I : WorkList) in runPass()
H A DDCE.cpp56 SmallSetVector<Instruction *, 16> &WorkList, in runOnFunction()
79 WorkList.insert(OpI); in run()
91 SmallSetVector<Instruction *, 16> WorkList; in DCEInstruction()
98 if (!WorkList.count(&I)) in DCEInstruction()
99 MadeChange |= DCEInstruction(&I, WorkList, TLI); in DCEInstruction()
102 while (!WorkList.empty()) { in DCEInstruction()
103 Instruction *I = WorkList.pop_back_val(); in DCEInstruction()
104 MadeChange |= DCEInstruction(I, WorkList, TLI); in DCEInstruction()
89 DCEInstruction(Instruction * I,SmallSetVector<Instruction *,16> & WorkList,const TargetLibraryInfo * TLI) DCEInstruction() argument
124 SmallSetVector<Instruction *, 16> WorkList; eliminateDeadCode() local
H A DBDCE.cpp55 SmallVector<Instruction *, 16> WorkList; in clearAssumptionsOfUsers() local
60 WorkList.push_back(J); in clearAssumptionsOfUsers()
74 while (!WorkList.empty()) { in clearAssumptionsOfUsers()
75 Instruction *J = WorkList.pop_back_val(); in clearAssumptionsOfUsers()
91 WorkList.push_back(K); in clearAssumptionsOfUsers()
H A DConstraintElimination.cpp188 SmallVector<FactOrCheck, 64> WorkList; member
961 WorkList.push_back( in addInfoForInductions()
964 WorkList.push_back( in addInfoForInductions()
986 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
989 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
994 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
997 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
1021 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
1025 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
1029 WorkList.push_back(FactOrCheck::getConditionFact( in addInfoForInductions()
[all …]
H A DDeadStoreElimination.cpp406 SmallVector<BlockAddressPair, 16> WorkList; in memoryIsNotModifiedBetween() local
425 WorkList.push_back( in memoryIsNotModifiedBetween()
430 while (!WorkList.empty()) { in memoryIsNotModifiedBetween()
431 BlockAddressPair Current = WorkList.pop_back_val(); in memoryIsNotModifiedBetween()
477 WorkList.push_back(std::make_pair(Pred, PredAddr)); in memoryIsNotModifiedBetween()
906 SmallVectorImpl<MemoryAccess *> &WorkList, in pushMemUses()
911 WorkList.push_back(MA); in pushMemUses()
1174 SmallVector<MemoryAccess *, 4> WorkList; in isWriteAtEndOfFunction() local
1177 pushMemUses(Def, WorkList, Visited); in isWriteAtEndOfFunction()
1178 for (unsigned I = 0; I < WorkList.size(); I++) { in isWriteAtEndOfFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h117 SmallVector<BBInfo *, 64> WorkList; in BuildBlockList() local
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()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFASpaceCastSimplifyPass.cpp75 SmallVector<CastGEPCast, 16> WorkList; in run() local
80 WorkList.push_back(It.value()); in run()
81 Changed |= !WorkList.empty(); in run()
83 while (!WorkList.empty()) { in run()
84 CastGEPCast InsnChain = WorkList.pop_back_val(); in run()
88 WorkList.push_back(It.value()); in run()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeMoverUtils.cpp286 SmallPtrSetImpl<Instruction *> &WorkList) { in collectInstructionsInBetween() argument
288 WorkList.insert(NextInst); in collectInstructionsInBetween()
292 WorkList.insert(&Succ->front()); in collectInstructionsInBetween()
296 SmallPtrSet<Instruction *, 10> WorkList; in collectInstructionsInBetween() local
297 getNextInsts(StartInst, WorkList); in collectInstructionsInBetween()
298 while (!WorkList.empty()) { in collectInstructionsInBetween()
299 Instruction *CurInst = *WorkList.begin(); in collectInstructionsInBetween()
300 WorkList.erase(CurInst); in collectInstructionsInBetween()
308 getNextInsts(*CurInst, WorkList); in collectInstructionsInBetween()
463 SmallVector<const BasicBlock *, 8> WorkList; in nonStrictlyPostDominate() local
[all …]
H A DMoveAutoInit.cpp72 SmallVector<MemoryAccess *> WorkList(map_range(IMA.users(), AsMemoryAccess)); in usersDominator()
74 while (!WorkList.empty()) { in usersDominator()
75 MemoryAccess *MA = WorkList.pop_back_val(); in usersDominator()
100 append_range(WorkList, UsersAsMemoryAccesses); in usersDominator()
133 SmallVector<BasicBlock *> WorkList(successors(UsersDominator)); in runMoveAutoInit()
135 while (!WorkList.empty()) { in runMoveAutoInit()
136 BasicBlock *CurrBB = WorkList.pop_back_val(); in runMoveAutoInit()
144 WorkList.push_back(Successor); in runMoveAutoInit()
73 SmallVector<MemoryAccess *> WorkList(map_range(IMA.users(), AsMemoryAccess)); usersDominator() local
134 SmallVector<BasicBlock *> WorkList(successors(UsersDominator)); runMoveAutoInit() local
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DEHUtils.h23 DenseSet<BlockT *> WorkList; in computeEHOnlyBlocks() local
47 WorkList.insert(SuccBB); in computeEHOnlyBlocks()
64 while (!WorkList.empty()) { in computeEHOnlyBlocks()
65 auto *BB = *WorkList.begin(); in computeEHOnlyBlocks()
66 WorkList.erase(BB); in computeEHOnlyBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInsertWriteVXRM.cpp169 std::queue<const MachineBasicBlock *> WorkList; member in __anon24c885d00111::RISCVInsertWriteVXRM
277 WorkList.push(S); in computeAvailable()
321 WorkList.push(P); in computeAnticipated()
439 WorkList.push(&MBB); in runOnMachineFunction()
442 while (!WorkList.empty()) { in runOnMachineFunction()
443 const MachineBasicBlock &MBB = *WorkList.front(); in runOnMachineFunction()
444 WorkList.pop(); in runOnMachineFunction()
450 WorkList.push(&MBB); in runOnMachineFunction()
453 while (!WorkList.empty()) { in runOnMachineFunction()
454 const MachineBasicBlock &MBB = *WorkList.front(); in runOnMachineFunction()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp71 std::list<Instruction *> WorkList; in runLowerConstExpr() local
73 WorkList.push_back(&II); in runLowerConstExpr()
76 while (!WorkList.empty()) { in runLowerConstExpr()
77 Instruction *II = WorkList.front(); in runLowerConstExpr()
106 WorkList.pop_front(); in runLowerConstExpr()
107 auto LowerConstantVec = [&II, &LowerOp, &WorkList, in runLowerConstExpr()
132 WorkList.splice(WorkList.begin(), ReplList); in runLowerConstExpr()
144 WorkList.push_front(cast<Instruction>(LowerOp(CE))); in runLowerConstExpr()
160 WorkList in runLowerConstExpr()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp245 SmallVector<Function *> WorkList = {CG[KernelRoot]->getFunction()}; in removeFnAttrFromReachable() local
249 while (!WorkList.empty()) { in removeFnAttrFromReachable()
250 Function *F = WorkList.pop_back_val(); in removeFnAttrFromReachable()
278 WorkList.push_back(Callee); in removeFnAttrFromReachable()
328 SmallVector<MemoryAccess *> WorkList{Walker->getClobberingMemoryAccess(Load)}; in isClobberedInFunction() local
342 while (!WorkList.empty()) { in isClobberedInFunction()
343 MemoryAccess *MA = WorkList.pop_back_val(); in isClobberedInFunction()
358 WorkList.push_back( in isClobberedInFunction()
365 WorkList.push_back(cast<MemoryAccess>(&Use)); in isClobberedInFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PreTileConfig.cpp219 SmallVector<Register, 8> WorkList( in INITIALIZE_PASS_DEPENDENCY() local
221 while (!WorkList.empty()) { in INITIALIZE_PASS_DEPENDENCY()
222 Register R = WorkList.pop_back_val(); in INITIALIZE_PASS_DEPENDENCY()
233 WorkList.push_back(DefMI->getOperand(I).getReg()); in INITIALIZE_PASS_DEPENDENCY()
311 SmallVector<MachineBasicBlock *, 8> WorkList; in runOnMachineFunction() local
327 WorkList.push_back(I.first); in runOnMachineFunction()
329 while (!WorkList.empty()) { in runOnMachineFunction()
330 MachineBasicBlock *MBB = WorkList.pop_back_val(); in runOnMachineFunction()
334 WorkList.push_back(Pred); in runOnMachineFunction()
347 SmallVector<MIRef, 8> WorkList({I}); in runOnMachineFunction() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUSplitModule.cpp317 SmallVector<const Function *> WorkList({&Fn}); in addAllDependencies() local
318 while (!WorkList.empty()) { in addAllDependencies()
319 const auto &CurFn = *WorkList.pop_back_val(); in addAllDependencies()
356 WorkList.push_back(Callee); in addAllDependencies()
440 const SmallVector<FunctionWithDependencies> &WorkList) { in doPartitioning() argument
520 for (auto &CurFn : WorkList) { in doPartitioning()
664 SmallVector<FunctionWithDependencies> WorkList; in splitAMDGPUModule() local
667 WorkList.emplace_back(SML, CG, FnCosts, &Fn); in splitAMDGPUModule()
675 for (const auto &FWD : WorkList) { in splitAMDGPUModule()
685 WorkList.emplace_back(SML, CG, FnCosts, &Fn); in splitAMDGPUModule()
[all …]
H A DAMDGPUPromoteAlloca.cpp97 std::vector<Value *> &WorkList) const;
254 SmallVector<Instruction *, 4> WorkList({&Alloca}); in collectAllocaUses() local
255 while (!WorkList.empty()) { in collectAllocaUses()
256 auto *Cur = WorkList.pop_back_val(); in collectAllocaUses()
261 WorkList.push_back(cast<Instruction>(U.getUser())); in collectAllocaUses()
690 static void forEachWorkListItem(const InstContainer &WorkList, in forEachWorkListItem() argument
696 for (Instruction *User : WorkList) in forEachWorkListItem()
699 for (Instruction *User : WorkList) { in forEachWorkListItem()
761 SmallVector<Instruction *> WorkList; in tryPromoteAllocaToVector() local
804 WorkList.push_back(Inst); in tryPromoteAllocaToVector()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixIrreducibleControlFlow.cpp140 SmallVector<BlockPair, 4> WorkList; in calculate() local
147 WorkList.emplace_back(MBB, Succ); in calculate()
152 while (!WorkList.empty()) { in calculate()
154 std::tie(MBB, Succ) = WorkList.pop_back_val(); in calculate()
161 WorkList.emplace_back(Pred, Succ); in calculate()
210 BlockVector WorkList; in calculate() local
215 WorkList.push_back(Pred); in calculate()
220 while (!WorkList.empty()) { in calculate()
221 auto *MBB = WorkList.pop_back_val(); in calculate()
226 WorkList.push_back(Pred); in calculate()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp109 SetVector<std::pair<VPBasicBlock *, VPSingleDefRecipe *>> WorkList; in sinkScalarOperands() local
121 WorkList.insert(std::make_pair(VPBB, Def)); in sinkScalarOperands()
127 for (unsigned I = 0; I != WorkList.size(); ++I) { in sinkScalarOperands()
130 std::tie(SinkTo, SinkCandidate) = WorkList[I]; in sinkScalarOperands()
176 WorkList.insert(std::make_pair(SinkTo, Def)); in sinkScalarOperands()
222 SmallVector<VPRegionBlock *, 8> WorkList; in mergeReplicateRegionsIntoSuccessors() local
243 WorkList.push_back(Region1); in mergeReplicateRegionsIntoSuccessors()
247 for (VPRegionBlock *Region1 : WorkList) { in mergeReplicateRegionsIntoSuccessors()
340 SmallVector<VPReplicateRecipe *> WorkList; in addReplicateRegions() local
346 WorkList.push_back(RepR); in addReplicateRegions()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DLLVMContextImpl.cpp154 SmallSetVector<ConstantArray *, 4> WorkList; in dropTriviallyDeadConstantArrays() local
162 WorkList.insert(C); in dropTriviallyDeadConstantArrays()
164 while (!WorkList.empty()) { in dropTriviallyDeadConstantArrays()
165 ConstantArray *C = WorkList.pop_back_val(); in dropTriviallyDeadConstantArrays()
169 WorkList.insert(COp); in dropTriviallyDeadConstantArrays()

12345