LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::mca::ResourceUsage Struct Reference

Helper used by class InstrDesc to describe how hardware resources are used. More...

#include "llvm/MCA/Instruction.h"

Collaboration diagram for llvm::mca::ResourceUsage:
Collaboration graph
[legend]

Public Member Functions

 ResourceUsage (CycleSegment Cycles, unsigned Units=1)
 
unsigned size () const
 
bool isReserved () const
 
void setReserved ()
 

Public Attributes

CycleSegment CS
 
unsigned NumUnits
 

Detailed 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.

Definition at line 311 of file Instruction.h.

Constructor & Destructor Documentation

◆ ResourceUsage()

llvm::mca::ResourceUsage::ResourceUsage ( CycleSegment  Cycles,
unsigned  Units = 1 
)
inline

Definition at line 314 of file Instruction.h.

Member Function Documentation

◆ isReserved()

bool llvm::mca::ResourceUsage::isReserved ( ) const
inline

Definition at line 317 of file Instruction.h.

References llvm::mca::CycleSegment::isReserved().

◆ setReserved()

void llvm::mca::ResourceUsage::setReserved ( )
inline

Definition at line 318 of file Instruction.h.

References llvm::mca::CycleSegment::setReserved().

◆ size()

unsigned llvm::mca::ResourceUsage::size ( ) const
inline

Definition at line 316 of file Instruction.h.

References llvm::mca::CycleSegment::size().

Member Data Documentation

◆ CS

CycleSegment llvm::mca::ResourceUsage::CS

Definition at line 312 of file Instruction.h.

◆ NumUnits

unsigned llvm::mca::ResourceUsage::NumUnits

Definition at line 313 of file Instruction.h.


The documentation for this struct was generated from the following file: