mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
No need for noResults anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40075 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -100,7 +100,6 @@ namespace llvm {
|
|||||||
bool usesCustomDAGSchedInserter;
|
bool usesCustomDAGSchedInserter;
|
||||||
bool hasVariableNumberOfOperands;
|
bool hasVariableNumberOfOperands;
|
||||||
bool hasCtrlDep;
|
bool hasCtrlDep;
|
||||||
bool noResults;
|
|
||||||
bool isNotDuplicable;
|
bool isNotDuplicable;
|
||||||
bool hasOptionalDef;
|
bool hasOptionalDef;
|
||||||
|
|
||||||
|
@@ -369,7 +369,6 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
|
|||||||
hasDelaySlot = R->getValueAsBit("hasDelaySlot");
|
hasDelaySlot = R->getValueAsBit("hasDelaySlot");
|
||||||
usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter");
|
usesCustomDAGSchedInserter = R->getValueAsBit("usesCustomDAGSchedInserter");
|
||||||
hasCtrlDep = R->getValueAsBit("hasCtrlDep");
|
hasCtrlDep = R->getValueAsBit("hasCtrlDep");
|
||||||
noResults = R->getValueAsBit("noResults");
|
|
||||||
isNotDuplicable = R->getValueAsBit("isNotDuplicable");
|
isNotDuplicable = R->getValueAsBit("isNotDuplicable");
|
||||||
hasOptionalDef = false;
|
hasOptionalDef = false;
|
||||||
hasVariableNumberOfOperands = false;
|
hasVariableNumberOfOperands = false;
|
||||||
|
@@ -752,7 +752,7 @@ bool TreePatternNode::ApplyTypeConstraints(TreePattern &TP, bool NotRegisters) {
|
|||||||
CodeGenInstruction &InstInfo =
|
CodeGenInstruction &InstInfo =
|
||||||
ISE.getTargetInfo().getInstruction(getOperator()->getName());
|
ISE.getTargetInfo().getInstruction(getOperator()->getName());
|
||||||
// Apply the result type to the node
|
// Apply the result type to the node
|
||||||
if (NumResults == 0 || InstInfo.noResults) { // FIXME: temporary hack.
|
if (NumResults == 0 || InstInfo.NumDefs == 0) {
|
||||||
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
MadeChange = UpdateNodeType(MVT::isVoid, TP);
|
||||||
} else {
|
} else {
|
||||||
Record *ResultNode = Inst.getResult(0);
|
Record *ResultNode = Inst.getResult(0);
|
||||||
@@ -1452,8 +1452,7 @@ void DAGISelEmitter::ParseInstructions() {
|
|||||||
CodeGenInstruction &InstInfo =Target.getInstruction(Instrs[i]->getName());
|
CodeGenInstruction &InstInfo =Target.getInstruction(Instrs[i]->getName());
|
||||||
|
|
||||||
if (InstInfo.OperandList.size() != 0) {
|
if (InstInfo.OperandList.size() != 0) {
|
||||||
// FIXME: temporary hack...
|
if (InstInfo.NumDefs == 0) {
|
||||||
if (InstInfo.noResults) {
|
|
||||||
// These produce no results
|
// These produce no results
|
||||||
for (unsigned j = 0, e = InstInfo.OperandList.size(); j < e; ++j)
|
for (unsigned j = 0, e = InstInfo.OperandList.size(); j < e; ++j)
|
||||||
Operands.push_back(InstInfo.OperandList[j].Rec);
|
Operands.push_back(InstInfo.OperandList[j].Rec);
|
||||||
|
Reference in New Issue
Block a user