LLVM  14.0.0git
Public Member Functions | List of all members
llvm::mca::AMDGPUCustomBehaviour Class Reference

#include "Target/AMDGPU/MCA/AMDGPUCustomBehaviour.h"

Inheritance diagram for llvm::mca::AMDGPUCustomBehaviour:
Inheritance graph
[legend]
Collaboration diagram for llvm::mca::AMDGPUCustomBehaviour:
Collaboration graph
[legend]

Public Member Functions

 AMDGPUCustomBehaviour (const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII)
 
 ~AMDGPUCustomBehaviour ()
 
unsigned checkCustomHazard (ArrayRef< InstRef > IssuedInst, const InstRef &IR) override
 This method is used to determine if an instruction should be allowed to be dispatched. More...
 
- Public Member Functions inherited from llvm::mca::CustomBehaviour
 CustomBehaviour (const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII)
 
virtual ~CustomBehaviour ()
 
virtual std::vector< std::unique_ptr< View > > getStartViews (llvm::MCInstPrinter &IP, llvm::ArrayRef< llvm::MCInst > Insts)
 Return a vector of Views that will be added before all other Views. More...
 
virtual std::vector< std::unique_ptr< View > > getPostInstrInfoViews (llvm::MCInstPrinter &IP, llvm::ArrayRef< llvm::MCInst > Insts)
 Return a vector of Views that will be added after the InstructionInfoView. More...
 
virtual std::vector< std::unique_ptr< View > > getEndViews (llvm::MCInstPrinter &IP, llvm::ArrayRef< llvm::MCInst > Insts)
 Return a vector of Views that will be added after all other Views. More...
 

Additional Inherited Members

- Protected Attributes inherited from llvm::mca::CustomBehaviour
const MCSubtargetInfoSTI
 
const mca::SourceMgrSrcMgr
 
const MCInstrInfoMCII
 

Detailed Description

Definition at line 47 of file AMDGPUCustomBehaviour.h.

Constructor & Destructor Documentation

◆ AMDGPUCustomBehaviour()

llvm::mca::AMDGPUCustomBehaviour::AMDGPUCustomBehaviour ( const MCSubtargetInfo STI,
const mca::SourceMgr SrcMgr,
const MCInstrInfo MCII 
)

Definition at line 60 of file AMDGPUCustomBehaviour.cpp.

◆ ~AMDGPUCustomBehaviour()

llvm::mca::AMDGPUCustomBehaviour::~AMDGPUCustomBehaviour ( )
inline

Definition at line 89 of file AMDGPUCustomBehaviour.h.

Member Function Documentation

◆ checkCustomHazard()

unsigned llvm::mca::AMDGPUCustomBehaviour::checkCustomHazard ( ArrayRef< InstRef IssuedInst,
const InstRef IR 
)
overridevirtual

This method is used to determine if an instruction should be allowed to be dispatched.

The return value is how many cycles until the instruction can be dispatched. This method is called after MCA has already checked for register and hardware dependencies so this method should only implement custom behaviour and dependencies that are not picked up by MCA naturally.

Reimplemented from llvm::mca::CustomBehaviour.

Definition at line 67 of file AMDGPUCustomBehaviour.cpp.

References llvm::mca::InstructionBase::getOpcode(), and IR.


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