Home
last modified time | relevance | path

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

12345

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DScheduleDAG.cpp219 SmallVector<SUnit*, 8> WorkList; in setDepthDirty() local
220 WorkList.push_back(this); in setDepthDirty()
222 SUnit *SU = WorkList.pop_back_val(); in setDepthDirty()
227 WorkList.push_back(SuccSU); in setDepthDirty()
229 } while (!WorkList.empty()); in setDepthDirty()
234 SmallVector<SUnit*, 8> WorkList; in setHeightDirty() local
235 WorkList.push_back(this); in setHeightDirty()
237 SUnit *SU = WorkList.pop_back_val(); in setHeightDirty()
242 WorkList.push_back(PredSU); in setHeightDirty()
244 } while (!WorkList.empty()); in setHeightDirty()
[all …]
H A DProcessImplicitDefs.cpp34 SmallSetVector<MachineInstr*, 16> WorkList; member in __anon4a9355870111::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()
261 WorkList.push_back(Pred->getNumber()); in findReachingDefs()
275 if (WorkList.size() > 4) in findReachingDefs()
[all …]
H A DMachineFunctionSplitter.cpp96 DenseSet<MachineBasicBlock *> WorkList; in setDescendantEHBlocksCold() local
120 WorkList.insert(SuccMBB); in setDescendantEHBlocksCold()
134 while (!WorkList.empty()) { in setDescendantEHBlocksCold()
135 auto *MBB = *WorkList.begin(); in setDescendantEHBlocksCold()
136 WorkList.erase(MBB); in setDescendantEHBlocksCold()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DCombiner.cpp53 WorkListTy &WorkList; member in __anona379b4470111::WorkListMaintainer
61 WorkListMaintainer(WorkListTy &WorkList) : WorkList(WorkList) {} in WorkListMaintainer() argument
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
127 WorkListMaintainer Observer(WorkList); in combineMachineInstrs()
142 WorkList.deferred_insert(&CurMI); in combineMachineInstrs()
145 WorkList.finalize(); in combineMachineInstrs()
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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();
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp73 std::list<Instruction*> WorkList; in runPass() local
76 WorkList.push_front(&I); in runPass()
79 NumRegsDemoted += WorkList.size(); in runPass()
80 for (Instruction *I : WorkList) in runPass()
83 WorkList.clear(); in runPass()
88 WorkList.push_front(&Phi); in runPass()
91 NumPhisDemoted += WorkList.size(); in runPass()
92 for (Instruction *I : WorkList) in runPass()
H A DDCE.cpp89 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 DBDCE.cpp50 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 DAlignmentFromAssumptions.cpp249 SmallVector<Instruction*, 16> WorkList; in processAssumption() local
255 WorkList.push_back(K); in processAssumption()
258 while (!WorkList.empty()) { in processAssumption()
259 Instruction *J = WorkList.pop_back_val(); in processAssumption()
313 WorkList.push_back(K); in processAssumption()
/openbsd-src/gnu/llvm/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowWorklist.h27 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()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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()
450 SmallVector<const BasicBlock *, 8> WorkList; in nonStrictlyPostDominate() local
[all …]
H A DFixIrreducible.cpp321 SmallVector<Loop *, 8> WorkList; in FixIrreducibleImpl() local
328 append_range(WorkList, LI); in FixIrreducibleImpl()
330 while (!WorkList.empty()) { in FixIrreducibleImpl()
331 auto L = WorkList.pop_back_val(); in FixIrreducibleImpl()
337 WorkList.append(L->begin(), L->end()); in FixIrreducibleImpl()
/openbsd-src/gnu/llvm/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.push_front(cast<Instruction>(ReplInst)); in runLowerConstExpr()
/openbsd-src/gnu/llvm/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()
308 SmallVector<MachineBasicBlock *, 8> WorkList; in runOnMachineFunction() local
324 WorkList.push_back(I.first); in runOnMachineFunction()
326 while (!WorkList.empty()) { in runOnMachineFunction()
327 MachineBasicBlock *MBB = WorkList.pop_back_val(); in runOnMachineFunction()
331 WorkList.push_back(Pred); in runOnMachineFunction()
344 SmallVector<MIRef, 8> WorkList({I}); in runOnMachineFunction() local
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp152 SmallVector<MemoryAccess *> WorkList{Walker->getClobberingMemoryAccess(Load)}; in isClobberedInFunction() local
166 while (!WorkList.empty()) { in isClobberedInFunction()
167 MemoryAccess *MA = WorkList.pop_back_val(); in isClobberedInFunction()
182 WorkList.push_back( in isClobberedInFunction()
189 WorkList.push_back(cast<MemoryAccess>(&Use)); in isClobberedInFunction()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DVPlanTransforms.cpp114 SetVector<std::pair<VPBasicBlock *, VPRecipeBase *>> WorkList; in sinkScalarOperands() local
125 WorkList.insert(std::make_pair(VPBB, Def)); in sinkScalarOperands()
131 for (unsigned I = 0; I != WorkList.size(); ++I) { in sinkScalarOperands()
134 std::tie(SinkTo, SinkCandidate) = WorkList[I]; in sinkScalarOperands()
190 WorkList.insert(std::make_pair(SinkTo, Def)); in sinkScalarOperands()
233 SmallVector<VPRegionBlock *, 8> WorkList; in mergeReplicateRegionsIntoSuccessors() local
254 WorkList.push_back(Region1); in mergeReplicateRegionsIntoSuccessors()
258 for (VPRegionBlock *Region1 : WorkList) { in mergeReplicateRegionsIntoSuccessors()
316 SmallVector<VPBasicBlock *> WorkList; in mergeBlocksIntoPredecessors() local
322 WorkList.push_back(VPBB); in mergeBlocksIntoPredecessors()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DLLVMContextImpl.cpp147 SmallSetVector<ConstantArray *, 4> WorkList; in dropTriviallyDeadConstantArrays() local
155 WorkList.insert(C); in dropTriviallyDeadConstantArrays()
157 while (!WorkList.empty()) { in dropTriviallyDeadConstantArrays()
158 ConstantArray *C = WorkList.pop_back_val(); in dropTriviallyDeadConstantArrays()
162 WorkList.insert(COp); in dropTriviallyDeadConstantArrays()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp74 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsOptimizePICCall.cpp204 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()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp88 std::vector<Value*> &WorkList) const;
426 SmallVector<Instruction *> WorkList; in tryPromoteAllocaToVector() local
461 WorkList.push_back(Inst); in tryPromoteAllocaToVector()
498 WorkList.push_back(Inst); in tryPromoteAllocaToVector()
555 for (Instruction *Inst : WorkList) { in tryPromoteAllocaToVector()
678 Value *BaseAlloca, Value *Val, std::vector<Value *> &WorkList) const { in collectUsesWithPtrTypes()
681 if (is_contained(WorkList, User)) in collectUsesWithPtrTypes()
688 WorkList.push_back(User); in collectUsesWithPtrTypes()
725 WorkList.push_back(ICmp); in collectUsesWithPtrTypes()
733 WorkList.push_back(User); in collectUsesWithPtrTypes()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64StackTaggingPreRA.cpp272 SmallVector<Register, 8> WorkList; in findFirstSlotCandidate() local
273 WorkList.push_back(RetagReg); in findFirstSlotCandidate()
275 while (!WorkList.empty()) { in findFirstSlotCandidate()
276 Register UseReg = WorkList.pop_back_val(); in findFirstSlotCandidate()
288 WorkList.push_back(DstReg); in findFirstSlotCandidate()

12345