/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/ |
H A D | LoongArchMatInt.cpp | 27 InstSeq Insts; in generateInstSeq() local 30 Insts.push_back(Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12))); in generateInstSeq() 31 return Insts; in generateInstSeq() 35 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq() 37 Insts.push_back(Inst(LoongArch::ADDI_W, SignExtend64<12>(Lo12))); in generateInstSeq() 39 Insts.push_back(Inst(LoongArch::LU12I_W, SignExtend64<20>(Hi20))); in generateInstSeq() 41 Insts.push_back(Inst(LoongArch::ORI, Lo12)); in generateInstSeq() 45 Insts.push_back(Inst(LoongArch::LU32I_D, SignExtend64<20>(Higher20))); in generateInstSeq() 48 Insts.push_back(Inst(LoongArch::LU52I_D, SignExtend64<12>(Highest12))); in generateInstSeq() 50 return Insts; in generateInstSeq()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/AsmParser/ |
H A D | LoongArchAsmParser.cpp | 87 const MCExpr *Symbol, SmallVectorImpl<Inst> &Insts, 826 SmallVectorImpl<Inst> &Insts, in emitLAInstSeq() argument 830 for (LoongArchAsmParser::Inst &Inst : Insts) { in emitLAInstSeq() 916 InstSeq Insts; in emitLoadAddressAbs() local 918 Insts.push_back(LoongArchAsmParser::Inst( in emitLoadAddressAbs() 920 Insts.push_back(LoongArchAsmParser::Inst( in emitLoadAddressAbs() 924 Insts.push_back(LoongArchAsmParser::Inst( in emitLoadAddressAbs() 926 Insts.push_back(LoongArchAsmParser::Inst( in emitLoadAddressAbs() 930 emitLAInstSeq(DestReg, DestReg, Symbol, Insts, IDLoc, Out); in emitLoadAddressAbs() 941 InstSeq Insts; in emitLoadAddressPcrel() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/ |
H A D | IRMutator.cpp | 125 SmallVector<Instruction *, 32> Insts; in mutate() local 127 Insts.push_back(&I); in mutate() 128 if (Insts.size() < 1) in mutate() 132 size_t IP = uniform<size_t>(IB.Rand, 0, Insts.size() - 1); in mutate() 134 auto InstsBefore = ArrayRef(Insts).slice(0, IP); in mutate() 135 auto InstsAfter = ArrayRef(Insts).slice(IP); in mutate() 151 if (Value *Op = OpDesc->BuilderFunc(Srcs, Insts[IP])) { in mutate() 398 SmallVector<Instruction *, 32> Insts; in mutate() local 400 Insts.push_back(&I); in mutate() 401 if (Insts.size() < 1) in mutate() [all …]
|
H A D | RandomIRBuilder.cpp | 110 ArrayRef<Instruction *> Insts) { in findOrCreateSource() argument 111 return findOrCreateSource(BB, Insts, {}, anyType()); in findOrCreateSource() 115 ArrayRef<Instruction *> Insts, in findOrCreateSource() argument 127 auto RS = makeSampler(Rand, make_filter_range(Insts, MatchesPred)); in findOrCreateSource() 187 return newSource(BB, Insts, Srcs, Pred, allowConstant); in findOrCreateSource() 198 Value *RandomIRBuilder::newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, in newSource() argument 206 Value *Ptr = findPointer(BB, Insts); in newSource() 291 ArrayRef<Instruction *> Insts, in connectToSink() argument 318 Sink = findSinkAndConnect(Insts); in connectToSink() 328 return new StoreInst(V, &I, Insts.back()); in connectToSink() [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, 171 ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) { in emitCompressEVEXTable() argument 182 for (const CodeGenInstruction *Inst : Insts) { in emitCompressEVEXTable() 271 ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) { in emitNFTransformTable() argument 273 for (const CodeGenInstruction *Inst : Insts) { in emitNFTransformTable() 303 ArrayRef<const CodeGenInstruction *> Insts, raw_ostream &OS) { in emitND2NonNDTable() argument 315 for (const CodeGenInstruction *Inst : Insts) { in emitND2NonNDTable() [all …]
|
H A D | PseudoLoweringEmitter.cpp | 305 std::vector<Record *> Insts = Records.getAllDerivedDefinitions(Classes); in run() local 309 for (unsigned i = 0, e = Insts.size(); i != e; ++i) in run() 310 evaluateExpansion(Insts[i]); in run()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | GVNSink.cpp | 115 SmallVector<Instruction *, 4> Insts; member in __anonac6bc9b30111::LockstepReverseIterator 128 Insts.clear(); in reset() 135 Insts.push_back(BB->getTerminator()->getPrevNonDebugInstruction()); in reset() 137 if (Insts.empty()) in reset() 142 ArrayRef<Instruction *> operator*() const { return Insts; } in operator *() 153 for (auto II = Insts.begin(); II != Insts.end();) { in restrictToBlocks() 156 II = Insts.erase(II); in restrictToBlocks() 167 for (auto *Inst : Insts) { in operator --() 177 Insts = NewInsts; in operator --() 290 ModelledPHI(ArrayRef<Instruction *> Insts, unsigned OpNum, in ModelledPHI() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineBasicBlock.h | 157 Instructions Insts; 324 unsigned size() const { return (unsigned)Insts.size(); } 326 bool empty() const { return Insts.empty(); } 328 MachineInstr &instr_front() { return Insts.front(); } 329 MachineInstr &instr_back() { return Insts.back(); } 330 const MachineInstr &instr_front() const { return Insts.front(); } 331 const MachineInstr &instr_back() const { return Insts.back(); } 333 MachineInstr &front() { return Insts.front(); } 335 const MachineInstr &front() const { return Insts.front(); } 338 instr_iterator instr_begin() { return Insts.begin(); } [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/FuzzMutate/ |
H A D | RandomIRBuilder.h | 70 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts); 76 Value *findOrCreateSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 80 Value *newSource(BasicBlock &BB, ArrayRef<Instruction *> Insts, 95 Instruction *connectToSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, 98 Instruction *newSink(BasicBlock &BB, ArrayRef<Instruction *> Insts, Value *V); 99 Value *findPointer(BasicBlock &BB, ArrayRef<Instruction *> Insts);
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | CodeGenTarget.cpp | 273 std::vector<Record *> Insts = Records.getAllDerivedDefinitions("Instruction"); in ReadInstructions() local 274 if (Insts.size() <= 2) in ReadInstructions() 278 for (Record *R : Insts) { in ReadInstructions() 287 const DenseMap<const Record *, std::unique_ptr<CodeGenInstruction>> &Insts, in GetInstByName() argument 291 const auto I = Insts.find(Rec); in GetInstByName() 292 if (!Rec || I == Insts.end()) in GetInstByName() 309 const auto &Insts = getInstructions(); in ComputeInstrsByEnum() local 311 const CodeGenInstruction *Instr = GetInstByName(*p, Insts, Records); in ComputeInstrsByEnum() 320 for (const auto &I : Insts) { in ComputeInstrsByEnum() 329 assert(InstrsByEnum.size() == Insts.size() && "Missing predefined instr"); in ComputeInstrsByEnum() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SSAUpdater.cpp | 372 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, in LoadAndStorePromoter() argument 374 if (Insts.empty()) return; in LoadAndStorePromoter() 377 if (const LoadInst *LI = dyn_cast<LoadInst>(Insts[0])) in LoadAndStorePromoter() 380 SomeVal = cast<StoreInst>(Insts[0])->getOperand(0); in LoadAndStorePromoter() 387 void LoadAndStorePromoter::run(const SmallVectorImpl<Instruction *> &Insts) { in run() argument 393 for (Instruction *User : Insts) in run() 402 for (Instruction *User : Insts) { in run() 451 if (!isInstInList(L, Insts)) continue; in run() 467 if (!isInstInList(SI, Insts)) continue; in run() 498 for (Instruction *User : Insts) { in run() [all …]
|
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/tools/llvm-mca/ |
H A D | llvm-mca.cpp | 606 ArrayRef<MCInst> Insts = Region->getInstructions(); in main() local 607 mca::CodeEmitter CE(*STI, *MAB, *MCE, Insts); in main() 614 for (const MCInst &MCI : Insts) { in main() 657 Insts = Region->dropInstructions(DroppedInsts); in main() 660 if (Insts.empty()) in main() 676 std::make_unique<mca::InstructionView>(*STI, *IP, Insts)); in main() 682 *STI, *MCII, CE, ShowEncoding, Insts, *IP, LoweredSequence, in main() 686 std::make_unique<mca::ResourcePressureView>(*STI, *IP, Insts)); in main() 731 CB->getStartViews(*IP, Insts); in main() 739 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/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/Target/ARM/ |
H A D | ARMLowOverheadLoops.cpp | 183 SmallVector<MachineInstr *, 4> Insts; member in __anona50655620111::VPTBlock 186 VPTBlock(MachineInstr *MI) { Insts.push_back(MI); } in VPTBlock() 195 SmallVectorImpl<MachineInstr *> &Insts = getInsts(); in getDivergent() local 196 for (unsigned i = 1; i < Insts.size(); ++i) { in getDivergent() 197 MachineInstr *Next = Insts[i]; in getDivergent() 205 Insts.push_back(MI); in insert() 207 assert(Insts.size() <= 5 && "Too many instructions in VPT block!"); in insert() 210 bool containsVCTP() const { return llvm::any_of(Insts, isVCTP); } in containsVCTP() 212 unsigned size() const { return Insts.size(); } in size() 213 SmallVectorImpl<MachineInstr *> &getInsts() { return Insts; } in getInsts() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
H A D | SSAUpdater.h | 156 LoadAndStorePromoter(ArrayRef<const Instruction *> Insts, 165 void run(const SmallVectorImpl<Instruction *> &Insts); 172 const SmallVectorImpl<Instruction *> &Insts) const;
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MCA/ |
H A D | CustomBehaviour.h | 108 getStartViews(llvm::MCInstPrinter &IP, llvm::ArrayRef<llvm::MCInst> Insts); 112 llvm::ArrayRef<llvm::MCInst> Insts); 115 getEndViews(llvm::MCInstPrinter &IP, llvm::ArrayRef<llvm::MCInst> Insts);
|
H A D | HWEventListener.h | 149 HWPressureEvent(GenericReason reason, ArrayRef<InstRef> Insts, 151 : Reason(reason), AffectedInstructions(Insts), ResourceMask(Mask) {} in Reason()
|
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | CrashDebugger.cpp | 764 std::vector<const Instruction *> &Insts) { in TestInsts() argument 771 for (unsigned i = 0, e = Insts.size(); i != e; ++i) { in TestInsts() 772 assert(!Insts[i]->isTerminator()); in TestInsts() 773 Instructions.insert(cast<Instruction>(VMap[Insts[i]])); in TestInsts() 803 Insts.clear(); in TestInsts() 805 Insts.push_back(Inst); in TestInsts() 837 bool ReduceCrashingMetadata::TestInsts(std::vector<Instruction *> &Insts) { in TestInsts() argument 844 for (Instruction *I : Insts) in TestInsts() 873 Insts.clear(); in TestInsts() 875 Insts.push_back(I); in TestInsts() [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()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 432 MCRegister DestReg, SmallVectorImpl<MCInst> &Insts) { in generateMCInstSeq() argument 439 Insts.push_back(MCInstBuilder(Inst.getOpcode()) in generateMCInstSeq() 444 Insts.push_back(MCInstBuilder(Inst.getOpcode()) in generateMCInstSeq() 450 Insts.push_back(MCInstBuilder(Inst.getOpcode()) in generateMCInstSeq() 456 Insts.push_back(MCInstBuilder(Inst.getOpcode()) in generateMCInstSeq()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64A57FPLoadBalancing.cpp | 192 std::set<MachineInstr*> Insts; 206 Insts.insert(MI); in Chain() 219 Insts.insert(MI); in add() 223 bool contains(MachineInstr &MI) { return Insts.count(&MI) > 0; } 227 return Insts.size(); in size() 193 std::set<MachineInstr*> Insts; global() member in __anon820378290211::Chain
|