Home
last modified time | relevance | path

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

/external/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h64 Instructions Insts;
216 unsigned size() const { return (unsigned)Insts.size(); }
217 bool empty() const { return Insts.empty(); }
219 MachineInstr& front() { return Insts.front(); }
220 MachineInstr& back() { return Insts.back(); }
221 const MachineInstr& front() const { return Insts.front(); }
222 const MachineInstr& back() const { return Insts.back(); }
224 instr_iterator instr_begin() { return Insts.begin(); }
225 const_instr_iterator instr_begin() const { return Insts.begin(); }
226 instr_iterator instr_end() { return Insts.end(); }
[all …]
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp363 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts, in LoadAndStorePromoter() argument
365 if (Insts.empty()) return; in LoadAndStorePromoter()
368 if (LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
371 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
380 run(const SmallVectorImpl<Instruction*> &Insts) const { in run()
387 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
388 Instruction *User = Insts[i]; in run()
398 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
399 Instruction *User = Insts[i]; in run()
448 if (!isInstInList(L, Insts)) continue; in run()
[all …]
/external/llvm/tools/llvm-objdump/
DMCFunction.h49 std::vector<MCDecodedInst> Insts; variable
53 ArrayRef<MCDecodedInst> getInsts() const { return Insts; } in getInsts()
61 void addInst(const MCDecodedInst &Inst) { Insts.push_back(Inst); } in addInst()
65 return Insts.size() < RHS.Insts.size();
/external/llvm/utils/TableGen/
DCodeGenTarget.cpp250 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local
251 if (Insts.size() <= 2) in ReadInstructions()
255 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions()
256 Instructions[Insts[i]] = new CodeGenInstruction(Insts[i]); in ReadInstructions()
261 const DenseMap<const Record*, CodeGenInstruction*> &Insts, in GetInstByName() argument
266 I = Insts.find(Rec); in GetInstByName()
267 if (Rec == 0 || I == Insts.end()) in GetInstByName()
307 const DenseMap<const Record*, CodeGenInstruction*> &Insts = getInstructions(); in ComputeInstrsByEnum() local
309 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
317 I = Insts.begin(), E = Insts.end(); I != E; ++I) { in ComputeInstrsByEnum()
[all …]
DCodeEmitterGen.cpp46 void reverseBits(std::vector<Record*> &Insts);
56 void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) { in reverseBits() argument
57 for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end(); in reverseBits()
235 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in run() local
238 if (Target.isLittleEndianEncoding()) reverseBits(Insts); in run()
283 for (std::vector<Record*>::iterator IC = Insts.begin(), EC = Insts.end(); in run()
DPseudoLoweringEmitter.cpp274 std::vector<Record*> Insts; in run() local
279 Insts.push_back(I->second); in run()
283 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in run()
284 evaluateExpansion(Insts[i]); in run()
DAsmWriterEmitter.cpp81 static void EmitInstructions(std::vector<AsmWriterInst> &Insts, in EmitInstructions() argument
83 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions()
84 Insts.pop_back(); in EmitInstructions()
88 for (unsigned i = Insts.size(); i != 0; --i) { in EmitInstructions()
89 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions()
97 SimilarInsts.push_back(Insts[i-1]); in EmitInstructions()
98 Insts.erase(Insts.begin()+i-1); in EmitInstructions()
DFixedLenDecoderEmitter.cpp345 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
350 : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), Filters(), in FilterChooser()
358 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
363 : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), in FilterChooser()
/external/llvm/lib/Target/Mips/
DMipsAnalyzeImmediate.cpp105 void MipsAnalyzeImmediate::GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts) { in GetShortestSeq() argument
120 Insts.clear(); in GetShortestSeq()
121 Insts.append(ShortestSeq->begin(), ShortestSeq->end()); in GetShortestSeq()
150 GetShortestSeq(SeqLs, Insts); in Analyze()
152 return Insts; in Analyze()
DMipsAnalyzeImmediate.h55 void GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts);
59 InstSeq Insts; variable
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h128 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts,
135 void run(const SmallVectorImpl<Instruction*> &Insts) const;
142 const SmallVectorImpl<Instruction*> &Insts) const;
/external/llvm/tools/bugpoint/
DCrashDebugger.cpp382 &Insts) { in TestInsts() argument
389 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in TestInsts()
390 assert(!isa<TerminatorInst>(Insts[i])); in TestInsts()
391 Instructions.insert(cast<Instruction>(VMap[Insts[i]])); in TestInsts()
423 Insts.clear(); in TestInsts()
426 Insts.push_back(*I); in TestInsts()
530 std::vector<const Instruction*> Insts; in DebugACrash() local
538 Insts.push_back(I); in DebugACrash()
540 ReduceCrashingInstructions(BD, TestFn).reduceList(Insts, Error); in DebugACrash()
/external/llvm/lib/CodeGen/
DMachineBasicBlock.cpp39 Insts.Parent = this; in MachineBasicBlock()
794 return Insts.erase(I.getInstrIterator(), E.getInstrIterator()); in erase()
797 return Insts.erase(I.getInstrIterator()); in erase()
806 Insts.remove(MI); in remove()
810 return Insts.remove(I); in remove()
818 Insts.splice(where.getInstrIterator(), Other->Insts, in splice()
823 Insts.splice(where.getInstrIterator(), Other->Insts, From.getInstrIterator()); in splice()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1051 AllocaPromoter(const SmallVectorImpl<Instruction*> &Insts, SSAUpdater &S, in AllocaPromoter() argument
1053 : LoadAndStorePromoter(Insts, S), AI(0), DIB(DB) {} in AllocaPromoter()
1055 void run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) { in run() argument
1067 LoadAndStorePromoter::run(Insts); in run()
1082 const SmallVectorImpl<Instruction*> &Insts) const { in isInstInList()
1415 SmallVector<Instruction*, 64> Insts; in performPromotion() local
1438 Insts.push_back(cast<Instruction>(*UI)); in performPromotion()
1439 AllocaPromoter(Insts, SSA, &DIB).run(AI, Insts); in performPromotion()
1440 Insts.clear(); in performPromotion()
DLICM.cpp668 const SmallVectorImpl<Instruction*> &Insts, SSAUpdater &S, in LoopPromoter() argument
673 : LoadAndStorePromoter(Insts, S), SomePtr(SP), in LoopPromoter()
DLoopUnswitch.cpp303 UnswitchedValsMap& Insts = OldLoopProps.UnswitchedVals; in cloneData() local
317 for (UnswitchedValsIt I = Insts.begin(); I != Insts.end(); ++I) { in cloneData()
/external/llvm/lib/Target/X86/AsmParser/
DX86AsmParser.cpp1529 SmallVector<MCInst, 2> Insts; in MatchAndEmitInstruction() local
1531 bool Error = MatchInstruction(IDLoc, Kind, Operands, Insts, in MatchAndEmitInstruction()
1534 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in MatchAndEmitInstruction()
1535 Out.EmitInstruction(Insts[i]); in MatchAndEmitInstruction()