Skip to content

Commit

Permalink
feat: add partial Long compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zskamljic committed Nov 30, 2024
1 parent 1d17d1d commit cfbebb5
Show file tree
Hide file tree
Showing 38 changed files with 81 additions and 38 deletions.
3 changes: 2 additions & 1 deletion src/main/java/zskamljic/wjvern/llir/GlobalInitializer.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public void finishInitialization(IrClassGenerator classGenerator) {
if (!initializers.containsKey(classGenerator)) return;

var initBuilder = new StringBuilder();
if (!classGenerator.getClassName().startsWith("java/lang/String")&&!classGenerator.getClassName().startsWith("java/lang/Integer")) {
if (!classGenerator.getClassName().startsWith("java/lang/String") && !classGenerator.hasMethodDependency(
"declare void @\"java/lang/String_<init>([BB)V\"(%\"java/lang/String\"*, %java_Array, i8)")) {
initBuilder.append("declare void @\"java/lang/String_<init>([BB)V\"(ptr, ptr, i8) personality ptr @__gxx_personality_v0\n");
}
initBuilder.append("define void @\"").append(classGenerator.getClassName()).append("_var_init\"() personality ptr @__gxx_personality_v0 {\n");
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/zskamljic/wjvern/llir/IrClassGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ public Optional<String> getExceptionDefinition() {
return Optional.of(type);
}

public boolean hasMethodDependency(String signature) {
return methodDependencies.contains(signature);
}

private record StringConstant(int index, int length, String content) {
}
}
1 change: 1 addition & 0 deletions src/main/resources/supported_classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ java/lang/Character
java/lang/CharSequence
java/lang/Comparable
java/lang/Integer
java/lang/Long
java/lang/Number
java/lang/Object
java/lang/String
Expand Down
37 changes: 37 additions & 0 deletions src/main/resources/unsupported_functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,43 @@
"formatUnsignedIntUTF16"
]
},
"java/lang/Long": {
"bySignature": [
{
"name": "<init>",
"signatures": [
"(Ljava/lang/String;)V"
]
}
],
"byName": [
"compress",
"compare",
"compareTo",
"compareUnsigned",
"decode",
"divideUnsigned",
"expand",
"getLong",
"max",
"min",
"remainderUnsigned",
"rotateLeft",
"rotateRight",
"parseLong",
"parseUnsignedLong",
"sum",
"toHexString",
"toOctalString",
"toBinaryString",
"toUnsignedString",
"toStringUTF16",
"toUnsignedString0",
"toUnsignedBigInteger",
"formatUnsignedLong0",
"formatUnsignedLong0UTF16"
]
},
"java/lang/String": {
"bySignature": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/BasicMath.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Comparisons.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ConstructorAndInstanceMethods.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Conversions.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/CustomException.ll
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
i32(%CustomException*)* @"CustomException_getCode()I"
}

@typeInfo_types = private global [1 x i32] [i32 13]
@typeInfo_types = private global [1 x i32] [i32 14]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 1, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Exceptions.ll
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare void @__cxa_end_catch()
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ExceptionsData.ll
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ declare void @__cxa_end_catch()
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ForEach.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ForLoop.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/FunctionOverloading.ll
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
i32(%FunctionOverloading*, i32)* @"FunctionOverloading_doSomething(I)I"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/IfStatements.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Inheritance.ll
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%Inheritance*)* @"Inheritance_childMethod()V"
}

@typeInfo_types = private global [3 x i32] [i32 13, i32 12, i32 1]
@typeInfo_types = private global [3 x i32] [i32 14, i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 3, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/InstanceFields.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/InstanceOf.ll
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ declare void @__cxa_end_catch()
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down Expand Up @@ -94,13 +94,13 @@ label4:
; %object entered scope under name %local.1
; Line 10
%2 = load %"java/lang/Object"*, %"java/lang/Object"** %local.1
%3 = call i1 @instanceof(ptr %2, i32 12)
%3 = call i1 @instanceof(ptr %2, i32 13)
%4 = sext i1 %3 to i32
%5 = icmp eq i32 %4, 0
br i1 %5, label %label1, label %label5
label5:
%6 = load %"java/lang/Object"*, %"java/lang/Object"** %local.1
%7 = call i1 @instanceof(ptr %6, i32 12)
%7 = call i1 @instanceof(ptr %6, i32 13)
br i1 %7, label %label6, label %label7
label7:
call void @__cxa_throw(ptr null, ptr null, ptr null)
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/InterfaceCalls.ll
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ declare void @__cxa_end_catch()
i32(%InterfaceCalls*, %"java/lang/Object")* @"InterfaceCalls_compareTo(Ljava/lang/Object;)I"
}

@typeInfo_types = private global [3 x i32] [i32 12, i32 1, i32 8]
@typeInfo_types = private global [3 x i32] [i32 13, i32 1, i32 8]
@typeInfo_interfaces = private global [1 x i32] [i32 8]
@typeInfo_interface_tables = private global [1 x ptr] [ptr @"InterfaceCalls_java/lang/Comparable_vtable"]
@typeInfo = private global %java_TypeInfo { i32 3, i32* @typeInfo_types, i32 1, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down Expand Up @@ -191,7 +191,7 @@ label0:
%local.1 = alloca %"java/lang/Object"**
store %"java/lang/Object"* %param.1, %"java/lang/Object"** %local.1
%2 = load %"java/lang/Object"*, %"java/lang/Object"** %local.1
%3 = call i1 @instanceof(ptr %2, i32 12)
%3 = call i1 @instanceof(ptr %2, i32 13)
br i1 %3, label %label2, label %label3
label3:
call void @__cxa_throw(ptr null, ptr null, ptr null)
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/MutableParameters.ll
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/NativeMethods.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/NativeVarArgMethods.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ObjectArrays.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Parameters.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Parent.ll
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%Parent*)* @"Parent_dynamic()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ReferenceFields.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ReturnArray.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ReturnReference.ll
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
i32(%ReturnReference*)* @"ReturnReference_returnValue()I"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/ReusedLocals.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Simple.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/StandardMain.ll
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/StaticFields.ll
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/StaticFunctions.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Strings.ll
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/Switch.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/VariableAssignment.ll
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%"java/lang/Object"*)* @"java/lang/Object_finalize()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/VirtualMethods.ll
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ declare void @llvm.memset.p0.i64(ptr,i8,i64,i1)
void(%VirtualMethods*)* @"VirtualMethods_doSomething()V"
}

@typeInfo_types = private global [2 x i32] [i32 12, i32 1]
@typeInfo_types = private global [2 x i32] [i32 13, i32 1]
@typeInfo_interfaces = private global [0 x i32] []
@typeInfo_interface_tables = private global [0 x ptr] []
@typeInfo = private global %java_TypeInfo { i32 2, i32* @typeInfo_types, i32 0, i32* @typeInfo_interfaces, ptr @typeInfo_interface_tables }
Expand Down
Loading

0 comments on commit cfbebb5

Please sign in to comment.