eliminate support for "ops" in the input/output list of an

instruction.  Instructions must use 'ins' and 'outs' now.

llvm-svn: 98868
This commit is contained in:
Chris Lattner 2010-03-18 20:56:35 +00:00
parent b7f6d172b8
commit 0f03747577
1 changed files with 2 additions and 4 deletions

View 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'";