mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
more tidying up
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96891 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1579,10 +1579,10 @@ void CodeGenDAGPatterns::ParseDefaultOperands() {
|
|||||||
if (TPN->ContainsUnresolvedType()) {
|
if (TPN->ContainsUnresolvedType()) {
|
||||||
if (iter == 0)
|
if (iter == 0)
|
||||||
throw "Value #" + utostr(i) + " of PredicateOperand '" +
|
throw "Value #" + utostr(i) + " of PredicateOperand '" +
|
||||||
DefaultOps[iter][i]->getName() + "' doesn't have a concrete type!";
|
DefaultOps[iter][i]->getName() +"' doesn't have a concrete type!";
|
||||||
else
|
else
|
||||||
throw "Value #" + utostr(i) + " of OptionalDefOperand '" +
|
throw "Value #" + utostr(i) + " of OptionalDefOperand '" +
|
||||||
DefaultOps[iter][i]->getName() + "' doesn't have a concrete type!";
|
DefaultOps[iter][i]->getName() +"' doesn't have a concrete type!";
|
||||||
}
|
}
|
||||||
DefaultOpInfo.DefaultOps.push_back(TPN);
|
DefaultOpInfo.DefaultOps.push_back(TPN);
|
||||||
}
|
}
|
||||||
@@ -1626,21 +1626,21 @@ static bool HandleUse(TreePattern *I, TreePatternNode *Pat,
|
|||||||
TreePatternNode *&Slot = InstInputs[Pat->getName()];
|
TreePatternNode *&Slot = InstInputs[Pat->getName()];
|
||||||
if (!Slot) {
|
if (!Slot) {
|
||||||
Slot = Pat;
|
Slot = Pat;
|
||||||
} else {
|
return true;
|
||||||
Record *SlotRec;
|
|
||||||
if (Slot->isLeaf()) {
|
|
||||||
SlotRec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef();
|
|
||||||
} else {
|
|
||||||
assert(Slot->getNumChildren() == 0 && "can't be a use with children!");
|
|
||||||
SlotRec = Slot->getOperator();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure that the inputs agree if we've already seen this input.
|
|
||||||
if (Rec != SlotRec)
|
|
||||||
I->error("All $" + Pat->getName() + " inputs must agree with each other");
|
|
||||||
if (Slot->getExtTypes() != Pat->getExtTypes())
|
|
||||||
I->error("All $" + Pat->getName() + " inputs must agree with each other");
|
|
||||||
}
|
}
|
||||||
|
Record *SlotRec;
|
||||||
|
if (Slot->isLeaf()) {
|
||||||
|
SlotRec = dynamic_cast<DefInit*>(Slot->getLeafValue())->getDef();
|
||||||
|
} else {
|
||||||
|
assert(Slot->getNumChildren() == 0 && "can't be a use with children!");
|
||||||
|
SlotRec = Slot->getOperator();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensure that the inputs agree if we've already seen this input.
|
||||||
|
if (Rec != SlotRec)
|
||||||
|
I->error("All $" + Pat->getName() + " inputs must agree with each other");
|
||||||
|
if (Slot->getExtTypes() != Pat->getExtTypes())
|
||||||
|
I->error("All $" + Pat->getName() + " inputs must agree with each other");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user