LLVM 20.0.0git
Public Member Functions | List of all members
llvm::mca::RISCVInstrumentManager Class Reference

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

Inheritance diagram for llvm::mca::RISCVInstrumentManager:
Inheritance graph
[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
 
virtual bool shouldIgnoreInstruments () const
 Returns true if llvm-mca should ignore instruments.
 
virtual bool supportsInstrumentType (StringRef Type) const
 
virtual UniqueInstrument createInstrument (StringRef Desc, StringRef Data)
 Allocate an Instrument, and return a unique pointer to it.
 
virtual SmallVector< UniqueInstrumentcreateInstruments (const MCInst &Inst)
 Return a list of unique pointers to Instruments, where each Instrument is allocated by this function.
 
virtual unsigned getSchedClassID (const MCInstrInfo &MCII, const MCInst &MCI, const SmallVector< Instrument * > &IVec) const
 Given an MCInst and a vector of Instrument, a target can return a SchedClassID.
 

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

Definition at line 55 of file RISCVCustomBehaviour.h.

Member Function Documentation

◆ createInstrument()

UniqueInstrument llvm::mca::RISCVInstrumentManager::createInstrument ( llvm::StringRef  Desc,
llvm::StringRef  Data 
)
overridevirtual

◆ createInstruments()

SmallVector< UniqueInstrument > llvm::mca::RISCVInstrumentManager::createInstruments ( const MCInst Inst)
overridevirtual

◆ 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: