mips without optimize

This commit is contained in:
colden
2025-12-12 20:14:00 +08:00
parent 84827838e2
commit c94bebf37b
130 changed files with 5462 additions and 4182 deletions

View File

@@ -0,0 +1,28 @@
package backend.mips.instr.fake;
import backend.mips.instr.MipsInstr;
import backend.mips.instr.type.MipsType;
import backend.mips.Register;
public class MipsLa extends MipsInstr {
private Register rd;
private String label;
public MipsLa(Register rd, String label) {
super(MipsType.FAKE);
this.rd = rd;
this.label = label;
}
public Register getRd() {
return rd;
}
public String getLabel() {
return label;
}
public String toString() {
return "la " + rd + ", " + label + "\n";
}
}