Home
last modified time | relevance | path

Searched refs:Insts (Results 1 – 22 of 22) sorted by relevance

/external/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h85 Instructions Insts;
238 unsigned size() const { return (unsigned)Insts.size(); }
239 bool empty() const { return Insts.empty(); }
241 MachineInstr &instr_front() { return Insts.front(); }
242 MachineInstr &instr_back() { return Insts.back(); }
243 const MachineInstr &instr_front() const { return Insts.front(); }
244 const MachineInstr &instr_back() const { return Insts.back(); }
246 MachineInstr &front() { return Insts.front(); }
248 const MachineInstr &front() const { return Insts.front(); }
251 instr_iterator instr_begin() { return Insts.begin(); }
[all …]
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp325 LoadAndStorePromoter(ArrayRef<const Instruction*> Insts, in LoadAndStorePromoter() argument
327 if (Insts.empty()) return; in LoadAndStorePromoter()
330 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
333 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
342 run(const SmallVectorImpl<Instruction*> &Insts) const { in run()
349 for (Instruction *User : Insts) in run()
358 for (Instruction *User : Insts) { in run()
407 if (!isInstInList(L, Insts)) continue; in run()
423 if (!isInstInList(SI, Insts)) continue; in run()
454 for (Instruction *User : Insts) { in run()
[all …]
DLoopUtils.cpp454 Instruction *I, SmallPtrSetImpl<Instruction *> &Insts) { in hasMultipleUsesOf() argument
458 if (Insts.count(dyn_cast<Instruction>(*Use))) in hasMultipleUsesOf()
/external/llvm/utils/TableGen/
DCodeGenTarget.cpp278 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local
279 if (Insts.size() <= 2) in ReadInstructions()
283 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions()
284 Instructions[Insts[i]] = llvm::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
290 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName() argument
294 const auto I = Insts.find(Rec); in GetInstByName()
295 if (!Rec || I == Insts.end()) in GetInstByName()
312 const auto &Insts = getInstructions(); in ComputeInstrsByEnum() local
314 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
321 for (const auto &I : Insts) { in ComputeInstrsByEnum()
[all …]
DPseudoLoweringEmitter.cpp279 std::vector<Record*> Insts; in run() local
283 Insts.push_back(D.second.get()); in run()
287 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in run()
288 evaluateExpansion(Insts[i]); in run()
DCodeEmitterGen.cpp225 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in run() local
270 for (std::vector<Record*>::iterator IC = Insts.begin(), EC = Insts.end(); in run()
DAsmWriterEmitter.cpp88 static void EmitInstructions(std::vector<AsmWriterInst> &Insts, in EmitInstructions() argument
90 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions()
91 Insts.pop_back(); in EmitInstructions()
95 for (unsigned i = Insts.size(); i != 0; --i) { in EmitInstructions()
96 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions()
104 SimilarInsts.push_back(Insts[i-1]); in EmitInstructions()
105 Insts.erase(Insts.begin()+i-1); in EmitInstructions()
DFixedLenDecoderEmitter.cpp340 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
345 : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), Filters(), in FilterChooser()
351 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
356 : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), in FilterChooser()
/external/llvm/lib/Target/Mips/
DMipsAnalyzeImmediate.cpp106 void MipsAnalyzeImmediate::GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts) { in GetShortestSeq() argument
121 Insts.clear(); in GetShortestSeq()
122 Insts.append(ShortestSeq->begin(), ShortestSeq->end()); in GetShortestSeq()
151 GetShortestSeq(SeqLs, Insts); in Analyze()
153 return Insts; in Analyze()
DMipsAnalyzeImmediate.h55 void GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts);
59 InstSeq Insts; variable
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h139 LoadAndStorePromoter(ArrayRef<const Instruction*> Insts,
148 void run(const SmallVectorImpl<Instruction*> &Insts) const;
155 const SmallVectorImpl<Instruction*> &Insts) const;
DLoopUtils.h143 SmallPtrSetImpl<Instruction *> &Insts);
/external/llvm/tools/bugpoint/
DCrashDebugger.cpp456 &Insts) { in TestInsts() argument
463 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in TestInsts()
464 assert(!isa<TerminatorInst>(Insts[i])); in TestInsts()
465 Instructions.insert(cast<Instruction>(VMap[Insts[i]])); in TestInsts()
497 Insts.clear(); in TestInsts()
499 Insts.push_back(Inst); in TestInsts()
744 std::vector<const Instruction*> Insts; in DebugACrash() local
749 Insts.push_back(&I); in DebugACrash()
751 ReduceCrashingInstructions(BD, TestFn).reduceList(Insts, Error); in DebugACrash()
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp194 std::set<MachineInstr*> Insts; member in __anon8c205b100211::Chain
208 Insts.insert(MI); in Chain()
221 Insts.insert(MI); in add()
225 bool contains(MachineInstr *MI) { return Insts.count(MI) > 0; } in contains()
229 return Insts.size(); in size()
DAArch64AddressTypePromotion.cpp384 Instructions &Insts = Entry.second; in mergeSExts() local
386 for (Instruction *Inst : Insts) { in mergeSExts()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1056 AllocaPromoter(ArrayRef<Instruction*> Insts, SSAUpdater &S, in AllocaPromoter() argument
1058 : LoadAndStorePromoter(Insts, S), AI(nullptr), DIB(DB) {} in AllocaPromoter()
1060 void run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) { in run() argument
1073 LoadAndStorePromoter::run(Insts); in run()
1088 const SmallVectorImpl<Instruction*> &Insts) const override { in isInstInList()
1425 SmallVector<Instruction*, 64> Insts; in performPromotion() local
1447 Insts.push_back(cast<Instruction>(U)); in performPromotion()
1448 AllocaPromoter(Insts, SSA, &DIB).run(AI, Insts); in performPromotion()
1449 Insts.clear(); in performPromotion()
DLoopUnswitch.cpp356 UnswitchedValsMap &Insts = OldLoopProps.UnswitchedVals; in cloneData() local
372 for (UnswitchedValsIt I = Insts.begin(); I != Insts.end(); ++I) { in cloneData()
DLICM.cpp770 ArrayRef<const Instruction *> Insts, in LoopPromoter() argument
776 : LoadAndStorePromoter(Insts, S), SomePtr(SP), PointerMustAliases(PMA), in LoopPromoter()
/external/llvm/lib/CodeGen/
DMachineBasicBlock.cpp44 Insts.Parent = this; in MachineBasicBlock()
994 return Insts.erase(I); in erase()
1001 return Insts.remove(MI); in remove_instr()
1013 return Insts.insert(I, MI); in insert()
DMachineFunction.cpp111 I->Insts.clearAndLeakNodesUnsafely(); in ~MachineFunction()
/external/llvm/lib/Target/ARM/
DARMFrameLowering.cpp193 SmallVector<InstInfo, 4> Insts; member
198 Insts.push_back(Info); in addInst()
202 auto Info = std::find_if(Insts.begin(), Insts.end(), in addExtraBytes()
204 assert(Info != Insts.end() && "invalid sp adjusting instruction"); in addExtraBytes()
211 for (auto &Info : Insts) { in emitDefCFAOffsets()
/external/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp1286 SmallVector<Instruction *, 4> Insts; in getInstructionsForAccess() local
1288 std::back_inserter(Insts), in getInstructionsForAccess()
1290 return Insts; in getInstructionsForAccess()