add nmem to opdesc for use in the spiller
This new machine-independent mechanism might not be general enough in the long term but, now, it provides a flexible way to inform the spiller about the maximum number of arguments of an instruction that can be spill locations.
This commit is contained in:
parent
9966a181c1
commit
76bf96b268
4 changed files with 36 additions and 34 deletions
|
@ -158,8 +158,6 @@ eins(Ins i, Fn *fn, FILE *f)
|
|||
eop("add", i.arg[0], i.to, fn, f);
|
||||
break;
|
||||
}
|
||||
if (opdesc[i.op].comm != T)
|
||||
diag("emit: unhandled instruction (1)");
|
||||
i.arg[1] = i.arg[0];
|
||||
i.arg[0] = i.to;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue