diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-29 21:57:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-02-29 21:57:08 +0000 |
commit | b9ace0215d20e29a0e59de2917178ad5e308a835 (patch) | |
tree | aa59e042628011e04d45f2f49dec3b88d1c97d28 /utils/TableGen/CodeGenTarget.h | |
parent | eea87153d10b9aa774eb5118a58735b4af6489b8 (diff) |
Emit the SubRegTable with the smallest possible integer type.
Doesn't help ARM with its massive register set, but halves the size on x86 and all other targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151760 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | utils/TableGen/CodeGenTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenTarget.h b/utils/TableGen/CodeGenTarget.h index 85463da597..a0df08bf95 100644 --- a/utils/TableGen/CodeGenTarget.h +++ b/utils/TableGen/CodeGenTarget.h @@ -58,6 +58,10 @@ std::string getEnumName(MVT::SimpleValueType T); /// namespace qualifier if the record contains one. std::string getQualifiedName(const Record *R); +/// getMinimalTypeForRange - Helper method to get the minimum data type required +/// to represent Range. +const char *getMinimalTypeForRange(uint64_t Range); + /// CodeGenTarget - This class corresponds to the Target class in the .td files. /// class CodeGenTarget { |