diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-03 19:13:26 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-03 19:13:26 +0000 |
commit | a4c5ecfb1bc0101c1b42a4d81bb427482b52cecf (patch) | |
tree | 0ac57e2ca82a9ae305d353d1f8dc68b37ea23497 /lib/Target/X86/Disassembler/X86Disassembler.cpp | |
parent | 02ee75393fc38a35e900e078b58f069735da153a (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions