mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Remove RegisterClassInfo::isReserved() and isAllocatable().
Clients can use the equivalent functions in MRI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165990 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -106,25 +106,6 @@ public:
|
||||
return CalleeSaved[N-1];
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// isReserved - Returns true when PhysReg is a reserved register.
|
||||
///
|
||||
/// Reserved registers may belong to an allocatable register class, but the
|
||||
/// target has explicitly requested that they are not used.
|
||||
///
|
||||
bool isReserved(unsigned PhysReg) const {
|
||||
return Reserved.test(PhysReg);
|
||||
}
|
||||
|
||||
/// isAllocatable - Returns true when PhysReg belongs to an allocatable
|
||||
/// register class and it hasn't been reserved.
|
||||
///
|
||||
/// Allocatable registers may show up in the allocation order of some virtual
|
||||
/// register, so a register allocator needs to track its liveness and
|
||||
/// availability.
|
||||
bool isAllocatable(unsigned PhysReg) const {
|
||||
return TRI->isInAllocatableClass(PhysReg) && !isReserved(PhysReg);
|
||||
}
|
||||
};
|
||||
} // end namespace llvm
|
||||
|
||||
|
||||
Reference in New Issue
Block a user