0.5.3: Single-module not respected. Fix issue with compiler defined types. Fix optimization levels for projects. Use GEP i8 on offsets. Optimize foreach on len 1 arrays. Move panic blocks last. Fix generic module wildcard imports. Deprecate init_temp / init_new. Fix issue with macro vaarg and untyped lists. Fix extern const globals.

This commit is contained in:
Christoffer Lerno
2023-12-27 00:43:37 +01:00
committed by Christoffer Lerno
parent e91f6e268e
commit deb4cc7c4b
208 changed files with 9555 additions and 9369 deletions

View File

@@ -87,22 +87,19 @@ fn int main()
@init.foo = internal unnamed_addr global ptr @"test.$global$lambda1", align 8
@init.foo.2 = internal unnamed_addr global ptr @"test.$global$lambda2", align 8
; Function Attrs:
define void @test.Foo.test(ptr %0, i32 %1) #0 {
entry:
%2 = getelementptr inbounds %Foo, ptr %0, i32 0, i32 0
%3 = load ptr, ptr %2, align 8
call void %3(ptr %0, i32 %1)
%2 = load ptr, ptr %0, align 8
call void %2(ptr %0, i32 %1)
ret void
}
; Function Attrs:
define void @test.FooTest.init(ptr %0) #0 {
entry:
%1 = getelementptr inbounds %FooTest, ptr %0, i32 0, i32 0
%2 = getelementptr inbounds %Foo, ptr %1, i32 0, i32 0
%3 = load ptr, ptr @init.foo, align 8
store ptr %3, ptr %2, align 8
%1 = load ptr, ptr @init.foo, align 8
store ptr %1, ptr %0, align 8
ret void
}
@@ -124,7 +121,7 @@ if.exit: ; preds = %entry
ret void
}
; Function Attrs:
define internal void @"test.$global$lambda2"(ptr %0, i32 %1) #0 {
entry:
%z = alloca ptr, align 8

View File

@@ -32,12 +32,12 @@ fn void main()
store ptr @"test.test$lambda1", ptr %z, align 8
%1 = call i32 %0(i32 3)
store ptr @"test.test$lambda2", ptr %z2, align 8
%7 = call double %6(double 3.300000e+00)
%6 = call double %5(double 3.300000e+00)
store ptr @"test.test$lambda2", ptr %z6, align 8
%13 = call double %12(double 3.300000e+00)
%18 = call i32 @"test.test2$lambda3"(i32 3)
%23 = call i32 @"test.test2$lambda3"(i32 3)
%28 = call double @"test.test2$lambda4"(double 3.300000e+00)
%11 = call double %10(double 3.300000e+00)
%15 = call i32 @"test.test2$lambda3"(i32 3)
%19 = call i32 @"test.test2$lambda3"(i32 3)
%23 = call double @"test.test2$lambda4"(double 3.300000e+00)
define internal i32 @"test.test$lambda1"(i32 %0) #0 {
define internal double @"test.test$lambda2"(double %0) #0 {

View File

@@ -23,7 +23,7 @@ define void @simple_lambda.main() #0 {
entry:
%z = alloca i32, align 4
%0 = call i32 @simple_lambda.xy(ptr @"simple_lambda.main$lambda1")
%5 = call i32 @simple_lambda.xy(ptr @"simple_lambda.main$lambda2")
%4 = call i32 @simple_lambda.xy(ptr @"simple_lambda.main$lambda2")
define internal i32 @"simple_lambda.main$lambda1"() #0 {