LLVM  8.0.1
Public Member Functions | List of all members
llvm::mca::WriteRef Class Reference

A reference to a register write. More...

#include "llvm/MCA/Instruction.h"

Public Member Functions

 WriteRef ()
 
 WriteRef (unsigned SourceIndex, WriteState *WS)
 
unsigned getSourceIndex () const
 
const WriteStategetWriteState () const
 
WriteStategetWriteState ()
 
void invalidate ()
 
bool isWriteZero () const
 
bool isAvailable () const
 Returns true if this register write has been executed, and the new register value is therefore available to users. More...
 
bool isValid () const
 
bool operator== (const WriteRef &Other) const
 
void dump () const
 

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

Definition at line 514 of file Instruction.h.

Constructor & Destructor Documentation

◆ WriteRef() [1/2]

llvm::mca::WriteRef::WriteRef ( )
inline

Definition at line 519 of file Instruction.h.

◆ WriteRef() [2/2]

llvm::mca::WriteRef::WriteRef ( unsigned  SourceIndex,
WriteState WS 
)
inline

Definition at line 520 of file Instruction.h.

Member Function Documentation

◆ dump()

void llvm::mca::WriteRef::dump ( ) const

Definition at line 120 of file Instruction.cpp.

References llvm::dbgs().

◆ getSourceIndex()

unsigned llvm::mca::WriteRef::getSourceIndex ( ) const
inline

◆ getWriteState() [1/2]

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

◆ getWriteState() [2/2]

WriteState* llvm::mca::WriteRef::getWriteState ( )
inline

Definition at line 524 of file Instruction.h.

◆ invalidate()

void llvm::mca::WriteRef::invalidate ( )
inline

Definition at line 525 of file Instruction.h.

Referenced by llvm::mca::RegisterFile::removeRegisterWrite().

◆ isAvailable()

bool llvm::mca::WriteRef::isAvailable ( ) const
inline

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

Definition at line 533 of file Instruction.h.

References llvm::mca::WriteState::isExecuted().

◆ isValid()

bool llvm::mca::WriteRef::isValid ( ) const
inline

Definition at line 540 of file Instruction.h.

Referenced by llvm::mca::RegisterFile::tryEliminateMove().

◆ isWriteZero()

bool llvm::mca::WriteRef::isWriteZero ( ) const
inline

Definition at line 526 of file Instruction.h.

References assert().

◆ operator==()

bool llvm::mca::WriteRef::operator== ( const WriteRef Other) const
inline

Definition at line 541 of file Instruction.h.

References llvm::dump().


The documentation for this class was generated from the following files: