Appeal, todo : corriger callLLVM

This commit is contained in:
Rochas
2025-04-27 23:59:34 +02:00
parent 38e3f992b9
commit d8d24e618d
5 changed files with 23 additions and 26 deletions

View File

@@ -53,7 +53,7 @@ public class ProgramLLVM {
}
public static record AssignLVMImp(VarLLVMImp var, ExpressionLLVM e) implements InstructionLLVM{
public static record AssignLLVMImp(VarLLVMImp var, ExpressionLLVM e) implements InstructionLLVM{
@Override
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
return v.visitAssignLLVM(this, h);
@@ -74,7 +74,7 @@ public class ProgramLLVM {
}
}
public static record CallLLVMImp(DefineLLVMImp f, ArrayList<ValLLVM> params, String str) implements InstructionLLVM{
public static record CallLLVMImp(DefineLLVMImp f, ArrayList<ValLLVM> params, String str) implements InstructionLLVM{ //une expression ?
@Override
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
return v.visitCallLLVM(this, h);
@@ -110,19 +110,6 @@ public class ProgramLLVM {
}
/*public static record ConstLLVMImp(TypeLLVM type, int val) implements ExpressionLLVM{
public <H, S> S accept(ExpressionLLVMVisitor<H, S> v, H h) {
return v.visitConstLLVM(this, h);
}
@Override
public String prettyprinter() {
return val+"";
}
}*/
public static record allocaLLVMImp(TypeLLVM type) implements ExpressionLLVM{
@Override
public <H, S> S accept(ExpressionLLVMVisitor<H, S> v, H h) {
@@ -171,6 +158,7 @@ public class ProgramLLVM {
@Override
public TypeLLVM getType() {
System.out.println("getType");
return type;
}
}
@@ -184,6 +172,7 @@ public class ProgramLLVM {
@Override
public TypeLLVM getType() {
System.out.println("getType");
return type;
}
}