Searched refs:WorkList (Results 1 - 25 of 51) sorted by relevance

123

/external/llvm/lib/Transforms/Scalar/
H A DConstantProp.cpp65 std::set<Instruction*> WorkList; local
67 WorkList.insert(&*i);
74 while (!WorkList.empty()) {
75 Instruction *I = *WorkList.begin();
76 WorkList.erase(WorkList.begin()); // Get an element from the worklist...
83 WorkList.insert(cast<Instruction>(U));
89 WorkList.erase(I);
H A DReg2Mem.cpp91 std::list<Instruction*> WorkList; local
98 WorkList.push_front(&*iib);
103 NumRegsDemoted += WorkList.size();
104 for (std::list<Instruction*>::iterator ilb = WorkList.begin(),
105 ile = WorkList.end(); ilb != ile; ++ilb)
108 WorkList.clear();
116 WorkList.push_front(&*iib);
119 NumPhisDemoted += WorkList.size();
120 for (std::list<Instruction*>::iterator ilb = WorkList.begin(),
121 ile = WorkList
[all...]
H A DDCE.cpp97 SmallSetVector<Instruction *, 16> &WorkList,
114 WorkList.insert(OpI);
132 SmallSetVector<Instruction *, 16> WorkList; local
142 if (!WorkList.count(I))
143 MadeChange |= DCEInstruction(I, WorkList, TLI);
146 while (!WorkList.empty()) {
147 Instruction *I = WorkList.pop_back_val();
148 MadeChange |= DCEInstruction(I, WorkList, TLI);
96 DCEInstruction(Instruction *I, SmallSetVector<Instruction *, 16> &WorkList, const TargetLibraryInfo *TLI) argument
H A DAlignmentFromAssumptions.cpp315 SmallVector<Instruction*, 16> WorkList; local
322 WorkList.push_back(K);
325 while (!WorkList.empty()) {
326 Instruction *J = WorkList.pop_back_val();
406 WorkList.push_back(K);
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DWorkList.h1 //==- WorkList.h - Worklist class used by CoreEngine ---------------*- C++ -*-//
10 // This file defines WorkList, a pure virtual class that represents an opaque
61 class WorkList { class in namespace:clang::ento
64 virtual ~WorkList();
91 static WorkList *makeDFS();
92 static WorkList *makeBFS();
93 static WorkList *makeBFSBlockDFSContents();
/external/llvm/lib/CodeGen/
H A DScheduleDAG.cpp180 SmallVector<SUnit*, 8> WorkList;
181 WorkList.push_back(this);
183 SUnit *SU = WorkList.pop_back_val();
189 WorkList.push_back(SuccSU);
191 } while (!WorkList.empty());
196 SmallVector<SUnit*, 8> WorkList;
197 WorkList.push_back(this);
199 SUnit *SU = WorkList.pop_back_val();
205 WorkList.push_back(PredSU);
207 } while (!WorkList
[all...]
H A DProcessImplicitDefs.cpp33 SmallSetVector<MachineInstr*, 16> WorkList; member in class:__anon11825::ProcessImplicitDefs
91 WorkList.insert(UserMI);
146 assert(WorkList.empty() && "Inconsistent worklist state");
154 WorkList.insert(&*MBBI);
156 if (WorkList.empty())
159 DEBUG(dbgs() << "BB#" << MFI->getNumber() << " has " << WorkList.size()
163 // Drain the WorkList to recursively process any new implicit defs.
164 do processImplicitDef(WorkList.pop_back_val());
165 while (!WorkList.empty());
H A DLiveRangeCalc.cpp263 SmallVector<unsigned, 16> WorkList(1, UseMBBNum);
270 for (unsigned i = 0; i != WorkList.size(); ++i) {
271 MachineBasicBlock *MBB = MF->getBlockNumbered(WorkList[i]);
324 WorkList.push_back(Pred->getNumber());
335 if (WorkList.size() > 4)
336 array_pod_sort(WorkList.begin(), WorkList.end());
341 for (SmallVectorImpl<unsigned>::const_iterator I = WorkList.begin(),
342 E = WorkList.end(); I != E; ++I) {
357 LiveIn.reserve(WorkList
[all...]
H A DInlineSpiller.cpp364 SmallSetVector<SibValueMap::value_type *, 8> WorkList;
365 WorkList.insert(SVI);
368 SVI = WorkList.pop_back_val();
472 WorkList.insert(&*DepSVI);
477 } while (!WorkList.empty());
508 SmallVector<std::pair<unsigned, VNInfo*>, 8> WorkList; local
509 WorkList.push_back(std::make_pair(UseReg, UseVNI));
515 std::tie(Reg, VNI) = WorkList.pop_back_val();
583 WorkList.push_back(std::make_pair(Reg, NonPHI));
613 WorkList
761 SmallVector<std::pair<LiveInterval*, VNInfo*>, 8> WorkList; local
825 SmallVector<std::pair<LiveInterval*, VNInfo*>, 8> WorkList; local
[all...]
H A DLiveVariables.cpp95 std::vector<MachineBasicBlock*> &WorkList) {
115 WorkList.insert(WorkList.end(), MBB->pred_rbegin(), MBB->pred_rend());
121 std::vector<MachineBasicBlock*> WorkList; local
122 MarkVirtRegAliveInBlock(VRInfo, DefBlock, MBB, WorkList);
124 while (!WorkList.empty()) {
125 MachineBasicBlock *Pred = WorkList.back();
126 WorkList.pop_back();
127 MarkVirtRegAliveInBlock(VRInfo, DefBlock, Pred, WorkList);
92 MarkVirtRegAliveInBlock(VarInfo& VRInfo, MachineBasicBlock *DefBlock, MachineBasicBlock *MBB, std::vector<MachineBasicBlock*> &WorkList) argument
H A DMachineCSE.cpp677 SmallVector<MachineDomTreeNode*, 8> WorkList; local
683 WorkList.push_back(Node);
685 Node = WorkList.pop_back_val();
692 WorkList.push_back(Child);
694 } while (!WorkList.empty());
H A DLiveIntervalAnalysis.cpp365 ShrinkToUsesWorkList &WorkList,
369 // Blocks that have already been added to WorkList as live-out.
372 // Extend intervals to reach all uses in WorkList.
373 while (!WorkList.empty()) {
374 SlotIndex Idx = WorkList.back().first;
375 VNInfo *VNI = WorkList.back().second;
376 WorkList.pop_back();
395 WorkList.push_back(std::make_pair(Stop, PVNI));
411 WorkList.push_back(std::make_pair(Stop, VNI));
433 ShrinkToUsesWorkList WorkList; local
364 extendSegmentsToUses(LiveRange &LR, const SlotIndexes &Indexes, ShrinkToUsesWorkList &WorkList, const LiveRange &OldRange) argument
534 ShrinkToUsesWorkList WorkList; local
[all...]
H A DMachineTraceMetrics.cpp499 SmallVector<const MachineBasicBlock*, 16> WorkList;
505 WorkList.push_back(BadMBB);
507 const MachineBasicBlock *MBB = WorkList.pop_back_val();
518 WorkList.push_back(Pred);
524 } while (!WorkList.empty());
530 WorkList.push_back(BadMBB);
532 const MachineBasicBlock *MBB = WorkList.pop_back_val();
543 WorkList.push_back(Succ);
549 } while (!WorkList.empty());
/external/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp77 std::deque<const Stmt *> WorkList; local
82 WorkList.push_back(DeclBody);
84 while (!WorkList.empty()) {
85 const Stmt *Head = WorkList.front();
86 WorkList.pop_front();
214 WorkList.push_back(B->getBody());
225 WorkList.push_back(SubStmt);
226 } // while (!WorkList.empty())
H A DReachableCode.cpp347 SmallVector<const CFGBlock *, 10> WorkList; member in class:__anon1055::DeadCodeScan
380 WorkList.push_back(block);
397 WorkList.push_back(PredBlock);
448 while (!WorkList.empty()) {
449 const CFGBlock *Block = WorkList.pop_back_val();
/external/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp169 std::vector<Value*> WorkList; local
176 WorkList.push_back(AllocaUser);
194 WorkList.push_back(GEPUser);
203 for (std::vector<Value*>::iterator I = WorkList.begin(),
204 E = WorkList.end(); I != E; ++I) {
242 static bool collectUsesWithPtrTypes(Value *Val, std::vector<Value*> &WorkList) { argument
245 if(std::find(WorkList.begin(), WorkList.end(), User) != WorkList.end())
253 WorkList
306 std::vector<Value*> WorkList; local
[all...]
/external/llvm/include/llvm/Transforms/Utils/
H A DSSAUpdaterImpl.h104 SmallVector<BBInfo*, 64> WorkList; local
108 WorkList.push_back(Info);
114 while (!WorkList.empty()) {
115 Info = WorkList.pop_back_val();
146 WorkList.push_back(PredInfo);
161 WorkList.push_back(Info);
164 while (!WorkList.empty()) {
165 Info = WorkList.back();
173 WorkList.pop_back();
191 WorkList
398 SmallVector<PhiT*, 20> WorkList; local
[all...]
/external/llvm/lib/Target/PowerPC/
H A DPPCBoolRetToInt.cpp63 SmallVector<Value *, 8> WorkList; local
64 WorkList.push_back(V);
66 while (!WorkList.empty()) {
67 Value *Curr = WorkList.back();
68 WorkList.pop_back();
72 WorkList.push_back(Op);
/external/llvm/lib/Target/Mips/
H A DMipsOptimizePICCall.cpp184 SmallVector<MBBInfo, 8> WorkList(1, MBBInfo(MDT->getRootNode()));
186 while (!WorkList.empty()) {
187 MBBInfo &MBBI = WorkList.back();
193 WorkList.pop_back();
202 WorkList.append(Children.begin(), Children.end());
/external/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp41 WorkList::Visitor::~Visitor() {}
44 class DFS : public WorkList {
72 class BFS : public WorkList {
101 // Place the dstor for WorkList here because it contains virtual member
103 WorkList::~WorkList() {}
105 WorkList *WorkList::makeDFS() { return new DFS(); }
106 WorkList *WorkList
[all...]
H A DPlistDiagnostics.cpp306 SmallVector<const PathPieces *, 5> WorkList; local
307 WorkList.push_back(&D->path);
309 while (!WorkList.empty()) {
310 const PathPieces &path = *WorkList.pop_back_val();
330 WorkList.push_back(&call->path);
334 WorkList.push_back(&macro->subPieces);
/external/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp179 std::vector<Instruction*> WorkList; local
184 WorkList.push_back(I);
188 for (std::vector<Instruction*>::iterator i = WorkList.begin(),
189 e = WorkList.end(); i != e; ++i) {
/external/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp182 SmallVector<Value *, 16> WorkList; local
183 WorkList.insert(WorkList.end(), arg->user_begin(), arg->user_end());
184 while (!WorkList.empty()) {
185 Value *V = WorkList.back();
186 WorkList.pop_back();
189 WorkList.insert(WorkList.end(), V->user_begin(), V->user_end());
/external/llvm/utils/TableGen/
H A DDFAPacketizerEmitter.cpp897 SmallVector<const State*, 32> WorkList; local
898 // std::queue<State*> WorkList;
901 WorkList.push_back(Initial);
920 while (!WorkList.empty()) {
921 const State *current = WorkList.pop_back_val();
972 WorkList.push_back(NewState);
/external/llvm/lib/Transforms/Utils/
H A DLocal.cpp425 SmallSetVector<Instruction *, 16> &WorkList,
443 WorkList.insert(OpI);
456 WorkList.insert(cast<Instruction>(U));
484 SmallSetVector<Instruction *, 16> WorkList; local
495 if (!WorkList.count(I))
496 MadeChange |= simplifyAndDCEInstruction(I, WorkList, DL, TLI);
499 while (!WorkList.empty()) {
500 Instruction *I = WorkList.pop_back_val();
501 MadeChange |= simplifyAndDCEInstruction(I, WorkList, DL, TLI);
424 simplifyAndDCEInstruction(Instruction *I, SmallSetVector<Instruction *, 16> &WorkList, const DataLayout &DL, const TargetLibraryInfo *TLI) argument

Completed in 638 milliseconds

123