pass,printer: display required ISA features (#120)

Fixes #119
This commit is contained in:
Michael McLoughlin
2020-01-19 16:45:09 -08:00
committed by GitHub
parent b0ac74488c
commit cde7e9483b
14 changed files with 2042 additions and 0 deletions

View File

@@ -92,6 +92,11 @@ func construct(i inst.Instruction, f inst.Form, s signature) string {
fmt.Fprintf(buf, "\tInputs: %s,\n", operandsWithAction(f, inst.R, s))
fmt.Fprintf(buf, "\tOutputs: %s,\n", operandsWithAction(f, inst.W, s))
// ISAs.
if len(f.ISA) > 0 {
fmt.Fprintf(buf, "\tISA: %#v,\n", f.ISA)
}
// Branch variables.
if i.IsBranch() {
fmt.Fprintf(buf, "\tIsBranch: true,\n")