llvmir some opt

This commit is contained in:
邓智航
2025-12-10 17:58:17 +08:00
commit 84827838e2
103 changed files with 5838 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package midend.llvm.constant;
import midend.llvm.type.IrInterType;
public class IrConstantInt extends IrConstant {
private int value;
public IrConstantInt(int value) {
super(IrInterType.INT32, value + "");
this.value = value;
}
public int getValue() {
return value;
}
public String toString() {
return "i32 " + value;
}
}