summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86RegisterInfo.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-26 18:52:33 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-04-26 18:52:33 +0000
commitc9e5015dece0a1a73bec358e11bc87594831279d (patch)
tree2536ec8e3e79a76982d4f03238684978ea691682 /lib/Target/X86/X86RegisterInfo.h
parentefa81404a52020652c4c06499acc29af547b1392 (diff)
downloadllvm-c9e5015dece0a1a73bec358e11bc87594831279d.tar.gz
llvm-c9e5015dece0a1a73bec358e11bc87594831279d.tar.bz2
llvm-c9e5015dece0a1a73bec358e11bc87594831279d.tar.xz
Add a TRI::getLargestLegalSuperClass hook to provide an upper limit on register class inflation.
The hook will be used by the register allocator when recomputing register classes after removing constraints. Thumb1 code doesn't allow anything larger than tGPR, and x86 needs to ensure that the spill size doesn't change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86RegisterInfo.h')
-rw-r--r--lib/Target/X86/X86RegisterInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86RegisterInfo.h b/lib/Target/X86/X86RegisterInfo.h
index cccddfadd1..9970c52c3e 100644
--- a/lib/Target/X86/X86RegisterInfo.h
+++ b/lib/Target/X86/X86RegisterInfo.h
@@ -91,6 +91,9 @@ public:
getMatchingSuperRegClass(const TargetRegisterClass *A,
const TargetRegisterClass *B, unsigned Idx) const;
+ const TargetRegisterClass*
+ getLargestLegalSuperClass(const TargetRegisterClass *RC) const;
+
/// getPointerRegClass - Returns a TargetRegisterClass used for pointer
/// values.
const TargetRegisterClass *getPointerRegClass(unsigned Kind = 0) const;