summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCRegisterInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-04-17 21:07:20 +0000
committerChris Lattner <sabre@nondot.org>2006-04-17 21:07:20 +0000
commit369503f8412bba4a0138074c97107c09cc4513e0 (patch)
treea0aa385e8b03fb5467470073bfede0ca13ebf20b /lib/Target/PowerPC/PPCRegisterInfo.h
parentf7d2372b7407c7f8966df39a2b5a067c72bd6b9b (diff)
downloadllvm-369503f8412bba4a0138074c97107c09cc4513e0.tar.gz
llvm-369503f8412bba4a0138074c97107c09cc4513e0.tar.bz2
llvm-369503f8412bba4a0138074c97107c09cc4513e0.tar.xz
Move some knowledge about registers out of the code emitter into the register info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCRegisterInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.h b/lib/Target/PowerPC/PPCRegisterInfo.h
index 7fb0af2953..2776bb4c87 100644
--- a/lib/Target/PowerPC/PPCRegisterInfo.h
+++ b/lib/Target/PowerPC/PPCRegisterInfo.h
@@ -26,6 +26,10 @@ class PPCRegisterInfo : public PPCGenRegisterInfo {
std::map<unsigned, unsigned> ImmToIdxMap;
public:
PPCRegisterInfo();
+
+ /// getRegisterNumbering - Given the enum value for some register, e.g.
+ /// PPC::F14, return the number that it corresponds to (e.g. 14).
+ static unsigned getRegisterNumbering(unsigned RegEnum);
/// Code Generation virtual methods...
void storeRegToStackSlot(MachineBasicBlock &MBB,