From c80c3fd5a7a75a33e0e740ebd3ff3d9b3054ec1f Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Wed, 29 Feb 2012 21:57:08 +0000 Subject: 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 --- llvm/utils/TableGen/CodeGenTarget.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/utils/TableGen/CodeGenTarget.h') 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 { -- cgit v1.1