class WriteRef

Declaration

class WriteRef { /* full declaration omitted */ };

Description

A reference to a register write. This class is mainly used by the register file to describe register mappings. It correlates a register write to the source index of the defining instruction.

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:38

Member Variables

private unsigned int IID
private unsigned int WriteBackCycle
private unsigned int WriteResID
private llvm::MCPhysReg RegisterID
private llvm::mca::WriteState* Write
private static const unsigned int INVALID_IID

Method Overview

Methods

WriteRef()

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:48

WriteRef(unsigned int SourceIndex,
         llvm::mca::WriteState* WS)

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:51

Parameters

unsigned int SourceIndex
llvm::mca::WriteState* WS

void commit()

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:61

void dump() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:77

llvm::MCPhysReg getRegisterID() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:59

unsigned int getSourceIndex() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:53

unsigned int getWriteBackCycle() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:54

unsigned int getWriteResourceID() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:58

const llvm::mca::WriteState* getWriteState() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:56

llvm::mca::WriteState* getWriteState()

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:57

bool hasKnownWriteBackCycle() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:64

bool isAvailable() const

Description

Returns true if this register write has been executed, and the new register value is therefore available to users.

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:70

bool isValid() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:66

bool isWriteZero() const

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:65

void notifyExecuted(unsigned int Cycle)

Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:62

Parameters

unsigned int Cycle