mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-15 00:38:42 +00:00
Remove TargetRegisterInfo::NoRegister.
Fix the TargetRegisterInfo::NoRegister places where someone preferred typing 'TargetRegisterInfo::NoRegister' instead of typing '0'. Note that TableGen is already emitting xx::NoRegister in xxGenRegisterNames.inc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bd9d53cc65
commit
b79cb79a46
@ -295,11 +295,16 @@ protected:
|
|||||||
virtual ~TargetRegisterInfo();
|
virtual ~TargetRegisterInfo();
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum { // Define some target independent constants
|
// Register numbers can represent physical registers, virtual registers, and
|
||||||
/// NoRegister - This physical register is not a real target register. It
|
// sometimes stack slots. The unsigned values are divided into these ranges:
|
||||||
/// is useful as a sentinel.
|
//
|
||||||
NoRegister = 0
|
// 0 Not a register, can be used as a sentinel.
|
||||||
};
|
// [1;2^30) Physical registers assigned by TableGen.
|
||||||
|
// [2^30;2^31) Stack slots. (Rarely used.)
|
||||||
|
// [2^31;2^32) Virtual registers assigned by MachineRegisterInfo.
|
||||||
|
//
|
||||||
|
// Further sentinels can be allocated from the small negative integers.
|
||||||
|
// DenseMapInfo<unsigned> uses -1u and -2u.
|
||||||
|
|
||||||
/// isStackSlot - Sometimes it is useful the be able to store a non-negative
|
/// isStackSlot - Sometimes it is useful the be able to store a non-negative
|
||||||
/// frame index in a variable that normally holds a register. isStackSlot()
|
/// frame index in a variable that normally holds a register. isStackSlot()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user