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

Methods

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

Declared at: llvm/include/llvm/MCA/Instruction.h:343

void setReserved()

Declared at: llvm/include/llvm/MCA/Instruction.h:344

unsigned int size() const

Declared at: llvm/include/llvm/MCA/Instruction.h:342