Remove old try/catch. Remove incorrect flattening. Basic asm. Start work on if-catch-switch.

This commit is contained in:
Christoffer Lerno
2021-08-24 12:41:20 +02:00
parent f7803fd192
commit 1751e7ece5
17 changed files with 160 additions and 508 deletions

View File

@@ -139,8 +139,8 @@ after_check17: ; preds = %testblock
end_block: ; preds = %after_check17, %error
%13 = load i64, i64* %e, align 8
%intbool = icmp ne i64 %13, 0
br i1 %intbool, label %if.then18, label %if.exit19
%neq = icmp ne i64 %13, 0
br i1 %neq, label %if.then18, label %if.exit19
if.then18: ; preds = %end_block
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i32 0, i32 0))

View File

@@ -82,8 +82,8 @@ after.errcheck: ; preds = %testblock1
end_block: ; preds = %after.errcheck, %error3, %error
%2 = load i64, i64* %err, align 8
%intbool = icmp ne i64 %2, 0
br i1 %intbool, label %if.then, label %if.else
%neq = icmp ne i64 %2, 0
br i1 %neq, label %if.then, label %if.else
if.then: ; preds = %end_block
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0))