mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[X86] Remove some unused TYPE enums from the disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2b3638c3d
commit
decea4d6a6
@ -681,8 +681,6 @@ static bool translateRM(MCInst &mcInst, const OperandSpecifier &operand,
|
||||
case TYPE_R32:
|
||||
case TYPE_R64:
|
||||
case TYPE_Rv:
|
||||
case TYPE_MM:
|
||||
case TYPE_MM32:
|
||||
case TYPE_MM64:
|
||||
case TYPE_XMM:
|
||||
case TYPE_XMM32:
|
||||
@ -708,9 +706,6 @@ static bool translateRM(MCInst &mcInst, const OperandSpecifier &operand,
|
||||
case TYPE_M32FP:
|
||||
case TYPE_M64FP:
|
||||
case TYPE_M80FP:
|
||||
case TYPE_M16INT:
|
||||
case TYPE_M32INT:
|
||||
case TYPE_M64INT:
|
||||
case TYPE_M1616:
|
||||
case TYPE_M1632:
|
||||
case TYPE_M1664:
|
||||
|
@ -1460,8 +1460,6 @@ static int readModRM(struct InternalInstruction* insn) {
|
||||
case TYPE_VK16: \
|
||||
return prefix##_K0 + index; \
|
||||
case TYPE_MM64: \
|
||||
case TYPE_MM32: \
|
||||
case TYPE_MM: \
|
||||
return prefix##_MM0 + (index & 0x7); \
|
||||
case TYPE_SEGMENTREG: \
|
||||
if (index > 5) \
|
||||
|
@ -421,10 +421,6 @@ enum OperandEncoding {
|
||||
ENUM_ENTRY(TYPE_M1616, "2+2-byte segment+offset address") \
|
||||
ENUM_ENTRY(TYPE_M1632, "2+4-byte") \
|
||||
ENUM_ENTRY(TYPE_M1664, "2+8-byte") \
|
||||
ENUM_ENTRY(TYPE_M16_32, "2+4-byte two-part memory operand (LIDT, LGDT)") \
|
||||
ENUM_ENTRY(TYPE_M16_16, "2+2-byte (BOUND)") \
|
||||
ENUM_ENTRY(TYPE_M32_32, "4+4-byte (BOUND)") \
|
||||
ENUM_ENTRY(TYPE_M16_64, "2+8-byte (LIDT, LGDT)") \
|
||||
ENUM_ENTRY(TYPE_SRCIDX8, "1-byte memory at source index") \
|
||||
ENUM_ENTRY(TYPE_SRCIDX16, "2-byte memory at source index") \
|
||||
ENUM_ENTRY(TYPE_SRCIDX32, "4-byte memory at source index") \
|
||||
@ -443,14 +439,8 @@ enum OperandEncoding {
|
||||
ENUM_ENTRY(TYPE_M32FP, "32-bit IEE754 memory floating-point operand") \
|
||||
ENUM_ENTRY(TYPE_M64FP, "64-bit") \
|
||||
ENUM_ENTRY(TYPE_M80FP, "80-bit extended") \
|
||||
ENUM_ENTRY(TYPE_M16INT, "2-byte memory integer operand for use in " \
|
||||
"floating-point instructions") \
|
||||
ENUM_ENTRY(TYPE_M32INT, "4-byte") \
|
||||
ENUM_ENTRY(TYPE_M64INT, "8-byte") \
|
||||
ENUM_ENTRY(TYPE_ST, "Position on the floating-point stack") \
|
||||
ENUM_ENTRY(TYPE_MM, "MMX register operand") \
|
||||
ENUM_ENTRY(TYPE_MM32, "4-byte MMX register or memory operand") \
|
||||
ENUM_ENTRY(TYPE_MM64, "8-byte") \
|
||||
ENUM_ENTRY(TYPE_MM64, "8-byte MMX register") \
|
||||
ENUM_ENTRY(TYPE_XMM, "XMM register operand") \
|
||||
ENUM_ENTRY(TYPE_XMM32, "4-byte XMM register or memory operand") \
|
||||
ENUM_ENTRY(TYPE_XMM64, "8-byte") \
|
||||
|
@ -960,7 +960,6 @@ OperandType RecognizableInstr::typeFromString(const std::string &s,
|
||||
TYPE("brtarget16", TYPE_RELv)
|
||||
TYPE("brtarget8", TYPE_REL8)
|
||||
TYPE("f80mem", TYPE_M80FP)
|
||||
TYPE("lea32mem", TYPE_LEA)
|
||||
TYPE("lea64_32mem", TYPE_LEA)
|
||||
TYPE("lea64mem", TYPE_LEA)
|
||||
TYPE("VR64", TYPE_MM64)
|
||||
|
Loading…
Reference in New Issue
Block a user