| /netbsd-src/external/apache2/llvm/dist/llvm/lib/FuzzMutate/ |
| H A 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 …]
|
| H A 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
| H A D | MachineBasicBlock.h | 113 Instructions Insts; 239 unsigned size() const { return (unsigned)Insts.size(); } 240 bool empty() const { return Insts.empty(); } 242 MachineInstr &instr_front() { return Insts.front(); } 243 MachineInstr &instr_back() { return Insts.back(); } 244 const MachineInstr &instr_front() const { return Insts.front(); } 245 const MachineInstr &instr_back() const { return Insts.back(); } 247 MachineInstr &front() { return Insts.front(); } 249 const MachineInstr &front() const { return Insts.front(); } 252 instr_iterator instr_begin() { return Insts.begin(); } [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | GVNSink.cpp | 122 SmallVector<Instruction *, 4> Insts; member in __anonf1d6865e0111::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 …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/FuzzMutate/ |
| H A 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,
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | SSAUpdater.cpp | 322 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument 324 if (Insts.empty()) return; in LoadAndStorePromoter() 327 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 330 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter() 337 void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) { in run() argument 343 for (Instruction *User : Insts) in run() 352 for (Instruction *User : Insts) { in run() 401 if (!isInstInList(L, Insts)) continue; in run() 417 if (!isInstInList(SI, Insts)) continue; in run() 448 for (Instruction *User : Insts) { in run() [all …]
|
| H A D | SimplifyCFG.cpp | 1665 ArrayRef<Instruction *> Insts, in canSinkInstructions() argument 1670 bool HasUse = !Insts.front()->user_empty(); in canSinkInstructions() 1671 for (auto *I : Insts) { in canSinkInstructions() 1697 const Instruction *I0 = Insts.front(); in canSinkInstructions() 1698 for (auto *I : Insts) in canSinkInstructions() 1709 if (!all_of(Insts, [&PNUse,&Succ](const Instruction *I) -> bool { in canSinkInstructions() 1728 if (isa<StoreInst>(I0) && any_of(Insts, [](const Instruction *I) { in canSinkInstructions() 1732 if (isa<LoadInst>(I0) && any_of(Insts, [](const Instruction *I) { in canSinkInstructions() 1736 if (isLifeTimeMarker(I0) && any_of(Insts, [](const Instruction *I) { in canSinkInstructions() 1749 bool HaveIndirectCalls = any_of(Insts, IsIndirectCall); in canSinkInstructions() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | ARMLowOverheadLoops.cpp | 185 SmallVector<MachineInstr *, 4> Insts; member in __anonf568b4ed0111::VPTState 236 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in getDivergent() local 237 for (unsigned i = 1; i < Insts.size(); ++i) { in getDivergent() 238 MachineInstr *Next = Insts[i]; in getDivergent() 259 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in isEntryPredicatedOnVCTP() local 260 return isPredicatedOnVCTP(Insts.front(), Exclusive); in isEntryPredicatedOnVCTP() 268 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in hasImplicitlyValidVPT() local 269 MachineInstr *VPT = Insts.front(); in hasImplicitlyValidVPT() 313 SmallVectorImpl<MachineInstr *> &Insts = Block.getInsts(); in isValid() local 316 assert(isVPTOpcode(Insts.front()->getOpcode()) && in isValid() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
| H A 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()
|
| H A D | MipsAnalyzeImmediate.h | 57 void GetShortestSeq(InstSeqLs &SeqLs, InstSeq &Insts); 61 InstSeq Insts; variable
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 499 ArrayRef<MCInst> Insts = Region->getInstructions(); in main() local 500 mca::CodeEmitter CE(*STI, *MAB, *MCE, Insts); in main() 502 for (const MCInst &MCI : Insts) { in main() 538 *STI, *MCII, CE, ShowEncoding, Insts, *IP)); in main() 541 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() 559 std::make_unique<mca::InstructionView>(*STI, *IP, Insts, MCPU)); in main() 563 std::make_unique<mca::SummaryView>(SM, Insts, DispatchWidth)); in main() 572 *STI, *IP, Insts, S.getNumIterations())); in main() 577 *STI, *MCII, CE, ShowEncoding, Insts, *IP)); in main() 593 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/TableGen/ |
| H A D | CodeGenTarget.cpp | 437 std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local 438 if (Insts.size() <= 2) in ReadInstructions() 442 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in ReadInstructions() 443 Instructions[Insts[i]] = std::make_unique<CodeGenInstruction>(Insts[i]); in ReadInstructions() 449 std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName() argument 453 const auto I = Insts.find(Rec); in GetInstByName() 454 if (!Rec || I == Insts.end()) in GetInstByName() 471 const auto &Insts = getInstructions(); in ComputeInstrsByEnum() local 473 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum() 482 for (const auto &I : Insts) { in ComputeInstrsByEnum() [all …]
|
| H A D | PseudoLoweringEmitter.cpp | 302 std::vector<Record *> Insts = in run() local 307 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in run() 308 evaluateExpansion(Insts[i]); in run()
|
| H A D | AsmWriterEmitter.cpp | 109 static void EmitInstructions(std::vector<AsmWriterInst> &Insts, in EmitInstructions() argument 111 AsmWriterInst FirstInst = Insts.back(); in EmitInstructions() 112 Insts.pop_back(); in EmitInstructions() 116 for (unsigned i = Insts.size(); i != 0; --i) { in EmitInstructions() 117 unsigned DiffOp = Insts[i-1].MatchesAllButOneOp(FirstInst); in EmitInstructions() 125 SimilarInsts.push_back(Insts[i-1]); in EmitInstructions() 126 Insts.erase(Insts.begin()+i-1); in EmitInstructions()
|
| H A D | CodeBeadsGen.cpp | 45 std::vector<Record *> Insts = Records.getAllDerivedDefinitions("Instruction"); in run() local
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/ |
| H A D | SSAUpdater.h | 141 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, 150 void run(const SmallVectorImpl<Instruction *> &Insts); 157 const SmallVectorImpl<Instruction *> &Insts) const;
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/bugpoint/ |
| H A D | CrashDebugger.cpp | 770 std::vector<const Instruction *> &Insts) { in TestInsts() argument 777 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in TestInsts() 778 assert(!Insts[i]->isTerminator()); in TestInsts() 779 Instructions.insert(cast<Instruction>(VMap[Insts[i]])); in TestInsts() 812 Insts.clear(); in TestInsts() 814 Insts.push_back(Inst); in TestInsts() 846 bool ReduceCrashingMetadata::TestInsts(std::vector<Instruction *> &Insts) { in TestInsts() argument 853 for (Instruction *I : Insts) in TestInsts() 884 Insts.clear(); in TestInsts() 886 Insts.push_back(I); in TestInsts() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MCA/ |
| H A D | HWEventListener.h | 144 HWPressureEvent(GenericReason reason, ArrayRef<InstRef> Insts, 146 : Reason(reason), AffectedInstructions(Insts), ResourceMask(Mask) {} in Reason()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/MCA/Stages/ |
| H A D | ExecuteStage.cpp | 131 SmallVector<InstRef, 8> Insts; in cycleEnd() local 132 uint64_t Mask = HWS.analyzeResourcePressure(Insts); in cycleEnd() 137 HWPressureEvent Ev(HWPressureEvent::RESOURCES, Insts, Mask); in cycleEnd()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
| H A D | AArch64A57FPLoadBalancing.cpp | 193 std::set<MachineInstr*> Insts; member in __anon057f01740211::Chain 207 Insts.insert(MI); in Chain() 220 Insts.insert(MI); in add() 224 bool contains(MachineInstr &MI) { return Insts.count(&MI) > 0; } in contains() 228 return Insts.size(); in size()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
| H A D | MachinePipeliner.cpp | 2538 std::deque<SUnit *> &Insts) { in orderDependence() argument 2548 for (std::deque<SUnit *>::iterator I = Insts.begin(), E = Insts.end(); I != E; in orderDependence() 2643 SUnit *UseSU = Insts.at(MoveUse); in orderDependence() 2644 SUnit *DefSU = Insts.at(MoveDef); in orderDependence() 2646 Insts.erase(Insts.begin() + MoveUse); in orderDependence() 2647 Insts.erase(Insts.begin() + MoveDef); in orderDependence() 2649 Insts.erase(Insts.begin() + MoveDef); in orderDependence() 2650 Insts.erase(Insts.begin() + MoveUse); in orderDependence() 2652 orderDependence(SSD, UseSU, Insts); in orderDependence() 2653 orderDependence(SSD, SU, Insts); in orderDependence() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/MCA/HardwareUnits/ |
| H A D | Scheduler.cpp | 243 uint64_t Scheduler::analyzeResourcePressure(SmallVectorImpl<InstRef> &Insts) { in analyzeResourcePressure() argument 244 llvm::append_range(Insts, ReadySet); in analyzeResourcePressure()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Legalizer.cpp | 120 LegalizerWorkListManager(InstListTy &Insts, ArtifactListTy &Arts) in LegalizerWorkListManager() argument 121 : InstList(Insts), ArtifactList(Arts) {} in LegalizerWorkListManager()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/lib/ |
| H A D | Assembler.h | 51 void addInstructions(ArrayRef<MCInst> Insts, const DebugLoc &DL = DebugLoc());
|
| H A D | Assembler.cpp | 118 void BasicBlockFiller::addInstructions(ArrayRef<MCInst> Insts, in addInstructions() argument 120 for (const MCInst &Inst : Insts) in addInstructions()
|