Home
last modified time | relevance | path

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

12

/external/llvm/lib/Target/Sparc/
DSparcJITInfo.cpp126 SmallVectorImpl<uint32_t> &Insts) { in emitInstrForIndirectJump() argument
131 Insts.push_back(JMP_INST(0, LO10(Addr), scratch)); in emitInstrForIndirectJump()
132 Insts.push_back(NOP_INST); in emitInstrForIndirectJump()
140 Insts.push_back(SETHI_INST(HI22(Addr), scratch)); in emitInstrForIndirectJump()
141 Insts.push_back(JMP_INST(scratch, LO10(Addr), scratch)); in emitInstrForIndirectJump()
142 Insts.push_back(SUB_INST(scratch, 4, scratch)); in emitInstrForIndirectJump()
151 Insts.push_back(SETHI_INST(HIX22(Addr), scratch)); in emitInstrForIndirectJump()
152 Insts.push_back(XOR_INST(scratch, LOX10(Addr), scratch)); in emitInstrForIndirectJump()
153 Insts.push_back(JMP_INST(scratch, 0, scratch)); in emitInstrForIndirectJump()
154 Insts.push_back(SUB_INST(scratch, 8, scratch)); in emitInstrForIndirectJump()
[all …]
/external/llvm/lib/MC/MCAnalysis/
DMCAtom.cpp80 Insts.push_back(MCDecodedInst(I, NextInstAddress, Size)); in addInst()
87 InstListTy::iterator I = Insts.begin(); in truncate()
88 while (I != Insts.end() && I->Address <= TruncPt) ++I; in truncate()
90 assert(I != Insts.end() && "Truncation point not found in disassembly!"); in truncate()
94 Insts.erase(I, Insts.end()); in truncate()
104 InstListTy::iterator I = Insts.begin(); in split()
105 while (I != Insts.end() && I->Address < SplitPt) ++I; in split()
106 assert(I != Insts.end() && "Split point not found in disassembly!"); in split()
110 std::copy(I, Insts.end(), std::back_inserter(RightAtom->Insts)); in split()
111 Insts.erase(I, Insts.end()); in split()
DMCFunction.cpp42 MCBasicBlock::MCBasicBlock(const MCTextAtom &Insts, MCFunction *Parent) in MCBasicBlock() argument
43 : Insts(&Insts), Parent(Parent) { in MCBasicBlock()
44 getParent()->getParent()->trackBBForAtom(&Insts, this); in MCBasicBlock()
68 assert(Insts->getEndAddr() + 1 == SplitBB->Insts->getBeginAddr() && in splitBasicBlock()
DMCModuleYAML.cpp104 std::vector<Inst> Insts; member
187 IO.mapRequired("Content", A.Insts); in mapping()
317 A.Insts.resize(InstCount); in dumpAtom()
320 A.Insts[i].Opcode = MCDI.Inst.getOpcode(); in dumpAtom()
321 A.Insts[i].Size = MCDI.Size; in dumpAtom()
323 A.Insts[i].Operands.resize(OpCount); in dumpAtom()
325 A.Insts[i].Operands[oi].MCOp = MCDI.Inst.getOperand(oi); in dumpAtom()
377 for (InstIt II = AI->Insts.begin(), IE = AI->Insts.end(); II != IE; in parse()
/external/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h64 Instructions Insts;
219 unsigned size() const { return (unsigned)Insts.size(); }
220 bool empty() const { return Insts.empty(); }
222 MachineInstr &instr_front() { return Insts.front(); }
223 MachineInstr &instr_back() { return Insts.back(); }
224 const MachineInstr &instr_front() const { return Insts.front(); }
225 const MachineInstr &instr_back() const { return Insts.back(); }
227 MachineInstr &front() { return Insts.front(); }
229 const MachineInstr &front() const { return Insts.front(); }
232 instr_iterator instr_begin() { return Insts.begin(); }
[all …]
/external/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp324 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts, in LoadAndStorePromoter() argument
326 if (Insts.empty()) return; in LoadAndStorePromoter()
329 if (LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
332 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
341 run(const SmallVectorImpl<Instruction*> &Insts) const { in run()
348 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
349 Instruction *User = Insts[i]; in run()
359 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
360 Instruction *User = Insts[i]; in run()
409 if (!isInstInList(L, Insts)) continue; in run()
[all …]
/external/llvm/include/llvm/MC/MCAnalysis/
DMCAtom.h126 InstListTy Insts; variable
138 const_iterator begin() const { return Insts.begin(); } in begin()
139 const_iterator end() const { return Insts.end(); } in end()
141 const MCDecodedInst &back() const { return Insts.back(); } in back()
142 const MCDecodedInst &at(size_t n) const { return Insts.at(n); } in at()
143 size_t size() const { return Insts.size(); } in size()
DMCFunction.h35 const MCTextAtom *Insts; variable
40 MCBasicBlock(const MCTextAtom &Insts, MCFunction *Parent);
51 const MCTextAtom *getInsts() const { return Insts; } in getInsts()
103 MCBasicBlock &createBlock(const MCTextAtom &Insts);
/external/llvm/utils/TableGen/
DCodeGenTarget.cpp273 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local
274 if (Insts.size() <= 2) in ReadInstructions()
278 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions()
279 Instructions[Insts[i]] = new CodeGenInstruction(Insts[i]); in ReadInstructions()
284 const DenseMap<const Record*, CodeGenInstruction*> &Insts, in GetInstByName() argument
289 I = Insts.find(Rec); in GetInstByName()
290 if (!Rec || I == Insts.end()) in GetInstByName()
305 const DenseMap<const Record*, CodeGenInstruction*> &Insts = getInstructions(); in ComputeInstrsByEnum() local
307 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
315 I = Insts.begin(), E = Insts.end(); I != E; ++I) { in ComputeInstrsByEnum()
[all …]
DPseudoLoweringEmitter.cpp279 std::vector<Record*> Insts; in run() local
284 Insts.push_back(I->second); in run()
288 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in run()
289 evaluateExpansion(Insts[i]); in run()
DCodeEmitterGen.cpp236 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in run() local
284 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.cpp344 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
349 : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), Filters(), in FilterChooser()
357 FilterChooser(const std::vector<const CodeGenInstruction*> &Insts, in FilterChooser() argument
362 : 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.h138 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts,
147 void run(const SmallVectorImpl<Instruction*> &Insts) const;
154 const SmallVectorImpl<Instruction*> &Insts) const;
/external/llvm/tools/bugpoint/
DCrashDebugger.cpp380 &Insts) { in TestInsts() argument
387 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in TestInsts()
388 assert(!isa<TerminatorInst>(Insts[i])); in TestInsts()
389 Instructions.insert(cast<Instruction>(VMap[Insts[i]])); in TestInsts()
422 Insts.clear(); in TestInsts()
425 Insts.push_back(*I); in TestInsts()
529 std::vector<const Instruction*> Insts; in DebugACrash() local
537 Insts.push_back(I); in DebugACrash()
539 ReduceCrashingInstructions(BD, TestFn).reduceList(Insts, Error); in DebugACrash()
/external/llvm/lib/Target/AArch64/
DAArch64A57FPLoadBalancing.cpp179 std::set<MachineInstr*> Insts; member in __anone496b3220111::Chain
193 Insts.insert(MI); in Chain()
206 Insts.insert(MI); in add()
210 bool contains(MachineInstr *MI) { return Insts.count(MI) > 0; } in contains()
214 return Insts.size(); in size()
DAArch64AddressTypePromotion.cpp381 Instructions &Insts = Entry.second; in mergeSExts() local
383 for (Instruction *Inst : Insts) { in mergeSExts()
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp1059 AllocaPromoter(const SmallVectorImpl<Instruction*> &Insts, SSAUpdater &S, in AllocaPromoter() argument
1061 : LoadAndStorePromoter(Insts, S), AI(nullptr), DIB(DB) {} in AllocaPromoter()
1063 void run(AllocaInst *AI, const SmallVectorImpl<Instruction*> &Insts) { in run() argument
1074 LoadAndStorePromoter::run(Insts); in run()
1089 const SmallVectorImpl<Instruction*> &Insts) const override { in isInstInList()
1414 SmallVector<Instruction*, 64> Insts; in performPromotion() local
1436 Insts.push_back(cast<Instruction>(U)); in performPromotion()
1437 AllocaPromoter(Insts, SSA, &DIB).run(AI, Insts); in performPromotion()
1438 Insts.clear(); in performPromotion()
DSROA.cpp812 AllocaPromoter(const SmallVectorImpl<Instruction *> &Insts, SSAUpdater &S, in AllocaPromoter() argument
814 : LoadAndStorePromoter(Insts, S), AI(AI), DIB(DIB) {} in AllocaPromoter()
816 void run(const SmallVectorImpl<Instruction*> &Insts) { in run() argument
827 LoadAndStorePromoter::run(Insts); in run()
838 const SmallVectorImpl<Instruction*> &Insts) const override { in isInstInList()
3548 SmallVector<Instruction *, 64> Insts; in promoteAllocas() local
3557 Insts.clear(); in promoteAllocas()
3582 Insts.push_back(LI); in promoteAllocas()
3587 Insts.push_back(SI); in promoteAllocas()
3597 AllocaPromoter(Insts, SSA, *AI, DIB).run(Insts); in promoteAllocas()
DLoopUnswitch.cpp301 UnswitchedValsMap &Insts = OldLoopProps.UnswitchedVals; in cloneData() local
315 for (UnswitchedValsIt I = Insts.begin(); I != Insts.end(); ++I) { in cloneData()
DLICM.cpp712 LoopPromoter(Value *SP, const SmallVectorImpl<Instruction *> &Insts, in LoopPromoter() argument
718 : LoadAndStorePromoter(Insts, S), SomePtr(SP), PointerMustAliases(PMA), in LoopPromoter()
/external/llvm/lib/CodeGen/
DMachineBasicBlock.cpp43 Insts.Parent = this; in MachineBasicBlock()
978 return Insts.erase(I); in erase()
985 return Insts.remove(MI); in remove_instr()
997 return Insts.insert(I, MI); in insert()
DMachineFunction.cpp91 I->Insts.clearAndLeakNodesUnsafely(); in ~MachineFunction()

12