mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
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
This commit is contained in:
parent
09a2769a7f
commit
b0be4d261b
@ -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'";
|
||||
|
Loading…
Reference in New Issue
Block a user