Home
last modified time | relevance | path

Searched refs:InstrDesc (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/MCA/
H A DInstrBuilder.h67 DenseMap<unsigned short, std::unique_ptr<const InstrDesc>> Descriptors;
68 DenseMap<const MCInst *, std::unique_ptr<const InstrDesc>> VariantDescriptors;
74 llvm::function_ref<Instruction *(const InstrDesc &)>;
77 Expected<const InstrDesc &> createInstrDescImpl(const MCInst &MCI);
78 Expected<const InstrDesc &> getOrCreateInstrDesc(const MCInst &MCI);
83 void populateWrites(InstrDesc &ID, const MCInst &MCI, unsigned SchedClassID);
84 void populateReads(InstrDesc &ID, const MCInst &MCI, unsigned SchedClassID);
85 Error verifyInstrDesc(const InstrDesc &ID, const MCInst &MCI) const;
H A DInstruction.h447 struct InstrDesc { struct
487 InstrDesc() = default; argument
488 InstrDesc(const InstrDesc &Other) = delete;
489 InstrDesc &operator=(const InstrDesc &Other) = delete; argument
497 const InstrDesc &Desc;
531 InstructionBase(const InstrDesc &D, const unsigned Opcode) in InstructionBase()
539 const InstrDesc &getDesc() const { return Desc; } in getDesc()
647 Instruction(const InstrDesc &D, const unsigned Opcode) in Instruction()
/llvm-project-15.0.7/llvm/tools/llvm-cfi-verify/lib/
H A DFileAnalysis.cpp170 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in isCFITrap() local
171 return InstrDesc.isTrap() || willTrapOnCFIViolation(InstrMeta); in isCFITrap()
175 const auto &InstrDesc = MII->get(InstrMeta.Instruction.getOpcode()); in willTrapOnCFIViolation() local
176 if (!InstrDesc.isCall()) in willTrapOnCFIViolation()
194 return InstrDesc.isConditionalBranch(); in canFallThrough()
210 if (InstrDesc.isConditionalBranch()) in getDefiniteNextInstruction()
344 if (InstrDesc.hasDefOfPhysReg(NodeInstr.Instruction, RegNum, in indirectCFOperandClobber()
346 if (!canLoad || !InstrDesc.mayLoad()) in indirectCFOperandClobber()
351 for (unsigned i = InstrDesc.getNumDefs(), in indirectCFOperandClobber()
503 const auto &InstrDesc = MII->get(Instruction.getOpcode()); in parseSectionContents() local
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/
H A Dllvm-exegesis.cpp260 const MCInstrDesc &InstrDesc = Instr.Description; in generateSnippets() local
262 if (InstrDesc.isPseudo() || InstrDesc.usesCustomInsertionHook()) in generateSnippets()
265 if (InstrDesc.isBranch() || InstrDesc.isIndirectBranch()) in generateSnippets()
267 if (InstrDesc.isCall() || InstrDesc.isReturn()) in generateSnippets()
/llvm-project-15.0.7/llvm/lib/MCA/
H A DInstrBuilder.cpp41 static void initializeUsedResources(InstrDesc &ID, in initializeUsedResources()
250 static void computeMaxLatency(InstrDesc &ID, const MCInstrDesc &MCDesc, in computeMaxLatency()
294 void InstrBuilder::populateWrites(InstrDesc &ID, const MCInst &MCI, in populateWrites()
463 void InstrBuilder::populateReads(InstrDesc &ID, const MCInst &MCI, in populateReads()
524 Error InstrBuilder::verifyInstrDesc(const InstrDesc &ID, in verifyInstrDesc()
541 Expected<const InstrDesc &>
581 std::unique_ptr<InstrDesc> ID = std::make_unique<InstrDesc>(); in createInstrDescImpl()
627 Expected<const InstrDesc &>
642 Expected<const InstrDesc &> DescOrErr = getOrCreateInstrDesc(MCI); in createInstruction()
645 const InstrDesc &D = *DescOrErr; in createInstruction()
/llvm-project-15.0.7/llvm/unittests/tools/llvm-mca/X86/
H A DTestIncrementalMCA.cpp85 std::unordered_map<const mca::InstrDesc *, SmallPtrSet<mca::Instruction *, 2>> in TEST_F()
87 auto GetRecycledInst = [&](const mca::InstrDesc &Desc) -> mca::Instruction * { in TEST_F()
100 const mca::InstrDesc &D = I->getDesc(); in TEST_F()
/llvm-project-15.0.7/llvm/include/llvm/MCA/HardwareUnits/
H A DResourceManager.h426 uint64_t checkAvailability(const InstrDesc &Desc) const;
432 const InstrDesc &Desc,
/llvm-project-15.0.7/llvm/lib/MCA/Stages/
H A DInstructionTables.cpp23 const InstrDesc &Desc = IR.getInstruction()->getDesc(); in execute()
H A DInOrderIssueStage.cpp215 const InstrDesc &Desc = IS.getDesc(); in tryIssue()
/llvm-project-15.0.7/llvm/lib/MCA/HardwareUnits/
H A DScheduler.cpp74 const InstrDesc &D = IS->getDesc(); in issueInstructionImpl()
291 const InstrDesc &Desc = IR.getInstruction()->getDesc(); in mustIssueImmediately()
H A DResourceManager.cpp282 uint64_t ResourceManager::checkAvailability(const InstrDesc &Desc) const { in checkAvailability()
307 const InstrDesc &Desc, in issueInstruction()
/llvm-project-15.0.7/llvm/tools/llvm-mca/Views/
H A DSummaryView.cpp54 const InstrDesc &Desc = Inst.getDesc(); in onEvent()
/llvm-project-15.0.7/lldb/source/Plugins/Disassembler/LLVMC/
H A DDisassemblerLLVMC.cpp1386 auto InstrDesc = m_instr_info_up->get(mc_inst.getOpcode()); in IsAuthenticated() local
1392 if (InstrDesc.isTrap() && mc_inst.getNumOperands() == 1) { in IsAuthenticated()
1398 return InstrDesc.isAuthenticated() || IsBrkC47x; in IsAuthenticated()
/llvm-project-15.0.7/bolt/include/bolt/Core/
H A DMCPlusBuilder.h641 const MCInstrDesc &InstrDesc = MIA.Info->get(CurInst->getOpcode()); in match() local
642 if (InstrDesc.hasDefOfPhysReg(*CurInst, Reg, MRI)) { in match()
/llvm-project-15.0.7/bolt/lib/Target/X86/
H A DX86MCPlusBuilder.cpp2065 const MCInstrDesc &InstrDesc = Info->get(Instr.getOpcode()); in analyzePICJumpTable() local
2066 if (!InstrDesc.hasDefOfPhysReg(Instr, R1, *RegInfo) && in analyzePICJumpTable()
2067 !InstrDesc.hasDefOfPhysReg(Instr, R2, *RegInfo)) { in analyzePICJumpTable()
2104 if (!InstrDesc.hasDefOfPhysReg(Instr, R1, *RegInfo)) in analyzePICJumpTable()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.cpp5073 const MCInstrDesc &InstrDesc = get(Opc); in legalizeOperandsVOP2() local
5086 isLiteralConstantLike(Src0, InstrDesc.OpInfo[Src0Idx]))) in legalizeOperandsVOP2()
5119 if (isLegalRegOperand(MRI, InstrDesc.OpInfo[Src1Idx], Src1)) in legalizeOperandsVOP2()
5150 !isLegalRegOperand(MRI, InstrDesc.OpInfo[Src1Idx], Src0)) { in legalizeOperandsVOP2()