LLVM: llvm::mca::AMDGPUCustomBehaviour Class Reference (original) (raw)
#include "[Target/AMDGPU/MCA/AMDGPUCustomBehaviour.h](AMDGPUCustomBehaviour%5F8h%5Fsource.html)"
Inheritance diagram for llvm::mca::AMDGPUCustomBehaviour:
| Public Member Functions | |
|---|---|
| AMDGPUCustomBehaviour (const MCSubtargetInfo &STI, const mca::SourceMgr &SrcMgr, const MCInstrInfo &MCII) | |
| ~AMDGPUCustomBehaviour () override=default | |
| unsigned | checkCustomHazard (ArrayRef< InstRef > IssuedInst, const InstRef &IR) override |
| This method is used to determine if an instruction should be allowed to be dispatched. | |
| 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. | |
| 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. | |
| 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. |
Detailed Description
Definition at line 47 of file AMDGPUCustomBehaviour.h.
Constructor & Destructor Documentation
◆ ~AMDGPUCustomBehaviour()
| llvm::mca::AMDGPUCustomBehaviour::~AMDGPUCustomBehaviour ( ) | overridedefault |
|---|
References IR.
Member Function Documentation
◆ checkCustomHazard()
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 69 of file AMDGPUCustomBehaviour.cpp.
References llvm::mca::InstructionBase::getOpcode(), and IR.
The documentation for this class was generated from the following files:
- lib/Target/AMDGPU/MCA/AMDGPUCustomBehaviour.h
- lib/Target/AMDGPU/MCA/AMDGPUCustomBehaviour.cpp