mips without optimize
This commit is contained in:
5
midend/llvm/constant/IrConstantInt.java
Normal file → Executable file
5
midend/llvm/constant/IrConstantInt.java
Normal file → Executable file
@@ -1,5 +1,6 @@
|
||||
package midend.llvm.constant;
|
||||
|
||||
import backend.mips.instr.data.MipsWord;
|
||||
import midend.llvm.type.IrInterType;
|
||||
|
||||
public class IrConstantInt extends IrConstant {
|
||||
@@ -17,4 +18,8 @@ public class IrConstantInt extends IrConstant {
|
||||
public String toString() {
|
||||
return "i32 " + value;
|
||||
}
|
||||
|
||||
public void toMips(String label) {
|
||||
new MipsWord(label, value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user