summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 22:41:03 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-10-15 22:41:03 +0000
commit14d1dd95c7c969e07defebb6fe65df2fae1b30cf (patch)
tree20d5b63df8b6404c4b9b1c1d4dcb2dcdbc026e58 /include/llvm/CodeGen
parent6c0e04c823cf4034214b050e338c99a401edd2ac (diff)
downloadllvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.tar.gz
llvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.tar.bz2
llvm-14d1dd95c7c969e07defebb6fe65df2fae1b30cf.tar.xz
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')
-rw-r--r--include/llvm/CodeGen/RegisterClassInfo.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/CodeGen/RegisterClassInfo.h b/include/llvm/CodeGen/RegisterClassInfo.h
index 400e1f48ce..4467b62f23 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