LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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 unsigned idx () 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 (unsigned Id)
 
static constexpr bool isUnitId (unsigned Id)
 
static constexpr bool isMaskId (unsigned Id)
 
static constexpr RegisterId toUnitId (unsigned Idx)
 
static constexpr unsigned toIdx (RegisterId Id)
 

Public Attributes

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

Detailed Description

Definition at line 88 of file RDFRegisters.h.

Constructor & Destructor Documentation

◆ RegisterRef() [1/2]

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

◆ RegisterRef() [2/2]

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

Definition at line 93 of file RDFRegisters.h.

Member Function Documentation

◆ hash()

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

Definition at line 108 of file RDFRegisters.h.

References llvm::LaneBitmask::getAsInteger(), Mask, and Reg.

◆ idx()

constexpr unsigned llvm::rdf::RegisterRef::idx ( ) const
inlineconstexpr

◆ isMask()

constexpr bool llvm::rdf::RegisterRef::isMask ( ) const
inlineconstexpr

◆ isMaskId()

static constexpr bool llvm::rdf::RegisterRef::isMaskId ( unsigned  Id)
inlinestaticconstexpr

◆ isReg()

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

◆ isRegId()

static constexpr bool llvm::rdf::RegisterRef::isRegId ( unsigned  Id)
inlinestaticconstexpr

◆ isUnit()

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

Definition at line 99 of file RDFRegisters.h.

References isUnitId(), and Reg.

◆ isUnitId()

static constexpr bool llvm::rdf::RegisterRef::isUnitId ( unsigned  Id)
inlinestaticconstexpr

◆ operator bool()

constexpr llvm::rdf::RegisterRef::operator bool ( ) const
inlineconstexpr

Definition at line 104 of file RDFRegisters.h.

References llvm::LaneBitmask::any(), isReg(), Mask, and Reg.

◆ operator!=()

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

◆ operator<()

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

◆ operator==()

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

◆ toIdx()

static constexpr unsigned llvm::rdf::RegisterRef::toIdx ( RegisterId  Id)
inlinestaticconstexpr

Definition at line 127 of file RDFRegisters.h.

References isUnitId().

Referenced by idx().

◆ toUnitId()

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

Definition at line 123 of file RDFRegisters.h.

References Idx, and llvm::MCRegister::VirtualRegFlag.

Member Data Documentation

◆ Mask

LaneBitmask llvm::rdf::RegisterRef::Mask = LaneBitmask::getNone()

◆ Reg

RegisterId llvm::rdf::RegisterRef::Reg = 0

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