[X86][Disassembler] Shrink X86GenDisassemblerTables.inc from 36M to 6.1M
authorFangrui Song <maskray@google.com>
Sun, 12 Jan 2020 00:27:25 +0000 (16:27 -0800)
committerFangrui Song <maskray@google.com>
Sun, 12 Jan 2020 01:28:22 +0000 (17:28 -0800)
commitf719c540bb09cb5bfe37bc6283ea68e31949b3f4
treed64175ae67f431666912cf3c2b91af65998e8618
parent1e8ce7492e91aa6db269334d12187c7ae854dccb
[X86][Disassembler] Shrink X86GenDisassemblerTables.inc from 36M to 6.1M

In x86Disassembler{OneByte,TwoByte,...}Codes,
"/* EmptyTable */" is very common. Omitting it saves lots of space.
Also, there is no need to display a table entry in multiple lines.

It is also common that the whole OpcodeDecision is { MODRM_ONEENTRY, 0}.
Make use of zero-initialization.
llvm/utils/TableGen/X86DisassemblerTables.cpp