Go to the documentation of this file.
9 #ifndef LLVM_MC_MCREGISTER_H
10 #define LLVM_MC_MCREGISTER_H
41 static_assert(std::numeric_limits<decltype(Reg)>::
max() >= 0xFFFFFFFF,
42 "Reg isn't large enough to hold full range.");
62 constexpr
operator unsigned()
const {
116 #endif // LLVM_MC_MCREGISTER_H
static constexpr unsigned VirtualRegFlag
static unsigned getTombstoneKey()
This is an optimization pass for GlobalISel generic memory operations.
static constexpr unsigned FirstStackSlot
static constexpr unsigned FirstPhysicalReg
bool operator!=(int Other) const
bool operator==(MCPhysReg Other) const
static MCRegister from(unsigned Val)
Check the provided unsigned value is a valid MCRegister.
bool operator!=(MCPhysReg Other) const
Reg
All possible values of the reg field in the ModR/M byte.
static constexpr unsigned NoRegister
Expected< ExpressionValue > max(const ExpressionValue &Lhs, const ExpressionValue &Rhs)
hash_code hash_value(const APFloat &Arg)
See friend declarations above.
friend hash_code hash_value(const MCRegister &)
An information struct used to provide DenseMap with the various necessary components for a given valu...
bool operator==(unsigned Other) const
Comparisons against register constants.
static bool isEqual(const MCRegister &LHS, const MCRegister &RHS)
static unsigned getHashValue(const MCRegister &Val)
static bool isPhysicalRegister(unsigned Reg)
Return true if the specified register number is in the physical register namespace.
bool operator==(const MCRegister &Other) const
Comparisons between register objects.
bool operator==(int Other) const
bool operator!=(unsigned Other) const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
static bool isEqual(const Function &Caller, const Function &Callee)
constexpr MCRegister(unsigned Val=0)
static bool isStackSlot(unsigned Reg)
This is the portion of the positive number space that is not a physical register.
bool operator!=(const MCRegister &Other) const
static unsigned getEmptyKey()
Optional< std::vector< StOtherPiece > > Other
Wrapper class representing physical registers. Should be passed by value.
An opaque object representing a hash code.