diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-03 22:49:04 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-03 22:49:04 +0000 |
commit | dd63a063e2df0d0bc52b50732e3462fd58a636c0 (patch) | |
tree | b668e64ff3ed9f1e0c036f148be7db00c9a274ad /include/llvm/Target/TargetRegisterInfo.h | |
parent | 1a2a19dd3ce2b163837b5f0a1ea474c72527cad6 (diff) | |
download | llvm-dd63a063e2df0d0bc52b50732e3462fd58a636c0.tar.gz llvm-dd63a063e2df0d0bc52b50732e3462fd58a636c0.tar.bz2 llvm-dd63a063e2df0d0bc52b50732e3462fd58a636c0.tar.xz |
Use a shared implementation of getMatchingSuperRegClass().
TargetRegisterClass now gives access to the necessary tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetRegisterInfo.h')
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 85562b6010..b8097a231e 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -434,9 +434,7 @@ public: /// TableGen will synthesize missing A sub-classes. virtual const TargetRegisterClass * getMatchingSuperRegClass(const TargetRegisterClass *A, - const TargetRegisterClass *B, unsigned Idx) const { - llvm_unreachable("Target has no sub-registers"); - } + const TargetRegisterClass *B, unsigned Idx) const; /// getSubClassWithSubReg - Returns the largest legal sub-class of RC that /// supports the sub-register index Idx. |