[X86] Remove the AbsMem32 type from the assembly parser. Only really need the 16-bit version which will automatically get prioritized over AbsMem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper 2015-02-24 08:02:13 +00:00
parent aecbb87ee8
commit c3b9d471f6
2 changed files with 2 additions and 12 deletions

View File

@ -265,10 +265,6 @@ struct X86Operand : public MCParsedAsmOperand {
return isAbsMem() && Mem.ModeSize == 16;
}
bool isAbsMem32() const {
return isAbsMem() && Mem.ModeSize != 16;
}
bool isSrcIdx() const {
return !getMemIndexReg() && getMemScale() == 1 &&
(getMemBaseReg() == X86::RSI || getMemBaseReg() == X86::ESI ||

View File

@ -383,25 +383,19 @@ def brtarget8 : Operand<OtherVT>;
}
// Special parsers to detect mode to disambiguate.
// Special parser to detect 16-bit mode to select 16-bit displacement.
def X86AbsMem16AsmOperand : AsmOperandClass {
let Name = "AbsMem16";
let RenderMethod = "addAbsMemOperands";
let SuperClasses = [X86AbsMemAsmOperand];
}
def X86AbsMem32AsmOperand : AsmOperandClass {
let Name = "AbsMem32";
let RenderMethod = "addAbsMemOperands";
let SuperClasses = [X86AbsMemAsmOperand];
}
// Branch targets have OtherVT type and print as pc-relative values.
let OperandType = "OPERAND_PCREL",
PrintMethod = "printPCRelImm" in {
let ParserMatchClass = X86AbsMem16AsmOperand in
def brtarget16 : Operand<OtherVT>;
let ParserMatchClass = X86AbsMem32AsmOperand in
let ParserMatchClass = X86AbsMemAsmOperand in
def brtarget32 : Operand<OtherVT>;
}