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.symbol;
public class ArraySymbol extends Symbol {
private int dim; // -1 means unknown
public ArraySymbol(String name, SymbolType type, int line, int dim) {
super(name, type, line);
this.dim = dim;
}
public int getDim() {
return dim;
}
public void fullValue() {
for (int i = getValueList().size(); i < dim; i++) {
addValue(0);
}
}
}