LLVM 22.0.0git
|
#include "Target/RISCV/MCA/RISCVCustomBehaviour.h"
Additional Inherited Members | |
Protected Attributes inherited from llvm::mca::InstrumentManager | |
const MCSubtargetInfo & | STI |
const MCInstrInfo & | MCII |
bool | EnableInstruments |
Definition at line 53 of file RISCVCustomBehaviour.h.
|
inline |
Definition at line 55 of file RISCVCustomBehaviour.h.
References llvm::mca::InstrumentManager::InstrumentManager(), llvm::mca::InstrumentManager::MCII, and llvm::mca::InstrumentManager::STI.
|
overridevirtual |
Create a Instrument for RISC-V target.
Reimplemented from llvm::mca::InstrumentManager.
Definition at line 95 of file RISCVCustomBehaviour.cpp.
References llvm::mca::InstrumentManager::createInstrument(), llvm::Data, llvm::mca::RISCVLMULInstrument::DESC_NAME, llvm::mca::RISCVSEWInstrument::DESC_NAME, llvm::mca::RISCVLMULInstrument::isDataValid(), llvm::mca::RISCVSEWInstrument::isDataValid(), and LDBG.
Referenced by createInstruments().
|
overridevirtual |
Return a list of unique pointers to Instruments, where each Instrument is allocated by this function.
See createInstrument to create Instrument from a description and data.
Reimplemented from llvm::mca::InstrumentManager.
Definition at line 120 of file RISCVCustomBehaviour.cpp.
References createInstrument(), llvm::mca::RISCVLMULInstrument::DESC_NAME, llvm::mca::RISCVSEWInstrument::DESC_NAME, llvm::SmallVectorImpl< T >::emplace_back(), llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::RISCVVType::getSEW(), llvm::RISCVVType::getVLMUL(), LDBG, llvm_unreachable, llvm::RISCVVType::LMUL_1, llvm::RISCVVType::LMUL_2, llvm::RISCVVType::LMUL_4, llvm::RISCVVType::LMUL_8, llvm::RISCVVType::LMUL_F2, llvm::RISCVVType::LMUL_F4, llvm::RISCVVType::LMUL_F8, llvm::RISCVVType::LMUL_RESERVED, and llvm::SmallVector.
|
overridevirtual |
Using the Instrument, returns a SchedClassID to use instead of the SchedClassID that belongs to the MCI or the original SchedClassID.
Reimplemented from llvm::mca::InstrumentManager.
Definition at line 236 of file RISCVCustomBehaviour.cpp.
References llvm::mca::RISCVLMULInstrument::DESC_NAME, llvm::mca::RISCVSEWInstrument::DESC_NAME, llvm::mca::Instrument::getData(), llvm::mca::getEEWAndEMUL(), llvm::mca::RISCVLMULInstrument::getLMUL(), llvm::MCInst::getOpcode(), I, LDBG, llvm::mca::InstrumentManager::MCII, llvm::mca::opcodeHasEEWAndEMULInfo(), and llvm::RVV.
|
inlineoverridevirtual |
Returns true if llvm-mca should ignore instruments.
Reimplemented from llvm::mca::InstrumentManager.
Definition at line 58 of file RISCVCustomBehaviour.h.
|
overridevirtual |
Reimplemented from llvm::mca::InstrumentManager.
Definition at line 87 of file RISCVCustomBehaviour.cpp.
References llvm::mca::RISCVLMULInstrument::DESC_NAME, llvm::mca::RISCVSEWInstrument::DESC_NAME, and llvm::mca::InstrumentManager::supportsInstrumentType().