aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-03-03 19:13:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-03-03 19:13:26 +0000
commit5aeee5f854b1d03a410cd543549450a12b6000cf (patch)
tree00751c73a90a1587d180460ea51ef7bf72b4e887 /llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h
parentdbe7f3bf2efa8fa4f8a9a8d75355f9564a018044 (diff)
downloadllvm-5aeee5f854b1d03a410cd543549450a12b6000cf.zip
llvm-5aeee5f854b1d03a410cd543549450a12b6000cf.tar.gz
llvm-5aeee5f854b1d03a410cd543549450a12b6000cf.tar.bz2
Shrink the asm matcher tables.
- Shrink the opcode field to 16 bits. - Shrink the AsmVariantID field to 8 bits. - Store the mnemonic string in a string table, store a 16 bit index. - Store a pascal-style length byte in the string instead of a null terminator, so we can avoid calling strlen on every entry we visit during mnemonic search. Shrinks X86AsmParser.o from 434k to 201k on x86_64 and eliminates relocs from the table. llvm-svn: 151984
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoderCommon.h')
0 files changed, 0 insertions, 0 deletions