summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcRegisterInfo.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-08-23 02:25:47 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-08-23 02:25:47 +0000
commitd93969c32a6bbae3326a1f485c4c85be1cb39406 (patch)
treef54d593d4fe2d4b2149858fa7607f4285ff053e9 /lib/Target/Sparc/SparcRegisterInfo.h
parent0a248bf714f18b1cdcda5d7b811303c232d6e885 (diff)
downloadllvm-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/SparcRegisterInfo.h')
-rw-r--r--lib/Target/Sparc/SparcRegisterInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcRegisterInfo.h b/lib/Target/Sparc/SparcRegisterInfo.h
index 6b77d4efa2..ae056cdcf2 100644
--- a/lib/Target/Sparc/SparcRegisterInfo.h
+++ b/lib/Target/Sparc/SparcRegisterInfo.h
@@ -32,6 +32,7 @@ struct SparcRegisterInfo : public SparcGenRegisterInfo {
/// Code Generation virtual methods...
const uint16_t *getCalleeSavedRegs(const MachineFunction *MF = 0) const;
+ const uint32_t* getCallPreservedMask(CallingConv::ID CC) const;
BitVector getReservedRegs(const MachineFunction &MF) const;