LLVM 22.0.0git
llvm::rdf::RegisterRef Struct Reference

#include "llvm/CodeGen/RDFRegisters.h"

Public Member Functions

constexpr RegisterRef ()=default
constexpr RegisterRef (RegisterId R, LaneBitmask M=LaneBitmask::getAll())
constexpr bool isReg () const
constexpr bool isUnit () const
constexpr bool isMask () const
constexpr MCRegister asMCReg () const
constexpr MCRegUnit asMCRegUnit () const
constexpr unsigned asMaskIdx () const
constexpr operator bool () const
size_t hash () const
bool operator< (RegisterRef) const =delete
bool operator== (RegisterRef) const =delete
bool operator!= (RegisterRef) const =delete

Static Public Member Functions

static constexpr bool isRegId (RegisterId Id)
static constexpr bool isUnitId (RegisterId Id)
static constexpr bool isMaskId (RegisterId Id)
static constexpr RegisterId toUnitId (unsigned Idx)
static constexpr RegisterId toMaskId (unsigned Idx)

Public Attributes

RegisterId Id = 0
LaneBitmask Mask = LaneBitmask::getNone()

Detailed Description

Definition at line 89 of file RDFRegisters.h.

Constructor & Destructor Documentation

◆ RegisterRef() [1/2]

llvm::rdf::RegisterRef::RegisterRef ( )
constexprdefault

Referenced by operator!=(), operator<(), and operator==().

◆ RegisterRef() [2/2]

llvm::rdf::RegisterRef::RegisterRef ( RegisterId R,
LaneBitmask M = LaneBitmask::getAll() )
inlineexplicitconstexpr

Definition at line 99 of file RDFRegisters.h.

References llvm::LaneBitmask::getAll(), Id, isRegId(), and Mask.

Member Function Documentation

◆ asMaskIdx()

unsigned llvm::rdf::RegisterRef::asMaskIdx ( ) const
inlineconstexpr

◆ asMCReg()

◆ asMCRegUnit()

MCRegUnit llvm::rdf::RegisterRef::asMCRegUnit ( ) const
inlineconstexpr

Definition at line 113 of file RDFRegisters.h.

References assert(), Id, and isUnit().

◆ hash()

size_t llvm::rdf::RegisterRef::hash ( ) const
inline

Definition at line 127 of file RDFRegisters.h.

References Id, and Mask.

◆ isMask()

◆ isMaskId()

constexpr bool llvm::rdf::RegisterRef::isMaskId ( RegisterId Id)
inlinestaticconstexpr

Definition at line 136 of file RDFRegisters.h.

References Id.

Referenced by isMask(), and llvm::rdf::DataFlowGraph::makeRegRef().

◆ isReg()

bool llvm::rdf::RegisterRef::isReg ( ) const
inlineconstexpr

◆ isRegId()

constexpr bool llvm::rdf::RegisterRef::isRegId ( RegisterId Id)
inlinestaticconstexpr

Definition at line 132 of file RDFRegisters.h.

References Id.

Referenced by isReg(), llvm::rdf::DataFlowGraph::makeRegRef(), and RegisterRef().

◆ isUnit()

bool llvm::rdf::RegisterRef::isUnit ( ) const
inlineconstexpr

Definition at line 105 of file RDFRegisters.h.

References Id, and isUnitId().

Referenced by asMCRegUnit(), and llvm::rdf::PhysicalRegisterInfo::getAliasSet().

◆ isUnitId()

constexpr bool llvm::rdf::RegisterRef::isUnitId ( RegisterId Id)
inlinestaticconstexpr

Definition at line 135 of file RDFRegisters.h.

References Id.

Referenced by isUnit().

◆ operator bool()

llvm::rdf::RegisterRef::operator bool ( ) const
inlineexplicitconstexpr

Definition at line 123 of file RDFRegisters.h.

References Id, isReg(), and Mask.

◆ operator!=()

bool llvm::rdf::RegisterRef::operator!= ( RegisterRef ) const
delete

References RegisterRef().

◆ operator<()

bool llvm::rdf::RegisterRef::operator< ( RegisterRef ) const
delete

References RegisterRef().

◆ operator==()

bool llvm::rdf::RegisterRef::operator== ( RegisterRef ) const
delete

References RegisterRef().

◆ toMaskId()

constexpr RegisterId llvm::rdf::RegisterRef::toMaskId ( unsigned Idx)
inlinestaticconstexpr

Definition at line 140 of file RDFRegisters.h.

Referenced by llvm::rdf::PhysicalRegisterInfo::getRegMaskId().

◆ toUnitId()

constexpr RegisterId llvm::rdf::RegisterRef::toUnitId ( unsigned Idx)
inlinestaticconstexpr

Definition at line 138 of file RDFRegisters.h.

Member Data Documentation

◆ Id

◆ Mask


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