diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-18 20:56:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-18 20:56:35 +0000 |
| commit | 0f03747577c2331c255543f136723782da5d7f5c (patch) | |
| tree | 737b6533c426930832e56ab9b2f8acc038afdc3b /llvm/utils/TableGen | |
| parent | b7f6d172b89e71e2efde8c4aa2e35f8038e003a9 (diff) | |
| download | bcm5719-llvm-0f03747577c2331c255543f136723782da5d7f5c.tar.gz bcm5719-llvm-0f03747577c2331c255543f136723782da5d7f5c.zip | |
eliminate support for "ops" in the input/output list of an
instruction. Instructions must use 'ins' and 'outs' now.
llvm-svn: 98868
Diffstat (limited to 'llvm/utils/TableGen')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.cpp b/llvm/utils/TableGen/CodeGenInstruction.cpp index 37ed84658a8..e8d0c6bb566 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.cpp +++ b/llvm/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'"; |

