[llvm-commits] [llvm] r97017 - /llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp

Sean Callanan scallanan at apple.com
Tue Feb 23 18:56:25 PST 2010


Author: spyffe
Date: Tue Feb 23 20:56:25 2010
New Revision: 97017

URL: http://llvm.org/viewvc/llvm-project?rev=97017&view=rev
Log:
Changed the table generator so that the X86
disassembler never recognizes InitReg instructions.

Modified:
    llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp

Modified: llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp?rev=97017&r1=97016&r2=97017&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp (original)
+++ llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp Tue Feb 23 20:56:25 2010
@@ -282,6 +282,10 @@
       IsCodeGenOnly)
     return FILTER_STRONG;
   
+  if (Form == X86Local::MRMInitReg)
+    return FILTER_STRONG;
+
+  
   // Filter out instructions with a LOCK prefix;
   //   prefer forms that do not have the prefix
   if (HasLockPrefix)
@@ -353,9 +357,6 @@
   if (AsmString.find("subreg") != AsmString.npos)
     return FILTER_STRONG;
 
-  assert(Form != X86Local::MRMInitReg &&
-         "FORMAT_MRMINITREG instruction not skipped");
-  
   if (HasFROperands && Name.find("MOV") != Name.npos &&
      ((Name.find("2") != Name.npos && Name.find("32") == Name.npos) || 
       (Name.find("to") != Name.npos)))





More information about the llvm-commits mailing list