summaryrefslogtreecommitdiff
path: root/utils/TableGen/CodeGenInstruction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-18 20:56:35 +0000
committerChris Lattner <sabre@nondot.org>2010-03-18 20:56:35 +0000
commitb0be4d261b1ebd0e364e3e8b5e5f124c1e7b96b5 (patch)
treebfbc5efdc1a94d8a210b4980b750ced88c5957f7 /utils/TableGen/CodeGenInstruction.cpp
parent09a2769a7f709baf2d6fa9204e529b2e18aee4dd (diff)
downloadllvm-b0be4d261b1ebd0e364e3e8b5e5f124c1e7b96b5.tar.gz
llvm-b0be4d261b1ebd0e364e3e8b5e5f124c1e7b96b5.tar.bz2
llvm-b0be4d261b1ebd0e364e3e8b5e5f124c1e7b96b5.tar.xz
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
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.cpp')
-rw-r--r--utils/TableGen/CodeGenInstruction.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp
index 37ed84658a..e8d0c6bb56 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<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'";