eliminate support for "ops" in the input/output list of an
authorChris Lattner <sabre@nondot.org>
Thu, 18 Mar 2010 20:56:35 +0000 (20:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Mar 2010 20:56:35 +0000 (20:56 +0000)
instruction.  Instructions must use 'ins' and 'outs' now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98868 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenInstruction.cpp

index 37ed84658a821a0dcf2a66a2a8b5cc0b6ad46212..e8d0c6bb56629332f6d5a7cbadaa50594692ca36 100644 (file)
@@ -130,8 +130,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
   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 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
     
   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'";