tableau update

This commit is contained in:
Vu Tuan Minh
2025-04-30 14:07:05 +02:00
parent 43ef0b93d3
commit 19c637e323
4 changed files with 24 additions and 6 deletions

View File

@@ -74,6 +74,7 @@ public interface Interface {
public S visitBooleanLLVM(BooleanLLVMImp e, H h);
public S visitCharLLVM(CharLLVMImp e, H h);
public S visitPointerLLVM(PointerLLVMImp e,H h);
public S visitArrayLLVM(ArrayLLVMImp e, H h);
}
}

View File

@@ -219,4 +219,9 @@ TypeLLVMVisitor<String,String>
public String visitPointerLLVM(PointerLLVMImp e, String h) {
return e.type().accept(this, h) + "*";
}
@Override
public String visitArrayLLVM(ArrayLLVMImp e, String h){
return "";
}
}

View File

@@ -230,4 +230,10 @@ public class ProgramLLVM {
return v.visitPointerLLVM(this, h);
}
}
}
public static record ArrayLLVMImp(TypeLLVM type, Integer size) implements TypeLLVM{
public <H,S> S accept(TypeLLVMVisitor<H, S> v, H h) {
return v.visitArrayLLVM(this, h);
}
}
}