diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 22:41:03 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-10-15 22:41:03 +0000 |
commit | 14d1dd95c7c969e07defebb6fe65df2fae1b30cf (patch) | |
tree | 20d5b63df8b6404c4b9b1c1d4dcb2dcdbc026e58 /include/llvm/CodeGen/RegisterClassInfo.h | |
parent | 6c0e04c823cf4034214b050e338c99a401edd2ac (diff) | |
download | external_llvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.zip external_llvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.tar.gz external_llvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.tar.bz2 |
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
Diffstat (limited to 'include/llvm/CodeGen/RegisterClassInfo.h')
-rw-r--r-- | include/llvm/CodeGen/RegisterClassInfo.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/CodeGen/RegisterClassInfo.h b/include/llvm/CodeGen/RegisterClassInfo.h index 400e1f4..4467b62 100644 --- a/include/llvm/CodeGen/RegisterClassInfo.h +++ b/include/llvm/CodeGen/RegisterClassInfo.h @@ -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 |