summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/X86DisassemblerShared.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-08-01 07:39:18 +0000
committerCraig Topper <craig.topper@gmail.com>2012-08-01 07:39:18 +0000
commitb8aec0881901d33a7bc7d4d93255127e655cf253 (patch)
tree13ae30cd45010d3fbc53ee645014ff74681b74cb /llvm/utils/TableGen/X86DisassemblerShared.h
parent13a39c6f549f36391e583c53a654bfaa089e1933 (diff)
downloadbcm5719-llvm-b8aec0881901d33a7bc7d4d93255127e655cf253.tar.gz
bcm5719-llvm-b8aec0881901d33a7bc7d4d93255127e655cf253.zip
Add more indirection to the disassembler tables to reduce amount of space used to store the operand types and encodings. Store only the unique combinations in a separate table and store indices in the instruction table. Saves about 32K of static data.
llvm-svn: 161101
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerShared.h')
-rw-r--r--llvm/utils/TableGen/X86DisassemblerShared.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerShared.h b/llvm/utils/TableGen/X86DisassemblerShared.h
index 0417e9dece4..c13a0cc467e 100644
--- a/llvm/utils/TableGen/X86DisassemblerShared.h
+++ b/llvm/utils/TableGen/X86DisassemblerShared.h
@@ -14,6 +14,7 @@
#include <string.h>
#define INSTRUCTION_SPECIFIER_FIELDS \
+ struct OperandSpecifier operands[X86_MAX_OPERANDS]; \
bool filtered; \
InstructionContext insnContext; \
std::string name; \
OpenPOWER on IntegriCloud