diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-18 00:16:39 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-01-18 00:16:39 +0000 |
commit | 31867660cb81ea2b1d1a6ffa7d09c91acb754a8b (patch) | |
tree | 3ccbfded75387b943b2877f7f5975da12d98a84b /lib/Target/Mips/MipsRegisterInfo.td | |
parent | 7434c9a053789c04d73bb58df41ad6fdf6a84e6a (diff) | |
download | external_llvm-31867660cb81ea2b1d1a6ffa7d09c91acb754a8b.zip external_llvm-31867660cb81ea2b1d1a6ffa7d09c91acb754a8b.tar.gz external_llvm-31867660cb81ea2b1d1a6ffa7d09c91acb754a8b.tar.bz2 |
Add a CoveredBySubRegs property to Register descriptions.
When set, this bit indicates that a register is completely defined by
the value of its sub-registers.
Use the CoveredBySubRegs property to infer which super-registers are
call-preserved given a list of callee-saved registers. For example, the
ARM registers D8-D15 are callee-saved. This now automatically implies
that Q4-Q7 are call-preserved.
Conversely, Win64 callees save XMM6-XMM15, but the corresponding
YMM6-YMM15 registers are not call-preserved because they are not fully
defined by their sub-registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsRegisterInfo.td')
-rw-r--r-- | lib/Target/Mips/MipsRegisterInfo.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsRegisterInfo.td b/lib/Target/Mips/MipsRegisterInfo.td index 76ee2e6..15a6adc 100644 --- a/lib/Target/Mips/MipsRegisterInfo.td +++ b/lib/Target/Mips/MipsRegisterInfo.td @@ -50,6 +50,7 @@ class AFPR<bits<5> num, string n, list<Register> subregs> : MipsRegWithSubRegs<n, subregs> { let Num = num; let SubRegIndices = [sub_fpeven, sub_fpodd]; + let CoveredBySubRegs = 1; } class AFPR64<bits<5> num, string n, list<Register> subregs> |