| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
| H A D | LoongArchMatInt.cpp | 27 InstSeq Insts; in generateInstSeq() local 31 Insts.push_back(Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12))); in generateInstSeq() 32 return Insts; in generateInstSeq() 37 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq() 39 Insts.push_back(Inst(LoongArch::ADDI_W, SignExtend64<12>(Lo12))); in generateInstSeq() 41 Insts.push_back(Inst(LoongArch::LU12I_W, SignExtend64<20>(Hi20))); in generateInstSeq() 43 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq() 49 Insts.push_back(Inst(LoongArch::LU32I_D, SignExtend64<20>(Higher20))); in generateInstSeq() 53 Insts.push_back(Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12))); in generateInstSeq() 55 size_t N = Insts.size(); in generateInstSeq() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | LockstepReverseIterator.h | 48 SmallVector<Instruction *, 4> Insts; variable 62 Insts.clear(); in reset() 75 Insts.push_back(Prev); in reset() 77 if (Insts.empty()) in reset() 82 ArrayRef<Instruction *> operator*() const { return Insts; } 96 for (auto It = Insts.begin(); It != Insts.end();) { in restrictToBlocks() 99 It = Insts.erase(It); in restrictToBlocks() 110 for (Instruction *Inst : Insts) { 126 Insts = NewInsts; 135 for (Instruction *Inst : Insts) { [all …]
|
| H A D | SSAUpdater.h | 156 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, 165 void run(const SmallVectorImpl<Instruction *> &Insts);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 132 const MCExpr *Symbol, SmallVectorImpl<Inst> &Insts, 868 SmallVectorImpl<Inst> &Insts, in emitLAInstSeq() argument 872 for (LoongArchAsmParser::Inst &Inst : Insts) { in emitLAInstSeq() 958 InstSeq Insts; in emitLoadAddressAbs() local 960 Insts.push_back( in emitLoadAddressAbs() 962 Insts.push_back( in emitLoadAddressAbs() 966 Insts.push_back( in emitLoadAddressAbs() 968 Insts.push_back( in emitLoadAddressAbs() 972 emitLAInstSeq(DestReg, DestReg, Symbol, Insts, IDLoc, Out); in emitLoadAddressAbs() 983 InstSeq Insts; in emitLoadAddressPcrel() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
| H A D | X86InstrMappingEmitter.cpp | 53 void emitCompressEVEXTable(ArrayRef<const CodeGenInstruction *> Insts, 55 void emitNFTransformTable(ArrayRef<const CodeGenInstruction *> Insts, 57 void emitND2NonNDTable(ArrayRef<const CodeGenInstruction *> Insts, 59 void emitSSE2AVXTable(ArrayRef<const CodeGenInstruction *> Insts, 170 ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) { in emitCompressEVEXTable() argument 181 for (const CodeGenInstruction *Inst : Insts) { in emitCompressEVEXTable() 231 const auto &Insts = CompressedInsts[Opcode]; in emitCompressEVEXTable() local 232 auto Match = llvm::find_if(Insts, IsMatch(Inst)); in emitCompressEVEXTable() 233 if (Match != Insts.end()) in emitCompressEVEXTable() 272 ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) { in emitNFTransformTable() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
| H A D | IRMutator.cpp | 159 SmallVector<Instruction *, 32> Insts( in mutate() local 161 if (Insts.size() < 1) in mutate() 165 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate() 167 auto InstsBefore = ArrayRef(Insts).slice(0, IP); in mutate() 168 auto InstsAfter = ArrayRef(Insts).slice(IP); in mutate() 184 if (Value *Op = OpDesc->BuilderFunc(Srcs, Insts[IP]->getIterator())) { in mutate() 487 SmallVector<Instruction *, 32> Insts( in mutate() local 489 if (Insts.size() < 1) in mutate() 493 uint64_t IP = uniform<uint64_t>(IB.Rand, 0, Insts.size() - 1); in mutate() 495 auto InstsBefore = ArrayRef(Insts).slice(0, IP); in mutate() [all …]
|
| H A D | RandomIRBuilder.cpp | 107 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument 108 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource() 161 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument 173 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 232 return newSource(BB, Insts, Srcs, Pred, allowConstant); in findOrCreateSource() 243 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument 251 Value *Ptr = findPointer(BB, Insts); in newSource() 342 ArrayRef<Instruction *> Insts, in connectToSink() argument 369 Sink = findSinkAndConnect(Insts); in connectToSink() 379 return buildTargetLegalStore(V, &I, Insts.back()->getIterator(), in connectToSink() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
| H A D | RandomIRBuilder.h | 73 ArrayRef<Instruction *> Insts); 80 ArrayRef<Instruction *> Insts, 85 LLVM_ABI Value *newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 101 ArrayRef<Instruction *> Insts, Value *V); 103 LLVM_ABI Instruction *newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, 105 LLVM_ABI Value *findPointer(BasicBlock &BB, ArrayRef<Instruction *> Insts);
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineBasicBlock.h | 155 Instructions Insts; 347 unsigned size() const { return (unsigned)Insts.size(); } 349 bool empty() const { return Insts.empty(); } 351 MachineInstr &instr_front() { return Insts.front(); } 352 MachineInstr &instr_back() { return Insts.back(); } 353 const MachineInstr &instr_front() const { return Insts.front(); } 354 const MachineInstr &instr_back() const { return Insts.back(); } 356 MachineInstr &front() { return Insts.front(); } 358 const MachineInstr &front() const { return Insts.front(); } 361 instr_iterator instr_begin() { return Insts.begin(); } [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/SandboxIR/ |
| H A D | Region.cpp | 55 Insts.insert(I); in addImpl() 118 Insts.remove(I); in remove() 124 if (Insts.size() != Other.Insts.size()) in operator ==() 126 if (!std::is_permutation(Insts.begin(), Insts.end(), Other.Insts.begin())) in operator ==() 132 for (auto *I : Insts) in dump()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Region.h | 99 SetVector<Instruction *> Insts; variable 150 bool contains(Instruction *I) const { return Insts.contains(I); } in contains() 152 bool empty() const { return Insts.empty(); } in empty() 160 using iterator = decltype(Insts.begin()); 161 iterator begin() { return Insts.begin(); } in begin() 162 iterator end() { return Insts.end(); } in end()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | GVNSink.cpp | 209 ModelledPHI(ArrayRef<Instruction *> Insts, unsigned OpNum, in ModelledPHI() argument 212 for (auto *I : Insts) in ModelledPHI() 604 auto Insts = *LRI; in analyzeInstructionForSinking() local 606 : Insts) { in analyzeInstructionForSinking() 611 for (auto *I : Insts) { in analyzeInstructionForSinking() 629 for (auto *I : Insts) { in analyzeInstructionForSinking() 800 SmallVector<Instruction *, 4> Insts; in sinkLastInstruction() local 802 Insts.push_back(BB->getTerminator()->getPrevNonDebugInstruction()); in sinkLastInstruction() 803 Instruction *I0 = Insts.front(); in sinkLastInstruction() 807 bool NeedPHI = llvm::any_of(Insts, [&I0, O](const Instruction *I) { in sinkLastInstruction() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mca/ |
| H A D | llvm-mca.cpp | 623 ArrayRef<MCInst> Insts = Region->getInstructions(); in main() local 624 mca::CodeEmitter CE(*STI, *MAB, *MCE, Insts); in main() 631 for (const MCInst &MCI : Insts) { in main() 674 Insts = Region->dropInstructions(DroppedInsts); in main() 677 if (Insts.empty()) in main() 693 std::make_unique<mca::InstructionView>(*STI, *IP, Insts)); in main() 699 *STI, *MCII, CE, ShowEncoding, Insts, *IP, LoweredSequence, in main() 707 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() 752 CB->getStartViews(*IP, Insts); in main() 760 auto IV = std::make_unique<mca::InstructionView>(*STI, *IP, Insts); in main() [all …]
|
| H A D | CodeRegion.h | 104 dropInstructions(const llvm::SmallPtrSetImpl<const llvm::MCInst *> &Insts) { in dropInstructions() argument 105 if (Insts.empty()) in dropInstructions() 107 llvm::erase_if(Instructions, [&Insts](const llvm::MCInst &Inst) { in dropInstructions() 108 return Insts.contains(&Inst); in dropInstructions()
|
| /freebsd/contrib/llvm-project/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
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMLowOverheadLoops.cpp | 180 SmallVector<MachineInstr *, 4> Insts; member in __anona50655620111::VPTBlock 183 VPTBlock(MachineInstr *MI) { Insts.push_back(MI); } in VPTBlock() 192 SmallVectorImpl<MachineInstr *> &Insts = getInsts(); in getDivergent() local 193 for (unsigned i = 1; i < Insts.size(); ++i) { in getDivergent() 194 MachineInstr *Next = Insts[i]; in getDivergent() 202 Insts.push_back(MI); in insert() 204 assert(Insts.size() <= 5 && "Too many instructions in VPT block!"); in insert() 207 bool containsVCTP() const { return llvm::any_of(Insts, isVCTP); } in containsVCTP() 209 unsigned size() const { return Insts.size(); } in size() 210 SmallVectorImpl<MachineInstr *> &getInsts() { return Insts; } in getInsts() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/MCA/ |
| H A D | CustomBehaviour.cpp | 29 llvm::ArrayRef<llvm::MCInst> Insts) { in getStartViews() argument 35 llvm::ArrayRef<llvm::MCInst> Insts) { in getPostInstrInfoViews() argument 41 llvm::ArrayRef<llvm::MCInst> Insts) { in getEndViews() argument
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SSAUpdater.cpp | 376 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument 378 if (Insts.empty()) return; in LoadAndStorePromoter() 381 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 384 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter() 391 void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) { in run() argument 397 for (Instruction *User : Insts) in run() 406 for (Instruction *User : Insts) { in run() 509 for (Instruction *User : Insts) { in run()
|
| H A D | MemoryTaggingSupport.cpp | 30 bool maybeReachableFromEachOther(const SmallVectorImpl<IntrinsicInst *> &Insts, in maybeReachableFromEachOther() argument 34 if (Insts.size() > MaxLifetimes) in maybeReachableFromEachOther() 36 for (size_t I = 0; I < Insts.size(); ++I) { in maybeReachableFromEachOther() 37 for (size_t J = 0; J < Insts.size(); ++J) { in maybeReachableFromEachOther() 40 if (isPotentiallyReachable(Insts[I], Insts[J], nullptr, DT, LI)) in maybeReachableFromEachOther()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
| H A D | CodeGenTarget.cpp | 207 ArrayRef<const Record *> Insts = in ReadInstructions() local 209 if (Insts.size() <= 2) in ReadInstructions() 213 for (const Record *R : Insts) { in ReadInstructions() 222 const DenseMap<const Record *, std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName() argument 226 const auto I = Insts.find(Rec); in GetInstByName() 227 if (!Rec || I == Insts.end()) in GetInstByName()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/MCA/ |
| H A D | CustomBehaviour.h | 109 getStartViews(llvm::MCInstPrinter &IP, llvm::ArrayRef<llvm::MCInst> Insts); 113 llvm::ArrayRef<llvm::MCInst> Insts); 116 getEndViews(llvm::MCInstPrinter &IP, llvm::ArrayRef<llvm::MCInst> Insts);
|
| H A D | HWEventListener.h | 150 HWPressureEvent(GenericReason reason, ArrayRef<InstRef> Insts, 152 : Reason(reason), AffectedInstructions(Insts), ResourceMask(Mask) {} in Reason()
|
| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | CrashDebugger.cpp | 761 std::vector<const Instruction *> &Insts) { in TestInsts() argument 768 for (const Instruction *Inst : Insts) { in TestInsts() 800 Insts.clear(); in TestInsts() 801 llvm::append_range(Insts, Instructions); in TestInsts() 833 bool ReduceCrashingMetadata::TestInsts(std::vector<Instruction *> &Insts) { in TestInsts() argument 840 for (Instruction *I : Insts) in TestInsts() 869 Insts.clear(); in TestInsts() 870 llvm::append_range(Insts, Instructions); in TestInsts() 1068 std::vector<const Instruction *> Insts; in ReduceInsts() local 1073 Insts.push_back(&I); in ReduceInsts() [all …]
|
| /freebsd/contrib/llvm-project/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()
|