/external/llvm/include/llvm/Transforms/InstCombine/ |
InstCombine.h | 28 InstCombineWorklist Worklist; 35 InstCombinePass(InstCombinePass &&Arg) : Worklist(std::move(Arg.Worklist)) {} 37 Worklist = std::move(RHS.Worklist);
|
InstCombineWorklist.h | 1 //===- InstCombineWorklist.h - Worklist for InstCombine pass ----*- C++ -*-===// 24 /// InstCombineWorklist - This is the worklist management logic for 27 SmallVector<Instruction*, 256> Worklist; 36 : Worklist(std::move(Arg.Worklist)), 39 Worklist = std::move(RHS.Worklist); 44 bool isEmpty() const { return Worklist.empty(); } 46 /// Add - Add the specified instruction to the worklist if it isn't already 49 if (WorklistMap.insert(std::make_pair(I, Worklist.size())).second) [all...] |
/external/llvm/lib/Transforms/Scalar/ |
ADCE.cpp | 38 SmallVector<Instruction*, 128> Worklist; 45 Worklist.push_back(&I); 50 while (!Worklist.empty()) { 51 Instruction *Curr = Worklist.pop_back_val(); 55 Worklist.push_back(Inst); 62 // NOTE: We reuse the Worklist vector here for memory efficiency. 65 Worklist.push_back(&I); 70 for (Instruction *&I : Worklist) { 75 return !Worklist.empty();
|
BDCE.cpp | 66 SmallVector<Instruction*, 128> Worklist; 86 Worklist.push_back(&I); 91 for (Instruction *&I : Worklist) {
|
LoopUnswitch.cpp | 261 void SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L); [all...] |
/external/llvm/lib/Analysis/ |
IteratedDominanceFrontier.cpp | 42 SmallVector<DomTreeNode *, 32> Worklist; 57 Worklist.clear(); 58 Worklist.push_back(Root); 61 while (!Worklist.empty()) { 62 DomTreeNode *Node = Worklist.pop_back_val(); 91 Worklist.push_back(DomChild);
|
CFG.cpp | 131 SmallVectorImpl<BasicBlock *> &Worklist, BasicBlock *StopBB, 143 BasicBlock *BB = Worklist.pop_back_val(); 163 Outer->getExitBlocks(Worklist); 165 Worklist.append(succ_begin(BB), succ_end(BB)); 167 } while (!Worklist.empty()); 179 SmallVector<BasicBlock*, 32> Worklist; 180 Worklist.push_back(const_cast<BasicBlock*>(A)); 182 return isPotentiallyReachableFromMany(Worklist, const_cast<BasicBlock *>(B), 191 SmallVector<BasicBlock*, 32> Worklist; 219 Worklist.append(succ_begin(BB), succ_end(BB)) [all...] |
PtrUseVisitor.cpp | 25 Worklist.push_back(std::move(NewU));
|
EHPersonalities.cpp | 49 SmallVector<std::pair<BasicBlock *, BasicBlock *>, 16> Worklist; 66 Worklist.push_back({EntryBlock, EntryBlock}); 68 while (!Worklist.empty()) { 71 std::tie(Visiting, Color) = Worklist.pop_back_val(); 103 Worklist.push_back({Succ, SuccColor});
|
DivergenceAnalysis.cpp | 103 // users to Worklist. 111 std::vector<Value *> Worklist; // Stack for DFS. 116 Worklist.clear(); 120 Worklist.push_back(&I); 126 Worklist.push_back(&Arg); 151 Worklist.push_back(&*I); 196 Worklist.push_back(UserInst); 236 Worklist.push_back(UserInst); 242 while (!Worklist.empty()) { 243 Value *V = Worklist.back() [all...] |
CaptureTracking.cpp | 102 SmallVector<BasicBlock*, 32> Worklist; 103 Worklist.append(succ_begin(BB), succ_end(BB)); 104 return !isPotentiallyReachableFromMany(Worklist, BB, DT); 215 SmallVector<const Use *, Threshold> Worklist; 227 Worklist.push_back(&U); 230 while (!Worklist.empty()) { 231 const Use *U = Worklist.pop_back_val(); 289 Worklist.push_back(&UU);
|
LazyCallGraph.cpp | 24 SmallVectorImpl<Constant *> &Worklist, SmallPtrSetImpl<Constant *> &Visited, 27 while (!Worklist.empty()) { 28 Constant *C = Worklist.pop_back_val(); 52 Worklist.push_back(cast<Constant>(Op)); 61 SmallVector<Constant *, 16> Worklist; 64 // instructions and add every operand which is a constant to the worklist. 70 Worklist.push_back(C); 75 findCallees(Worklist, Visited, Callees, CalleeIndexMap); 112 SmallVector<Constant *, 16> Worklist; 117 Worklist.push_back(GV.getInitializer()) [all...] |
DemandedBits.cpp | 272 SmallVector<Instruction*, 128> Worklist; 287 Worklist.push_back(&I); 298 Worklist.push_back(J); 308 while (!Worklist.empty()) { 309 Instruction *UserI = Worklist.pop_back_val(); 354 Worklist.push_back(I); 357 Worklist.push_back(I);
|
/external/llvm/lib/Transforms/IPO/ |
FunctionImport.cpp | 95 /// found they are added to the \p Worklist for importing. 99 SmallVector<StringRef, 64> &Worklist) { 113 // added to set/worklist. 143 Worklist.push_back(It.first->getKey()); 152 // Helper function: given a worklist and an index, will process all the worklist 161 SmallVector<StringRef, 64> &Worklist, 167 while (!Worklist.empty()) { 168 auto CalledFunctionName = Worklist.pop_back_val(); 252 // Process the newly imported functions and add callees to the worklist [all...] |
/external/llvm/lib/Transforms/ObjCARC/ |
ProvenanceAnalysis.cpp | 78 SmallVector<const Value *, 8> Worklist; 79 Worklist.push_back(P); 82 P = Worklist.pop_back_val(); 99 Worklist.push_back(Ur); 101 } while (!Worklist.empty());
|
DependencyAnalysis.cpp | 231 SmallVector<std::pair<BasicBlock *, BasicBlock::iterator>, 4> Worklist; 232 Worklist.push_back(std::make_pair(StartBB, StartPos)); 235 Worklist.pop_back_val(); 246 // Add the predecessors to the worklist. 250 Worklist.push_back(std::make_pair(PredBB, PredBB->end())); 261 } while (!Worklist.empty());
|
/external/llvm/include/llvm/Analysis/ |
CFG.h | 82 /// 'Worklist' to 'StopBB', returning true if uncertain. 84 /// Determine whether there is a path from at least one block in Worklist to 86 /// once any block in 'Worklist' has been reached then 'StopBB' can not be 88 bool isPotentiallyReachableFromMany(SmallVectorImpl<BasicBlock *> &Worklist,
|
PtrUseVisitor.h | 115 /// This is used to maintain a worklist fo to-visit uses. This is used to 123 /// \brief The worklist of to-visit uses. 124 SmallVector<UseToVisit, 8> Worklist; 153 /// \brief Enqueue the users of this instruction in the visit worklist. 178 /// The recursive visit of uses is accomplished with a worklist, so the only 216 // Visit all the uses off the worklist until it is empty. 217 while (!Worklist.empty()) { 218 UseToVisit ToVisit = Worklist.pop_back_val();
|
/external/llvm/include/llvm/Support/ |
GenericDomTreeConstruction.h | 56 typename GraphT::ChildIteratorType>, 32> Worklist; 57 Worklist.push_back(std::make_pair(V, GraphT::child_begin(V))); 58 while (!Worklist.empty()) { 59 typename GraphT::NodeType* BB = Worklist.back().first; 60 typename GraphT::ChildIteratorType NextSucc = Worklist.back().second; 82 // If we are done with this block, remove it from the worklist. 84 Worklist.pop_back(); 89 ++Worklist.back().second; 98 Worklist.push_back(std::make_pair(Succ, GraphT::child_begin(Succ)));
|
/external/llvm/lib/Transforms/Utils/ |
LoopUtils.cpp | 99 SmallVector<Instruction *, 8> Worklist; 102 Worklist.push_back(Exit); 106 while (!Worklist.empty()) { 107 Instruction *I = Worklist.pop_back_val(); 118 Worklist.push_back(J); 196 SmallVector<Instruction *, 8> Worklist; 213 Worklist.push_back(Start); 230 while (!Worklist.empty()) { 231 Instruction *Cur = Worklist.back(); 232 Worklist.pop_back() [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineInternal.h | 139 /// worklist. 142 InstCombineWorklist &Worklist; 147 : Worklist(WL), AC(AC) {} 152 Worklist.Add(I); 169 /// \brief A worklist of the instructions that need to be simplified. 170 InstCombineWorklist &Worklist; 173 /// worklist. 197 InstCombiner(InstCombineWorklist &Worklist, BuilderTy *Builder, 201 : Worklist(Worklist), Builder(Builder), MinimizeSize(MinimizeSize) [all...] |
/external/llvm/include/llvm/Transforms/Scalar/ |
SROA.h | 59 /// \brief Worklist of alloca instructions to simplify. 66 SetVector<AllocaInst *, SmallVector<AllocaInst *, 16>> Worklist; 73 /// \brief Post-promotion worklist. 86 /// \brief A worklist of PHIs to speculate prior to promoting allocas. 93 /// \brief A worklist of select instructions to speculate prior to promoting
|
/external/llvm/lib/CodeGen/ |
LiveDebugValues.cpp | 360 std::greater<unsigned int>> Worklist; 374 Worklist.push(RPONumber); 379 // To solve it, we perform join() and transfer() using the two worklist method 382 while (!Worklist.empty() || !Pending.empty()) { 383 // We track what is on the pending worklist to avoid inserting the same 387 while (!Worklist.empty()) { 388 MachineBasicBlock *MBB = OrderToBB[Worklist.top()]; 389 Worklist.pop(); 410 Worklist.swap(Pending); 412 // worklist [all...] |
WinEHPrepare.cpp | 68 SmallVectorImpl<std::pair<BasicBlock *, Value *>> &Worklist); 446 SmallVector<std::pair<const Instruction *, int>, 8> Worklist; 449 // looking for top-level handlers and seed the worklist with them. 459 Worklist.emplace_back(FirstNonPHI, -1); 462 while (!Worklist.empty()) { 465 std::tie(Pad, ParentState) = Worklist.pop_back_val(); 506 Worklist.emplace_back(UserI, ParentState); 518 Worklist.emplace_back(Pred->getFirstNonPHI(), PredState); [all...] |
/external/llvm/lib/Target/AMDGPU/ |
SIInstrInfo.h | 44 void lowerScalarAbs(SmallVectorImpl<MachineInstr *> &Worklist, 47 void splitScalar64BitUnaryOp(SmallVectorImpl<MachineInstr *> &Worklist, 50 void splitScalar64BitBinaryOp(SmallVectorImpl<MachineInstr *> &Worklist, 53 void splitScalar64BitBCNT(SmallVectorImpl<MachineInstr *> &Worklist, 55 void splitScalar64BitBFE(SmallVectorImpl<MachineInstr *> &Worklist, 60 SmallVectorImpl<MachineInstr *> &Worklist) const; 415 SmallVectorImpl<MachineInstr *> &Worklist) const;
|