diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-08-23 02:25:47 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-08-23 02:25:47 +0000 |
commit | d93969c32a6bbae3326a1f485c4c85be1cb39406 (patch) | |
tree | f54d593d4fe2d4b2149858fa7607f4285ff053e9 /lib/Target/Sparc/SparcCallingConv.td | |
parent | 0a248bf714f18b1cdcda5d7b811303c232d6e885 (diff) | |
download | llvm-d93969c32a6bbae3326a1f485c4c85be1cb39406.tar.gz llvm-d93969c32a6bbae3326a1f485c4c85be1cb39406.tar.bz2 llvm-d93969c32a6bbae3326a1f485c4c85be1cb39406.tar.xz |
Add an OtherPreserved field to the CalleeSaved TableGen class.
This field specifies registers that are preserved across function calls,
but that should not be included in the generates SaveList array.
This can be used ot generate regmasks for architectures that save
registers through other means, like SPARC's register windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcCallingConv.td')
-rw-r--r-- | lib/Target/Sparc/SparcCallingConv.td | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcCallingConv.td b/lib/Target/Sparc/SparcCallingConv.td index a181bcf3d2..181165d6dd 100644 --- a/lib/Target/Sparc/SparcCallingConv.td +++ b/lib/Target/Sparc/SparcCallingConv.td @@ -117,3 +117,9 @@ def CC_Sparc64 : CallingConv<[ // arguments whether they are passed in registers or not. CCCustom<"CC_Sparc64_Full"> ]>; + +// Callee-saved registers are handled by the register window mechanism. +def CSR : CalleeSavedRegs<(add)> { + let OtherPreserved = (add (sequence "I%u", 0, 7), + (sequence "L%u", 0, 7)); +} |