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 | c80c3fd5a7a75a33e0e740ebd3ff3d9b3054ec1f (patch) | |
tree | acf2565c44f4492168a54631d30492fcd8269ac7 /llvm/utils/TableGen/CodeGenTarget.h | |
parent | bc34a59d8f8df7f8b71ed37b5d5b88c825bc5503 (diff) | |
download | llvm-c80c3fd5a7a75a33e0e740ebd3ff3d9b3054ec1f.zip llvm-c80c3fd5a7a75a33e0e740ebd3ff3d9b3054ec1f.tar.gz llvm-c80c3fd5a7a75a33e0e740ebd3ff3d9b3054ec1f.tar.bz2 |
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.
llvm-svn: 151760
Diffstat (limited to 'llvm/utils/TableGen/CodeGenTarget.h')
-rw-r--r-- | llvm/utils/TableGen/CodeGenTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.h b/llvm/utils/TableGen/CodeGenTarget.h index 85463da..a0df08b 100644 --- a/llvm/utils/TableGen/CodeGenTarget.h +++ b/llvm/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 { |