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:
Quentin Carbonneaux 2015-08-08 18:06:47 -04:00
parent 9966a181c1
commit 76bf96b268
4 changed files with 36 additions and 34 deletions

View file

@ -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;
}