9#ifndef LLVM_MC_MCREGISTER_H
10#define LLVM_MC_MCREGISTER_H
50 static_assert(std::numeric_limits<
decltype(Reg)>
::max() >= 0xFFFFFFFF,
51 "Reg isn't large enough to hold full range.");
71 constexpr operator unsigned()
const {
return Reg; }
79 constexpr unsigned id()
const {
return Reg; }
85 return Reg ==
Other.Reg;
88 return Reg !=
Other.Reg;
This file defines DenseMapInfo traits for DenseMap.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Wrapper class representing physical registers. Should be passed by value.
static constexpr bool isStackSlot(unsigned Reg)
This is the portion of the positive number space that is not a physical register.
constexpr bool isValid() const
static constexpr unsigned FirstPhysicalReg
constexpr bool operator==(const MCRegister &Other) const
Comparisons between register objects.
constexpr bool operator!=(MCPhysReg Other) const
static constexpr unsigned NoRegister
constexpr bool operator!=(int Other) const
static constexpr bool isPhysicalRegister(unsigned Reg)
Return true if the specified register number is in the physical register namespace.
constexpr MCRegister(unsigned Val=0)
static MCRegister from(unsigned Val)
Check the provided unsigned value is a valid MCRegister.
constexpr bool operator==(unsigned Other) const
Comparisons against register constants.
static constexpr unsigned FirstStackSlot
constexpr bool operator==(int Other) const
constexpr bool operator!=(const MCRegister &Other) const
friend hash_code hash_value(const MCRegister &)
constexpr bool operator==(MCPhysReg Other) const
static constexpr unsigned VirtualRegFlag
constexpr bool operator!=(unsigned Other) const
constexpr unsigned id() const
An opaque object representing a hash code.
This is an optimization pass for GlobalISel generic memory operations.
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
hash_code hash_value(const FixedPointSemantics &Val)
static bool isEqual(const MCRegister &LHS, const MCRegister &RHS)
static MCRegister getTombstoneKey()
static unsigned getHashValue(const MCRegister &Val)
static MCRegister getEmptyKey()
An information struct used to provide DenseMap with the various necessary components for a given valu...