LLVM 20.0.0git
|
Helper used by class InstrDesc to describe how hardware resources are used. More...
#include "llvm/MCA/Instruction.h"
Public Member Functions | |
ResourceUsage (CycleSegment Cycles, unsigned Units=1) | |
unsigned | size () const |
bool | isReserved () const |
void | setReserved () |
Public Attributes | |
CycleSegment | CS |
unsigned | NumUnits |
Helper used by class InstrDesc to describe how hardware resources are used.
This class describes how many resource units of a specific resource kind (and how many cycles) are "used" by an instruction.
Definition at line 436 of file Instruction.h.
|
inline |
Definition at line 439 of file Instruction.h.
|
inline |
Definition at line 442 of file Instruction.h.
References CS, and llvm::mca::CycleSegment::isReserved().
|
inline |
Definition at line 443 of file Instruction.h.
References CS, and llvm::mca::CycleSegment::setReserved().
|
inline |
Definition at line 441 of file Instruction.h.
References CS, and llvm::mca::CycleSegment::size().
CycleSegment llvm::mca::ResourceUsage::CS |
Definition at line 437 of file Instruction.h.
Referenced by isReserved(), setReserved(), and size().
unsigned llvm::mca::ResourceUsage::NumUnits |
Definition at line 438 of file Instruction.h.