Printing works now!!!
This commit is contained in:
parent
d3d2c61dc6
commit
8836e6b91f
1 changed files with 1 additions and 2 deletions
|
|
@ -370,9 +370,8 @@ preludeFuns def (Ident xs) arg1 arg2
|
||||||
| "$langle$" `isPrefixOf` xs = pure $ Icmp LLSlt I8 arg1 arg2
|
| "$langle$" `isPrefixOf` xs = pure $ Icmp LLSlt I8 arg1 arg2
|
||||||
| "$minus$" `isPrefixOf` xs = pure $ Sub I64 arg1 arg2
|
| "$minus$" `isPrefixOf` xs = pure $ Sub I64 arg1 arg2
|
||||||
| "printChar$" `isPrefixOf` xs = do
|
| "printChar$" `isPrefixOf` xs = do
|
||||||
increaseVarCount
|
|
||||||
pure . UnsafeRaw $
|
pure . UnsafeRaw $
|
||||||
"add i16 0,0\n call i32 (ptr, ...) @printf(ptr noundef @.char_print_no_nl, i8 noundef " <> toIr arg1 <> ")\n"
|
"add i16 0,0\n call void (ptr, ...) @printf(ptr noundef @.char_print_no_nl, i8 noundef " <> toIr arg1 <> ")\n"
|
||||||
--char_print_no_nl
|
--char_print_no_nl
|
||||||
| otherwise = pure def
|
| otherwise = pure def
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue