/external/llvm/lib/Transforms/Scalar/ |
ConstantProp.cpp | 67 // Initialize the worklist to all of the instructions ready to process... 68 std::set<Instruction*> WorkList; 70 WorkList.insert(&I); 77 while (!WorkList.empty()) { 78 Instruction *I = *WorkList.begin(); 79 WorkList.erase(WorkList.begin()); // Get an element from the worklist... 83 // Add all of the users of this instruction to the worklist, they might 86 WorkList.insert(cast<Instruction>(U)) [all...] |
DCE.cpp | 76 SmallSetVector<Instruction *, 16> &WorkList, 93 WorkList.insert(OpI); 105 SmallSetVector<Instruction *, 16> WorkList; 106 // Iterate over the original function, only adding insts to the worklist 108 // the worklist with the entire function's worth of instructions. 114 // worklist from an earlier visit. 115 if (!WorkList.count(I)) 116 MadeChange |= DCEInstruction(I, WorkList, TLI); 119 while (!WorkList.empty()) { 120 Instruction *I = WorkList.pop_back_val() [all...] |
Reg2Mem.cpp | 91 std::list<Instruction*> WorkList; 97 WorkList.push_front(&*iib); 102 NumRegsDemoted += WorkList.size(); 103 for (Instruction *ilb : WorkList) 106 WorkList.clear(); 113 WorkList.push_front(&*iib); 116 NumPhisDemoted += WorkList.size(); 117 for (Instruction *ilb : WorkList)
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
ConstantProp.cpp | 59 // Initialize the worklist to all of the instructions ready to process... 60 std::set<Instruction*> WorkList; 62 WorkList.insert(&*i); 66 while (!WorkList.empty()) { 67 Instruction *I = *WorkList.begin(); 68 WorkList.erase(WorkList.begin()); // Get an element from the worklist... 72 // Add all of the users of this instruction to the worklist, they might 76 WorkList.insert(cast<Instruction>(*UI)) [all...] |
DCE.cpp | 90 // Start out with all of the instructions in the worklist... 91 std::vector<Instruction*> WorkList; 93 WorkList.push_back(&*i); 95 // Loop over the worklist finding instructions that are dead. If they are 97 // potentially dead, and work until the worklist is empty. 100 while (!WorkList.empty()) { 101 Instruction *I = WorkList.back(); 102 WorkList.pop_back(); 106 // instructions being used, add them to the worklist, because they might 111 WorkList.push_back(Used) [all...] |
Reg2Mem.cpp | 92 std::list<Instruction*> WorkList; 99 WorkList.push_front(&*iib); 104 NumRegsDemoted += WorkList.size(); 105 for (std::list<Instruction*>::iterator ilb = WorkList.begin(), 106 ile = WorkList.end(); ilb != ile; ++ilb) 109 WorkList.clear(); 117 WorkList.push_front(&*iib); 120 NumPhisDemoted += WorkList.size(); 121 for (std::list<Instruction*>::iterator ilb = WorkList.begin(), 122 ile = WorkList.end(); ilb != ile; ++ilb [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
WorkList.h | 1 //==- WorkList.h - Worklist class used by CoreEngine ---------------*- C++ -*-// 10 // This file defines WorkList, a pure virtual class that represents an opaque 11 // worklist used by CoreEngine to explore the reachability state space. 48 /// Returns the node associated with the worklist unit. 51 /// Returns the block counter map associated with the worklist unit. 54 /// Returns the CFGblock associated with the worklist unit. 57 /// Return the index within the CFGBlock for the worklist unit. 61 class WorkList { 64 virtual ~WorkList(); [all...] |
/external/llvm/include/llvm/Analysis/ |
LoopPassManager.h | 96 SmallVector<Loop *, 2> WorkList(LI.begin(), LI.end()); 97 while (!WorkList.empty()) { 98 Loop *L = WorkList.pop_back_val(); 99 WorkList.insert(WorkList.end(), L->begin(), L->end());
|
/external/llvm/lib/CodeGen/ |
ScheduleDAG.cpp | 180 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.empty()) [all...] |
ProcessImplicitDefs.cpp | 33 SmallSetVector<MachineInstr*, 16> WorkList; 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()) [all...] |
LiveRangeCalc.cpp | 279 SmallVector<unsigned, 16> WorkList(1, UseMBBNum); 286 for (unsigned i = 0; i != WorkList.size(); ++i) { 287 MachineBasicBlock *MBB = MF->getBlockNumbered(WorkList[i]); 340 WorkList.push_back(Pred->getNumber()); 351 if (WorkList.size() > 4) 352 array_pod_sort(WorkList.begin(), WorkList.end()); 357 for (SmallVectorImpl<unsigned>::const_iterator I = WorkList.begin(), 358 E = WorkList.end(); I != E; ++I) { 373 LiveIn.reserve(WorkList.size()) [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
ScheduleDAG.cpp | 170 SmallVector<SUnit*, 8> WorkList; 171 WorkList.push_back(this); 173 SUnit *SU = WorkList.pop_back_val(); 179 WorkList.push_back(SuccSU); 181 } while (!WorkList.empty()); 186 SmallVector<SUnit*, 8> WorkList; 187 WorkList.push_back(this); 189 SUnit *SU = WorkList.pop_back_val(); 195 WorkList.push_back(PredSU); 197 } while (!WorkList.empty()) [all...] |
LiveRangeCalc.cpp | 107 SmallVector<MachineBasicBlock*, 16> WorkList(1, KillMBB); 114 for (unsigned i = 0; i != WorkList.size(); ++i) { 115 MachineBasicBlock *MBB = WorkList[i]; 147 WorkList.push_back(Pred); 154 // Transfer WorkList to LiveInBlocks in reverse order. 157 LiveIn.reserve(WorkList.size()); 158 while(!WorkList.empty()) 159 addLiveInBlock(LI, DomTree->getNode(WorkList.pop_back_val()));
|
InlineSpiller.cpp | 359 SmallVector<SibValueMap::iterator, 8> WorkList(1, SVI); 363 SVI = WorkList.pop_back_val(); 456 WorkList.push_back(DepSVI); 461 } while (!WorkList.empty()); 492 SmallVector<std::pair<unsigned, VNInfo*>, 8> WorkList; 493 WorkList.push_back(std::make_pair(UseReg, UseVNI)); 498 tie(Reg, VNI) = WorkList.pop_back_val(); 548 // Create entries for all the PHIs. Don't add them to the worklist, we 562 // This is the first time we see NonPHI, add it to the worklist. 564 WorkList.push_back(std::make_pair(Reg, NonPHI)) [all...] |
/external/spirv-llvm/lib/SPIRV/ |
SPIRVLowerConstExpr.cpp | 119 std::list<Instruction *> WorkList; 123 WorkList.push_back(static_cast<Instruction*>(II)); 126 while (!WorkList.empty()) { 127 auto II = WorkList.front(); 128 WorkList.pop_front(); 137 WorkList.push_front(ReplInst);
|
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/ |
SSAUpdaterImpl.h | 94 SmallVector<BBInfo*, 64> WorkList; 98 WorkList.push_back(Info); 104 while (!WorkList.empty()) { 105 Info = WorkList.pop_back_val(); 136 WorkList.push_back(PredInfo); 146 // Initialize the worklist with the roots from the backward traversal. 151 WorkList.push_back(Info); 154 while (!WorkList.empty()) { 155 Info = WorkList.back(); 163 WorkList.pop_back() [all...] |
/external/clang/lib/Analysis/ |
PseudoConstantAnalysis.cpp | 75 std::deque<const Stmt *> WorkList; 80 WorkList.push_back(DeclBody); 82 while (!WorkList.empty()) { 83 const Stmt *Head = WorkList.front(); 84 WorkList.pop_front(); 212 WorkList.push_back(B->getBody()); 220 // Add all substatements to the worklist 223 WorkList.push_back(SubStmt); 224 } // while (!WorkList.empty())
|
/external/swiftshader/third_party/LLVM/tools/llvm-objdump/ |
MCFunction.cpp | 44 SmallVector<uint64_t, 16> WorkList; 45 WorkList.push_back(Start); 47 while (!WorkList.empty()) { 48 uint64_t Index = WorkList.pop_back_val(); 64 // new basic block there and add the target to the worklist. 67 WorkList.push_back(targ); 68 WorkList.push_back(Index+Size);
|
/external/llvm/include/llvm/Transforms/Utils/ |
SSAUpdaterImpl.h | 105 SmallVector<BBInfo*, 64> WorkList; 109 WorkList.push_back(Info); 115 while (!WorkList.empty()) { 116 Info = WorkList.pop_back_val(); 147 WorkList.push_back(PredInfo); 157 // Initialize the worklist with the roots from the backward traversal. 162 WorkList.push_back(Info); 165 while (!WorkList.empty()) { 166 Info = WorkList.back(); 174 WorkList.pop_back() [all...] |
/frameworks/rs/rsov/compiler/ |
RSAllocationUtils.cpp | 79 std::vector<User *> WorkList(GV->user_begin(), GV->user_end()); 82 while (Idx < WorkList.size()) { 83 auto *U = WorkList[Idx]; 123 WorkList.push_back(NewU); 175 if (std::find(WorkList.begin(), WorkList.end(), NewU) == WorkList.end()) 176 WorkList.push_back(NewU);
|
/external/llvm/lib/Target/PowerPC/ |
PPCBoolRetToInt.cpp | 63 SmallVector<Value *, 8> WorkList; 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/CodeGen/AsmPrinter/ |
DebugHandlerBase.cpp | 32 SmallVector<LexicalScope *, 4> WorkList; 33 WorkList.push_back(LScopes.getCurrentFunctionScope()); 34 while (!WorkList.empty()) { 35 LexicalScope *S = WorkList.pop_back_val(); 39 WorkList.append(Children.begin(), Children.end());
|
/external/llvm/lib/Target/Mips/ |
MipsOptimizePICCall.cpp | 184 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/ |
CoreEngine.cpp | 38 // Worklist classes for exploration of reachable states. 41 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::makeBFS() { return new BFS(); [all...] |
/external/llvm/lib/Target/AMDGPU/ |
AMDGPUPromoteAlloca.cpp | 52 std::vector<Value*> &WorkList) const; 407 std::vector<Value*> WorkList; 414 WorkList.push_back(AllocaUser); 432 WorkList.push_back(GEPUser); 441 for (Value *V : WorkList) { 539 std::vector<Value*> &WorkList) const { 542 if (std::find(WorkList.begin(), WorkList.end(), User) != WorkList.end()) 549 WorkList.push_back(User) [all...] |