struct ResourceUsage
Declaration
struct ResourceUsage { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/MCA/Instruction.h:337
Member Variables
- public llvm::mca::CycleSegment CS
- public unsigned int NumUnits
Method Overview
- public ResourceUsage(llvm::mca::CycleSegment Cycles, unsigned int Units = 1)
- public bool isReserved() const
- public void setReserved()
- public unsigned int size() const
Methods
¶ResourceUsage(llvm::mca::CycleSegment Cycles,
unsigned int Units = 1)
ResourceUsage(llvm::mca::CycleSegment Cycles,
unsigned int Units = 1)
Declared at: llvm/include/llvm/MCA/Instruction.h:340
Parameters
- llvm::mca::CycleSegment Cycles
- unsigned int Units = 1
¶bool isReserved() const
bool isReserved() const
Declared at: llvm/include/llvm/MCA/Instruction.h:343
¶void setReserved()
void setReserved()
Declared at: llvm/include/llvm/MCA/Instruction.h:344
¶unsigned int size() const
unsigned int size() const
Declared at: llvm/include/llvm/MCA/Instruction.h:342