From b0be4d261b1ebd0e364e3e8b5e5f124c1e7b96b5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Mar 2010 20:56:35 +0000 Subject: [PATCH] eliminate support for "ops" in the input/output list of an 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp index 37ed84658a8..e8d0c6bb566 100644 --- a/utils/TableGen/CodeGenInstruction.cpp +++ b/utils/TableGen/CodeGenInstruction.cpp @@ -130,8 +130,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr) DagInit *DI = R->getValueAsDag("OutOperandList"); if (DefInit *Init = dynamic_cast(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(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'";