Updated mangling and bump to 0.2.18

This commit is contained in:
Christoffer Lerno
2022-07-19 21:44:02 +02:00
committed by Christoffer Lerno
parent 4afec24434
commit d3a053e049
393 changed files with 2811 additions and 2768 deletions

View File

@@ -23,13 +23,13 @@ fn int test()
/* #expect: example.ll
define i32 @example.square(i32 %0) #0 {
define i32 @example_square(i32 %0) #0 {
entry:
%mul = mul i32 %0, %0
ret i32 %mul
}
define i32 @example.test() #0 {
define i32 @example_test() #0 {
entry:
%a = alloca i32, align 4
%b = alloca i32, align 4
@@ -37,7 +37,7 @@ entry:
%b2 = alloca i32, align 4
store i32 2, i32* %a, align 4
store i32 3, i32* %b, align 4
store i32 (i32)* @example.square, i32 (i32)** %a1, align 8
store i32 (i32)* @example_square, i32 (i32)** %a1, align 8
store i32 2, i32* %b2, align 4
%0 = load i32 (i32)*, i32 (i32)** %a1, align 8
%1 = load i32, i32* %b2, align 4