/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX86Base.h | 74 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 …]
|
D | IceCfg.cpp | 587 auto &Insts = PreHeader->getInsts(); in loopInvariantCodeMotion() local 588 auto &LastInst = Insts.back(); in loopInvariantCodeMotion() 589 Insts.pop_back(); in loopInvariantCodeMotion() 610 CfgVector<std::reference_wrapper<Inst>> Insts(Node->getInsts().begin(), in findLoopInvariantInstructions() local 613 for (auto &InstRef : Insts) { in findLoopInvariantInstructions() 776 auto &Insts = Node->getInsts(); in floatConstantCSE() local 784 Insts.insert(Pair.second[0], Assign); in floatConstantCSE() 793 Insts.insert(Pair.second[0], Assign); in floatConstantCSE() 814 uint32_t CombinedAlignment, InstList &Insts, in sortAndCombineAllocas() argument 876 Insts.push_front(Add); in sortAndCombineAllocas() [all …]
|
D | IceCfgNode.cpp | 44 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 …]
|
/external/llvm-project/llvm/lib/FuzzMutate/ |
D | RandomIRBuilder.cpp | 22 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument 23 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource() 27 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument 33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 38 return newSource(BB, Insts, Srcs, Pred); in findOrCreateSource() 41 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument 48 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 …]
|
D | IRMutator.cpp | 107 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/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | RandomIRBuilder.cpp | 22 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument 23 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource() 27 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument 33 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 38 return newSource(BB, Insts, Srcs, Pred); in findOrCreateSource() 41 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument 48 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 …]
|
D | IRMutator.cpp | 107 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/ |
D | MachineBasicBlock.h | 87 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-10.0/llvm/include/llvm/CodeGen/ |
D | MachineBasicBlock.h | 83 Instructions Insts; 187 unsigned size() const { return (unsigned)Insts.size(); } 188 bool empty() const { return Insts.empty(); } 190 MachineInstr &instr_front() { return Insts.front(); } 191 MachineInstr &instr_back() { return Insts.back(); } 192 const MachineInstr &instr_front() const { return Insts.front(); } 193 const MachineInstr &instr_back() const { return Insts.back(); } 195 MachineInstr &front() { return Insts.front(); } 197 const MachineInstr &front() const { return Insts.front(); } 200 instr_iterator instr_begin() { return Insts.begin(); } [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/FuzzMutate/ |
D | RandomIRBuilder.h | 37 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts); 43 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 46 Value *newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 50 void connectToSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V); 52 void newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V); 53 Value *findPointer(BasicBlock &BB, ArrayRef<Instruction *> Insts,
|
/external/llvm-project/llvm/include/llvm/FuzzMutate/ |
D | RandomIRBuilder.h | 37 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts); 43 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 46 Value *newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 50 void connectToSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V); 52 void newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V); 53 Value *findPointer(BasicBlock &BB, ArrayRef<Instruction *> Insts,
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | MachineBasicBlock.h | 113 Instructions Insts; 233 unsigned size() const { return (unsigned)Insts.size(); } 234 bool empty() const { return Insts.empty(); } 236 MachineInstr &instr_front() { return Insts.front(); } 237 MachineInstr &instr_back() { return Insts.back(); } 238 const MachineInstr &instr_front() const { return Insts.front(); } 239 const MachineInstr &instr_back() const { return Insts.back(); } 241 MachineInstr &front() { return Insts.front(); } 243 const MachineInstr &front() const { return Insts.front(); } 246 instr_iterator instr_begin() { return Insts.begin(); } [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | GVNSink.cpp | 122 SmallVector<Instruction *, 4> Insts; member in __anon0e48740a0111::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() 163 II = Insts.erase(II); in restrictToBlocks() 174 for (auto *Inst : Insts) { in operator --() 184 Insts = NewInsts; in operator --() 266 ModelledPHI(ArrayRef<Instruction *> Insts, unsigned OpNum, const BArray &B) { in ModelledPHI() argument [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | GVNSink.cpp | 122 SmallVector<Instruction *, 4> Insts; member in __anon52d731fe0111::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/ |
D | SSAUpdater.cpp | 325 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-10.0/llvm/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 337 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument 339 if (Insts.empty()) return; in LoadAndStorePromoter() 342 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 345 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter() 352 void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) { in run() argument 358 for (Instruction *User : Insts) in run() 367 for (Instruction *User : Insts) { in run() 416 if (!isInstInList(L, Insts)) continue; in run() 432 if (!isInstInList(SI, Insts)) continue; in run() 463 for (Instruction *User : Insts) { in run() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | SSAUpdater.cpp | 332 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument 334 if (Insts.empty()) return; in LoadAndStorePromoter() 337 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 340 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter() 347 void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) { in run() argument 353 for (Instruction *User : Insts) in run() 362 for (Instruction *User : Insts) { in run() 411 if (!isInstInList(L, Insts)) continue; in run() 427 if (!isInstInList(SI, Insts)) continue; in run() 458 for (Instruction *User : Insts) { in run() [all …]
|
/external/llvm/utils/TableGen/ |
D | CodeGenTarget.cpp | 278 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/llvm-project/llvm/lib/Target/Mips/ |
D | MipsAnalyzeImmediate.cpp | 109 void MipsAnalyzeImmediate::GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts) { in GetShortestSeq() argument 124 Insts.clear(); in GetShortestSeq() 125 Insts.append(ShortestSeq->begin(), ShortestSeq->end()); in GetShortestSeq() 154 GetShortestSeq(SeqLs, Insts); in Analyze() 156 return Insts; in Analyze()
|
/external/llvm/lib/Target/Mips/ |
D | MipsAnalyzeImmediate.cpp | 106 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-10.0/llvm/lib/Target/Mips/ |
D | MipsAnalyzeImmediate.cpp | 109 void MipsAnalyzeImmediate::GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts) { in GetShortestSeq() argument 124 Insts.clear(); in GetShortestSeq() 125 Insts.append(ShortestSeq->begin(), ShortestSeq->end()); in GetShortestSeq() 154 GetShortestSeq(SeqLs, Insts); in Analyze() 156 return Insts; in Analyze()
|
/external/llvm-project/llvm/unittests/FuzzMutate/ |
D | RandomIRBuilderTest.cpp | 67 SmallVector<Instruction *, 32> Insts; in TEST() local 69 Insts.push_back(&*I); in TEST() 73 ASSERT_TRUE(Descr.SourcePreds[0].matches(Srcs, Insts[1])); in TEST() 74 Srcs.push_back(Insts[1]); in TEST() 75 ASSERT_TRUE(Descr.SourcePreds[1].matches(Srcs, Insts[1])); in TEST() 76 Srcs.push_back(Insts[1]); in TEST() 81 Value *LastSrc = IB.newSource(BB, Insts, Srcs, Descr.SourcePreds[2]); in TEST()
|
/external/llvm-project/llvm/tools/llvm-mca/ |
D | llvm-mca.cpp | 470 ArrayRef<MCInst> Insts = Region->getInstructions(); in main() local 471 mca::CodeEmitter CE(*STI, *MAB, *MCE, Insts); in main() 473 for (const MCInst &MCI : Insts) { in main() 509 *STI, *MCII, CE, ShowEncoding, Insts, *IP)); in main() 512 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() 527 std::make_unique<mca::SummaryView>(SM, Insts, DispatchWidth)); in main() 531 *STI, *IP, Insts, S.getNumIterations())); in main() 536 *STI, *MCII, CE, ShowEncoding, Insts, *IP)); in main() 552 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() 558 *STI, *IP, Insts, std::min(TimelineIterations, S.getNumIterations()), in main()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | ARMLowOverheadLoops.cpp | 186 SmallVector<MachineInstr *, 4> Insts; member in __anone84e0e190111::VPTState 237 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in getDivergent() local 238 for (unsigned i = 1; i < Insts.size(); ++i) { in getDivergent() 239 MachineInstr *Next = Insts[i]; in getDivergent() 260 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in isEntryPredicatedOnVCTP() local 261 return isPredicatedOnVCTP(Insts.front(), Exclusive); in isEntryPredicatedOnVCTP() 269 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in hasImplicitlyValidVPT() local 270 MachineInstr *VPT = Insts.front(); in hasImplicitlyValidVPT() 314 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in isValid() local 315 for (auto *MI : Insts) { in isValid() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | SSAUpdater.h | 141 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, 150 void run(const SmallVectorImpl<Instruction *> &Insts); 157 const SmallVectorImpl<Instruction *> &Insts) const;
|