diff options
author | Craig Topper <craig.topper@intel.com> | 2019-06-13 22:15:25 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2019-06-13 22:15:25 +0000 |
commit | cf34a2bd5d6ec941e755d85e49525712453b0777 (patch) | |
tree | c99abfaf5faa60a26de8ae53451c401768181c4d /llvm/lib/Target/X86 | |
parent | 1c88445840c5412965d4bbee6f558d0dd7aed9b4 (diff) | |
download | bcm5719-llvm-cf34a2bd5d6ec941e755d85e49525712453b0777.tar.gz bcm5719-llvm-cf34a2bd5d6ec941e755d85e49525712453b0777.zip |
[X86Disassembler] Unify the EVEX and VEX code in emitContextTable. Merge the ATTR_VEXL/ATTR_EVEXL bits. NFCI
Merging the two bits shrinks the context table from 16384 bytes to 8192 bytes.
Remove the ATTRIBUTE_BITS macro and just create an enum directly. Then fix the ATTR_max define to be 8192 to reflect the table size so we stop hardcoding it separately.
llvm-svn: 363330
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r-- | llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp index 76aadc79402..a241362a271 100644 --- a/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp +++ b/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp @@ -882,7 +882,7 @@ static int getID(struct InternalInstruction* insn, const void *miiArg) { if (aaaFromEVEX4of4(insn->vectorExtensionPrefix[3])) attrMask |= ATTR_EVEXK; if (lFromEVEX4of4(insn->vectorExtensionPrefix[3])) - attrMask |= ATTR_EVEXL; + attrMask |= ATTR_VEXL; if (l2FromEVEX4of4(insn->vectorExtensionPrefix[3])) attrMask |= ATTR_EVEXL2; } else if (insn->vectorExtensionType == TYPE_VEX_3B) { |