[llvm-commits] [llvm] r98868 - /llvm/trunk/utils/TableGen/CodeGenInstruction.cpp

Chris Lattner sabre at nondot.org
Thu Mar 18 13:56:35 PDT 2010


Author: lattner
Date: Thu Mar 18 15:56:35 2010
New Revision: 98868

URL: http://llvm.org/viewvc/llvm-project?rev=98868&view=rev
Log:
eliminate support for "ops" in the input/output list of an
instruction.  Instructions must use 'ins' and 'outs' now.

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

Modified: llvm/trunk/utils/TableGen/CodeGenInstruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenInstruction.cpp?rev=98868&r1=98867&r2=98868&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenInstruction.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenInstruction.cpp Thu Mar 18 15:56:35 2010
@@ -130,8 +130,7 @@
   DagInit *DI = R->getValueAsDag("OutOperandList");
 
   if (DefInit *Init = dynamic_cast<DefInit*>(DI->getOperator())) {
-    if (Init->getDef()->getName() != "ops" &&
-        Init->getDef()->getName() != "outs")
+    if (Init->getDef()->getName() != "outs")
       throw R->getName() + ": invalid def name for output list: use 'outs'";
   } else
     throw R->getName() + ": invalid output list: use 'outs'";
@@ -140,8 +139,7 @@
     
   DagInit *IDI = R->getValueAsDag("InOperandList");
   if (DefInit *Init = dynamic_cast<DefInit*>(IDI->getOperator())) {
-    if (Init->getDef()->getName() != "ops" &&
-        Init->getDef()->getName() != "ins")
+    if (Init->getDef()->getName() != "ins")
       throw R->getName() + ": invalid def name for input list: use 'ins'";
   } else
     throw R->getName() + ": invalid input list: use 'ins'";





More information about the llvm-commits mailing list