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
- public WriteRef()
- public WriteRef(unsigned int SourceIndex, llvm::mca::WriteState * WS)
- public void commit()
- public void dump() const
- public llvm::MCPhysReg getRegisterID() const
- public unsigned int getSourceIndex() const
- public unsigned int getWriteBackCycle() const
- public unsigned int getWriteResourceID() const
- public const llvm::mca::WriteState * getWriteState() const
- public llvm::mca::WriteState * getWriteState()
- public bool hasKnownWriteBackCycle() const
- public bool isAvailable() const
- public bool isValid() const
- public bool isWriteZero() const
- public void notifyExecuted(unsigned int Cycle)
Methods
¶WriteRef()
WriteRef()
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:48
¶WriteRef(unsigned int SourceIndex,
llvm::mca::WriteState* WS)
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()
void commit()
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:61
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:77
¶llvm::MCPhysReg getRegisterID() const
llvm::MCPhysReg getRegisterID() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:59
¶unsigned int getSourceIndex() const
unsigned int getSourceIndex() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:53
¶unsigned int getWriteBackCycle() const
unsigned int getWriteBackCycle() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:54
¶unsigned int getWriteResourceID() const
unsigned int getWriteResourceID() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:58
¶const llvm::mca::WriteState* getWriteState() const
const llvm::mca::WriteState* getWriteState() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:56
¶llvm::mca::WriteState* getWriteState()
llvm::mca::WriteState* getWriteState()
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:57
¶bool hasKnownWriteBackCycle() const
bool hasKnownWriteBackCycle() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:64
¶bool isAvailable() const
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
bool isValid() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:66
¶bool isWriteZero() const
bool isWriteZero() const
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:65
¶void notifyExecuted(unsigned int Cycle)
void notifyExecuted(unsigned int Cycle)
Declared at: llvm/include/llvm/MCA/HardwareUnits/RegisterFile.h:62
Parameters
- unsigned int Cycle