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 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]

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 93 of file RDFRegisters.h.

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

Member Function Documentation

◆ hash()

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

Definition at line 108 of file RDFRegisters.h.

References Mask, and Reg.

◆ idx()

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

◆ isMask()

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

◆ isMaskId()

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

◆ isReg()

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

◆ isRegId()

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

◆ isUnit()

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

Definition at line 99 of file RDFRegisters.h.

References isUnitId(), and Reg.

◆ isUnitId()

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

◆ operator bool()

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

Definition at line 104 of file RDFRegisters.h.

References isReg(), Mask, and Reg.

◆ 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().

◆ toIdx()

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

Definition at line 125 of file RDFRegisters.h.

References isUnitId().

Referenced by idx().

◆ toUnitId()

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

Definition at line 121 of file RDFRegisters.h.

References llvm::Register::VirtualRegFlag.

Member Data Documentation

◆ Mask

◆ Reg


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