Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/X86/
DTargetTest.cpp47 const auto Insts = ExegesisTarget_->setRegToConstant(*STI, llvm::X86::EAX); in TEST_F() local
48 EXPECT_THAT(Insts, SizeIs(1)); in TEST_F()
49 EXPECT_EQ(Insts[0].getOpcode(), llvm::X86::MOV32ri); in TEST_F()
50 EXPECT_EQ(Insts[0].getOperand(0).getReg(), llvm::X86::EAX); in TEST_F()
56 const auto Insts = ExegesisTarget_->setRegToConstant(*STI, llvm::X86::XMM1); in TEST_F() local
57 EXPECT_THAT(Insts, SizeIs(7U)); in TEST_F()
58 EXPECT_EQ(Insts[0].getOpcode(), llvm::X86::SUB64ri8); in TEST_F()
59 EXPECT_EQ(Insts[1].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
60 EXPECT_EQ(Insts[2].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
61 EXPECT_EQ(Insts[3].getOpcode(), llvm::X86::MOV32mi); in TEST_F()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
DMachineBasicBlock.h64 Instructions Insts;
136 unsigned size() const { return (unsigned)Insts.size(); }
137 bool empty() const { return Insts.empty(); }
139 MachineInstr& front() { return Insts.front(); }
140 MachineInstr& back() { return Insts.back(); }
141 const MachineInstr& front() const { return Insts.front(); }
142 const MachineInstr& back() const { return Insts.back(); }
144 iterator begin() { return Insts.begin(); }
145 const_iterator begin() const { return Insts.begin(); }
146 iterator end() { return Insts.end(); }
[all …]
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX86Base.h74 using InstX86Br = typename Traits::Insts::Br;
75 using InstX86FakeRMW = typename Traits::Insts::FakeRMW;
76 using InstX86Label = typename Traits::Insts::Label;
100 return Traits::Insts::Movp::create(Func, Dest, SrcVar); in createLoweredMove()
102 return Traits::Insts::Mov::create(Func, Dest, SrcVar); in createLoweredMove()
518 Context.insert<typename Traits::Insts::Adc>(Dest, Src0); in _adc()
522 Context.insert<typename Traits::Insts::AdcRMW>(DestSrc0, Src1); in _adc_rmw()
526 Context.insert<typename Traits::Insts::Add>(Dest, Src0); in _add()
530 Context.insert<typename Traits::Insts::AddRMW>(DestSrc0, Src1); in _add_rmw()
534 Context.insert<typename Traits::Insts::Addps>(Dest, Src0); in _addps()
[all …]
DIceCfgNode.cpp44 if (!Insts.empty()) { in appendInst()
50 Insts.push_back(Instr); in appendInst()
88 removeDeletedAndRenumber(&Insts, Func); in renumberInstructions()
103 assert(!Insts.empty()); in computeSuccessors()
104 OutEdges = Insts.rbegin()->getTerminatorEdges(); in computeSuccessors()
168 Insts.insert(Insts.begin(), Phi->lower(Func)); in placePhiLoads()
184 InstList::iterator InsertionPoint = Insts.end(); in placePhiStores()
188 assert(InsertionPoint != Insts.begin()); in placePhiStores()
243 if (InsertionPoint != Insts.begin()) { in placePhiStores()
266 Insts.insert(SafeInsertionPoint, NewInst); in placePhiStores()
[all …]
DIceCfg.cpp684 auto &Insts = PreHeader->getInsts(); in loopInvariantCodeMotion() local
685 auto &LastInst = Insts.back(); in loopInvariantCodeMotion()
686 Insts.pop_back(); in loopInvariantCodeMotion()
707 CfgVector<std::reference_wrapper<Inst>> Insts(Node->getInsts().begin(), in findLoopInvariantInstructions() local
710 for (auto &InstRef : Insts) { in findLoopInvariantInstructions()
873 auto &Insts = Node->getInsts(); in floatConstantCSE() local
881 Insts.insert(Pair.second[0], Assign); in floatConstantCSE()
890 Insts.insert(Pair.second[0], Assign); in floatConstantCSE()
911 uint32_t CombinedAlignment, InstList &Insts, in sortAndCombineAllocas() argument
973 Insts.push_front(Add); in sortAndCombineAllocas()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/
DRandomIRBuilder.cpp23 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument
24 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource()
28 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument
34 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource()
39 return newSource(BB, Insts, Srcs, Pred); in findOrCreateSource()
42 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument
49 Value *Ptr = findPointer(BB, Insts, Srcs, Pred); in newSource()
96 ArrayRef<Instruction *> Insts, Value *V) { in connectToSink() argument
98 for (auto &I : Insts) { in connectToSink()
117 newSink(BB, Insts, V); in connectToSink()
[all …]
DIRMutator.cpp107 SmallVector<Instruction *, 32> Insts; in mutate() local
109 Insts.push_back(&*I); in mutate()
110 if (Insts.size() < 1) in mutate()
114 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate()
116 auto InstsBefore = makeArrayRef(Insts).slice(0, IP); in mutate()
117 auto InstsAfter = makeArrayRef(Insts).slice(IP); in mutate()
133 if (Value *Op = OpDesc->BuilderFunc(Srcs, Insts[IP])) { in mutate()
/external/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h87 Instructions Insts;
174 unsigned size() const { return (unsigned)Insts.size(); }
175 bool empty() const { return Insts.empty(); }
177 MachineInstr &instr_front() { return Insts.front(); }
178 MachineInstr &instr_back() { return Insts.back(); }
179 const MachineInstr &instr_front() const { return Insts.front(); }
180 const MachineInstr &instr_back() const { return Insts.back(); }
182 MachineInstr &front() { return Insts.front(); }
184 const MachineInstr &front() const { return Insts.front(); }
187 instr_iterator instr_begin() { return Insts.begin(); }
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/CodeGen/
DMachineBasicBlock.h84 Instructions Insts;
177 unsigned size() const { return (unsigned)Insts.size(); }
178 bool empty() const { return Insts.empty(); }
180 MachineInstr &instr_front() { return Insts.front(); }
181 MachineInstr &instr_back() { return Insts.back(); }
182 const MachineInstr &instr_front() const { return Insts.front(); }
183 const MachineInstr &instr_back() const { return Insts.back(); }
185 MachineInstr &front() { return Insts.front(); }
187 const MachineInstr &front() const { return Insts.front(); }
190 instr_iterator instr_begin() { return Insts.begin(); }
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/FuzzMutate/
DRandomIRBuilder.h38 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts);
44 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts,
47 Value *newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts,
51 void connectToSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V);
53 void newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V);
54 Value *findPointer(BasicBlock &BB, ArrayRef<Instruction *> Insts,
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DGVNSink.cpp122 SmallVector<Instruction *, 4> Insts; member in __anon926b4d560111::LockstepReverseIterator
135 Insts.clear(); in reset()
142 Insts.push_back(BB->getTerminator()->getPrevNode()); in reset()
144 if (Insts.empty()) in reset()
149 ArrayRef<Instruction *> operator*() const { return Insts; } in operator *()
160 for (auto II = Insts.begin(); II != Insts.end();) { in restrictToBlocks()
164 II = Insts.erase(II); in restrictToBlocks()
175 for (auto *Inst : Insts) { in operator --()
185 Insts = NewInsts; in operator --()
267 ModelledPHI(ArrayRef<Instruction *> Insts, unsigned OpNum, const BArray &B) { in ModelledPHI() argument
[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 …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DSSAUpdater.cpp360 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts, in LoadAndStorePromoter() argument
362 if (Insts.empty()) return; in LoadAndStorePromoter()
365 if (LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
368 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
377 run(const SmallVectorImpl<Instruction*> &Insts) const { in run()
384 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
385 Instruction *User = Insts[i]; in run()
395 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in run()
396 Instruction *User = Insts[i]; in run()
445 if (!isInstInList(L, Insts)) continue; in run()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DSSAUpdater.h126 LoadAndStorePromoter(const SmallVectorImpl<Instruction*> &Insts,
133 void run(const SmallVectorImpl<Instruction*> &Insts) const;
140 const SmallVectorImpl<Instruction*> &Insts) const { in isInstInList() argument
141 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in isInstInList()
142 if (Insts[i] == I) in isInstInList()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSSAUpdater.cpp338 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument
340 if (Insts.empty()) return; in LoadAndStorePromoter()
343 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter()
346 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter()
354 run(const SmallVectorImpl<Instruction *> &Insts) const { in run()
360 for (Instruction *User : Insts) in run()
369 for (Instruction *User : Insts) { in run()
418 if (!isInstInList(L, Insts)) continue; in run()
434 if (!isInstInList(SI, Insts)) continue; in run()
465 for (Instruction *User : Insts) { in run()
[all …]
/external/swiftshader/third_party/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/swiftshader/third_party/LLVM/utils/TableGen/
DCodeGenTarget.cpp218 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local
219 if (Insts.size() <= 2) in ReadInstructions()
223 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions()
224 Instructions[Insts[i]] = new CodeGenInstruction(Insts[i]); in ReadInstructions()
229 const DenseMap<const Record*, CodeGenInstruction*> &Insts, in GetInstByName() argument
234 I = Insts.find(Rec); in GetInstByName()
235 if (Rec == 0 || I == Insts.end()) in GetInstByName()
272 const DenseMap<const Record*, CodeGenInstruction*> &Insts = getInstructions(); in ComputeInstrsByEnum() local
274 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
282 I = Insts.begin(), E = Insts.end(); I != E; ++I) { in ComputeInstrsByEnum()
[all …]
DCodeEmitterGen.cpp33 void CodeEmitterGen::reverseBits(std::vector<Record*> &Insts) { in reverseBits() argument
34 for (std::vector<Record*>::iterator I = Insts.begin(), E = Insts.end(); in reverseBits()
212 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in run() local
215 if (Target.isLittleEndianEncoding()) reverseBits(Insts); in run()
261 for (std::vector<Record*>::iterator IC = Insts.begin(), EC = Insts.end(); in run()
/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()
307 const auto &Insts = getInstructions(); in ComputeInstrsByEnum() local
309 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
316 for (const auto &I : Insts) { in ComputeInstrsByEnum()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DRandomIRBuilderTest.cpp68 SmallVector<Instruction *, 32> Insts; in TEST() local
70 Insts.push_back(&*I); in TEST()
74 ASSERT_TRUE(Descr.SourcePreds[0].matches(Srcs, Insts[1])); in TEST()
75 Srcs.push_back(Insts[1]); in TEST()
76 ASSERT_TRUE(Descr.SourcePreds[1].matches(Srcs, Insts[1])); in TEST()
77 Srcs.push_back(Insts[1]); in TEST()
82 Value *LastSrc = IB.newSource(BB, Insts, Srcs, Descr.SourcePreds[2]); in TEST()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Mips/
DMipsAnalyzeImmediate.cpp110 void MipsAnalyzeImmediate::GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts) { in GetShortestSeq() argument
125 Insts.clear(); in GetShortestSeq()
126 Insts.append(ShortestSeq->begin(), ShortestSeq->end()); in GetShortestSeq()
155 GetShortestSeq(SeqLs, Insts); in Analyze()
157 return Insts; in Analyze()
/external/swiftshader/third_party/llvm-7.0/llvm/utils/TableGen/
DCodeGenTarget.cpp330 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local
331 if (Insts.size() <= 2) in ReadInstructions()
335 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions()
336 Instructions[Insts[i]] = llvm::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions()
342 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName() argument
346 const auto I = Insts.find(Rec); in GetInstByName()
347 if (!Rec || I == Insts.end()) in GetInstByName()
364 const auto &Insts = getInstructions(); in ComputeInstrsByEnum() local
366 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum()
375 for (const auto &I : Insts) { in ComputeInstrsByEnum()
[all …]
/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;
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DSSAUpdater.h142 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts,
151 void run(const SmallVectorImpl<Instruction *> &Insts) const;
158 const SmallVectorImpl<Instruction *> &Insts) const;

1234