Updated mangling code.

This commit is contained in:
Christoffer Lerno
2024-06-28 00:57:14 +02:00
parent 043833be7b
commit e2a39aa12e
19 changed files with 222 additions and 161 deletions

View File

@@ -17,7 +17,7 @@ fn int foo(int x) @export
}
/* #expect: test.ll
define i32 @test_foo(i32 %0) #0 {
define i32 @test__foo(i32 %0) #0 {
entry:
%x = alloca i32, align 4
%switch = alloca i32, align 4

View File

@@ -718,7 +718,7 @@ entry:
br i1 %eq, label %and.rhs, label %and.phi
and.rhs: ; preds = %entry
%2 = call i8 @char.is_alpha(i8 zeroext %1)
%2 = call i8 @std.ascii.char.is_alpha(i8 zeroext %1)
%3 = trunc i8 %2 to i1
br label %and.phi
@@ -731,7 +731,7 @@ or.rhs: ; preds = %and.phi
br i1 %lt, label %and.rhs1, label %and.phi2
and.rhs1: ; preds = %or.rhs
%4 = call i8 @char.is_alnum(i8 zeroext %1)
%4 = call i8 @std.ascii.char.is_alnum(i8 zeroext %1)
%5 = trunc i8 %4 to i1
br label %and.phi2