LLVM  12.0.0git
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

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 337 of file Instruction.h.

Constructor & Destructor Documentation

◆ ResourceUsage()

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

Definition at line 340 of file Instruction.h.

Member Function Documentation

◆ isReserved()

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

Definition at line 343 of file Instruction.h.

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

◆ setReserved()

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

Definition at line 344 of file Instruction.h.

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

◆ size()

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

Definition at line 342 of file Instruction.h.

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

Member Data Documentation

◆ CS

CycleSegment llvm::mca::ResourceUsage::CS

Definition at line 338 of file Instruction.h.

◆ NumUnits

unsigned llvm::mca::ResourceUsage::NumUnits

Definition at line 339 of file Instruction.h.

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