LLVM: llvm::MCRegister Class Reference (original) (raw)

Wrapper class representing physical registers. Should be passed by value. More...

#include "[llvm/MC/MCRegister.h](MCRegister%5F8h%5Fsource.html)"

Public Member Functions
constexpr MCRegister (unsigned Val=0)
constexpr bool isPhysical () const
Return true if the specified register number is in the physical register namespace.
constexpr operator unsigned () const
constexpr unsigned id () const
constexpr bool isValid () const
constexpr bool operator== (const MCRegister &Other) const
Comparisons between register objects.
constexpr bool operator!= (const MCRegister &Other) const
constexpr bool operator== (unsigned Other) const
Comparisons against register constants.
constexpr bool operator!= (unsigned Other) const
constexpr bool operator== (int Other) const
constexpr bool operator!= (int Other) const
constexpr bool operator== (MCPhysReg Other) const
constexpr bool operator!= (MCPhysReg Other) const

Wrapper class representing physical registers. Should be passed by value.

Definition at line 41 of file MCRegister.h.

llvm::MCRegister::MCRegister ( unsigned Val = 0) inlineconstexpr

from()

id()

unsigned llvm::MCRegister::id ( ) const inlineconstexpr

Definition at line 82 of file MCRegister.h.

Referenced by addOps(), llvm::AggressiveAntiDepBreaker::BreakAntiDependencies(), llvm::CriticalAntiDepBreaker::BreakAntiDependencies(), llvm::RegAllocEvictionAdvisor::canAllocatePhysReg(), llvm::MachineRegisterInfo::canReserveReg(), llvm::LiveRegMatrix::checkRegMaskInterference(), llvm::MachineOperand::clobbersPhysReg(), llvm::mca::InstrBuilder::createInstruction(), llvm::RISCVZC::encodeRegList(), llvm::ARMAsmBackendDarwin::generateCompactUnwindEncoding(), llvm::NVPTXRegisterInfo::getDwarfRegNum(), llvm::DenseMapInfo< MCRegister >::getHashValue(), llvm::AMDGPU::VOPD::InstInfo::getInvalidCompOperandIndex(), getLibCallID(), llvm::RISCVRegisterInfo::getRegAllocationHints(), getRegisterForMxtrC0(), getRegisterForMxtrDSP(), getRegisterForMxtrFP(), llvm::getXRegFromXRegTuple(), llvm::rdf::DataFlowGraph::hasUntrackedRef(), llvm::TargetRegisterInfo::isCalleeSavedPhysReg(), llvm::ARMBaseRegisterInfo::isInlineAsmReadOnlyReg(), llvm::MachineRegisterInfo::isPhysRegModified(), llvm::MachineRegisterInfo::isPhysRegUsed(), llvm::MachineRegisterInfo::isReserved(), llvm::MCOperand::print(), llvm::PPCInstPrinter::printcrbitm(), llvm::WebAssemblyInstPrinter::printOperand(), llvm::CalleeSavedInfo::setDstReg(), and llvm::AggressiveAntiDepBreaker::StartBlock().

isPhysical()

bool llvm::MCRegister::isPhysical ( ) const inlineconstexpr

isPhysicalRegister()

constexpr bool llvm::MCRegister::isPhysicalRegister ( unsigned Reg) inlinestaticconstexpr

isValid()

bool llvm::MCRegister::isValid ( ) const inlineconstexpr

operator unsigned()

llvm::MCRegister::operator unsigned ( ) const inlineconstexpr

operator!=() [1/4]

operator!=() [2/4]

bool llvm::MCRegister::operator!= ( int Other) const inlineconstexpr

operator!=() [3/4]

bool llvm::MCRegister::operator!= ( MCPhysReg Other) const inlineconstexpr

operator!=() [4/4]

bool llvm::MCRegister::operator!= ( unsigned Other) const inlineconstexpr

operator==() [1/4]

operator==() [2/4]

bool llvm::MCRegister::operator== ( int Other) const inlineconstexpr

operator==() [3/4]

bool llvm::MCRegister::operator== ( MCPhysReg Other) const inlineconstexpr

operator==() [4/4]

bool llvm::MCRegister::operator== ( unsigned Other) const inlineconstexpr

Comparisons against register constants.

E.g.

Definition at line 97 of file MCRegister.h.

References llvm::Other.

hash_value

FirstPhysicalReg

unsigned llvm::MCRegister::FirstPhysicalReg = 1u staticconstexpr

LastPhysicalReg

unsigned llvm::MCRegister::LastPhysicalReg = (1u << 30) - 1 staticconstexpr

NoRegister

unsigned llvm::MCRegister::NoRegister = 0u staticconstexpr

Definition at line 60 of file MCRegister.h.

Referenced by from(), llvm::LiveRegMatrix::getOneVReg(), llvm::X86RegisterInfo::getRegAllocationHints(), llvm::TargetLoweringObjectFile::getStaticBase(), isCandidate(), isValid(), llvm::Register::isValid(), llvm::AArch64InstrInfo::loadRegFromStackSlot(), lowerMSTORE(), llvm::NVPTXInstPrinter::printRegisterOrSinkSymbol(), and llvm::AArch64InstrInfo::storeRegToStackSlot().


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