Strucute in place, MonomorpherIr module created
This commit is contained in:
parent
2f45f39435
commit
514d79bd6c
4 changed files with 161 additions and 0 deletions
10
llvm.ll
Normal file
10
llvm.ll
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
@.str = private unnamed_addr constant [3 x i8] c"%i
|
||||
", align 1
|
||||
declare i32 @printf(ptr noalias nocapture, ...)
|
||||
|
||||
; Ident "main": EAdd (TMono (Ident "Int")) (ELit (TMono (Ident "Int")) (LInt 3)) (ELit (TMono (Ident "Int")) (LInt 3))
|
||||
define i64 @main() {
|
||||
%1 = add i64 3, 3
|
||||
call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %1)
|
||||
ret i64 0
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue