mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Add a new x86 specific instruction flag to force some isCodeGenOnly instructions to go through to the disassembler tables without resorting to string matches. Apply flag to all _REV instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -248,6 +248,7 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables,
|
||||
HasEVEX_B = Rec->getValueAsBit("hasEVEX_B");
|
||||
HasLockPrefix = Rec->getValueAsBit("hasLockPrefix");
|
||||
IsCodeGenOnly = Rec->getValueAsBit("isCodeGenOnly");
|
||||
ForceDisassemble = Rec->getValueAsBit("ForceDisassemble");
|
||||
|
||||
Name = Rec->getName();
|
||||
AsmString = Rec->getValueAsString("AsmString");
|
||||
@@ -483,7 +484,7 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
|
||||
assert(Rec->isSubClassOf("X86Inst") && "Can only filter X86 instructions");
|
||||
|
||||
if (Form == X86Local::Pseudo ||
|
||||
(IsCodeGenOnly && Name.find("_REV") == Name.npos &&
|
||||
(IsCodeGenOnly && !ForceDisassemble &&
|
||||
Name.find("INC32") == Name.npos && Name.find("DEC32") == Name.npos))
|
||||
return FILTER_STRONG;
|
||||
|
||||
|
Reference in New Issue
Block a user