LLVM 22.0.0git
llvm::mca::RISCVInstrumentManager Class Reference

#include "Target/RISCV/MCA/RISCVCustomBehaviour.h"

Inheritance diagram for llvm::mca::RISCVInstrumentManager:
[legend]

Public Member Functions

 RISCVInstrumentManager (const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
bool shouldIgnoreInstruments () const override
 Returns true if llvm-mca should ignore instruments.
bool supportsInstrumentType (StringRef Type) const override
UniqueInstrument createInstrument (StringRef Desc, StringRef Data) override
 Create a Instrument for RISC-V target.
SmallVector< UniqueInstrumentcreateInstruments (const MCInst &Inst) override
 Return a list of unique pointers to Instruments, where each Instrument is allocated by this function.
unsigned getSchedClassID (const MCInstrInfo &MCII, const MCInst &MCI, const SmallVector< Instrument * > &IVec) const override
 Using the Instrument, returns a SchedClassID to use instead of the SchedClassID that belongs to the MCI or the original SchedClassID.
Public Member Functions inherited from llvm::mca::InstrumentManager
 InstrumentManager (const MCSubtargetInfo &STI, const MCInstrInfo &MCII)
virtual ~InstrumentManager ()=default

Additional Inherited Members

Protected Attributes inherited from llvm::mca::InstrumentManager
const MCSubtargetInfoSTI
const MCInstrInfoMCII

Detailed Description

Definition at line 53 of file RISCVCustomBehaviour.h.

Constructor & Destructor Documentation

◆ RISCVInstrumentManager()

llvm::mca::RISCVInstrumentManager::RISCVInstrumentManager ( const MCSubtargetInfo & STI,
const MCInstrInfo & MCII )
inline

Member Function Documentation

◆ createInstrument()

◆ createInstruments()

◆ getSchedClassID()

unsigned llvm::mca::RISCVInstrumentManager::getSchedClassID ( const MCInstrInfo & MCII,
const MCInst & MCI,
const SmallVector< Instrument * > & IVec ) const
overridevirtual

◆ shouldIgnoreInstruments()

bool llvm::mca::RISCVInstrumentManager::shouldIgnoreInstruments ( ) const
inlineoverridevirtual

Returns true if llvm-mca should ignore instruments.

Reimplemented from llvm::mca::InstrumentManager.

Definition at line 58 of file RISCVCustomBehaviour.h.

◆ supportsInstrumentType()

bool llvm::mca::RISCVInstrumentManager::supportsInstrumentType ( llvm::StringRef Type) const
overridevirtual

The documentation for this class was generated from the following files: