Commit graph

511 commits

Author SHA1 Message Date
Jared Ramirez
faa8f66b6c Add gen support for Nat 2021-01-01 17:40:47 -06:00
Folkert
2a3bf72d60 fleshing out invoke 2021-01-01 21:16:18 +01:00
Folkert
d27c56eba8 basic implementation of invoke for llvm 2021-01-01 20:22:05 +01:00
Folkert
ca24f1cd38 fix llvm build 2021-01-01 16:28:35 +01:00
Folkert
6bc0cf33a5 add unreachable instruction to the mono IR 2021-01-01 02:26:56 +01:00
Folkert
754521c4c3 all the clippy fixes 2021-01-01 00:40:41 +01:00
Folkert
728298d15a automatic clippy fixes 2021-01-01 00:05:45 +01:00
Folkert
5859568d92 remove Cond 2020-12-31 20:58:30 +01:00
Jared Ramirez
791a0e9404 Use precision in mono/ir to determine which number to generate 2020-12-29 09:33:55 -06:00
Jared Ramirez
5e332cbad9 [WIP] F32 gen 2020-12-28 14:50:01 -06:00
Jared Ramirez
9b1769b3fb Add basic tests for number gen 2020-12-28 14:50:01 -06:00
Folkert
5418dd8e76 clippy 2020-12-26 00:52:37 +01:00
Folkert
125146aac7 Merge remote-tracking branch 'origin/trunk' into bughunt 2020-12-26 00:51:22 +01:00
Folkert
59d6cdba04 make Num.neg raise on overflow 2020-12-26 00:50:09 +01:00
Folkert
51cf54e367 raise exception on Num.abs overflow 2020-12-25 21:26:29 +01:00
Celso Bonutti Filho
f3bd5368f0 feat: adds Num.mulWrap and Num.mulChecked 2020-12-23 13:42:18 -03:00
Celso Bonutti Filho
cfbc4d1c54 feat: throws exception on multiplication overflow 2020-12-23 10:17:16 -03:00
Celso Bonutti Filho
fe588c120c adds Num.subChecked 2020-12-22 23:27:16 -03:00
Celso Bonutti Filho
5d2abc2bd2 throws subtraction overflow error for floats 2020-12-22 23:26:50 -03:00
Celso Bonutti Filho
176cdd0274 adds Num.subWrap 2020-12-22 22:17:45 -03:00
Celso Bonutti Filho
c6b258c50c throws error when Num.sub overflows 2020-12-22 22:17:18 -03:00
Celso Bonutti Filho
0a24f3b4b4 adds Num.bitwiseAnd 2020-12-20 19:55:10 -03:00
Folkert
434c6504df increment result of List.get 2020-12-14 21:30:55 +01:00
Folkert
a5e93cc21b pass arguments (e.g. Msg, Model) by-reference, so the host does not need to know their size 2020-12-13 22:08:12 +01:00
Folkert
a67a750fdc make the example loop a couple of times 2020-12-13 20:05:00 +01:00
Folkert
f00bd9ba01 fix refcount bug
closures were not incremented, but were decremented. This lead to memory corruption
2020-12-13 19:57:51 +01:00
Folkert
30e3f3bd25 clarify len to be the number of list elements 2020-12-13 19:49:49 +01:00
Folkert
462f6ac8e5 use C calling convention (approximation) when calling foreign functions 2020-12-12 01:30:39 +01:00
Folkert
539f173472 set correct closure tag_id 2020-12-11 20:25:15 +01:00
Folkert
84421ad06d fix bug in closure argument unpacking 2020-12-10 20:45:59 +01:00
Folkert
d0686582d0 comment invalid assertion 2020-12-08 20:29:59 +01:00
Folkert
fc85761783 fix issue with one-element records containing a union in the closure argument 2020-12-08 16:05:51 +01:00
Folkert
ac77177932 fix stack overflow in llvm code gen 2020-12-06 02:29:41 +01:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Folkert
82e87d04e3 rename str.len to str.number_of_bytes 2020-12-03 21:23:07 +01:00
Folkert
22d798b7c7 add Str.endsWith 2020-12-03 19:16:50 +01:00
Folkert
3162ab5fc4 simplify str_len 2020-12-03 16:22:47 +01:00
Folkert
5d00910a38 fix memory leaks in lists 2020-12-01 23:01:17 +01:00
Folkert
63f4fbf1ef use zig-defined Str.concat 2020-12-01 23:00:39 +01:00
Folkert
2475054174 Merge remote-tracking branch 'origin/fix-debug-infos' into llvm-debug-info 2020-11-26 21:32:01 +01:00
Folkert
1022b4ef42 fix the effect Main.roc file and lib.rs file 2020-11-26 20:53:33 +01:00
Richard Feldman
e1575beaa3
Merge pull request #738 from rtfeldman/fix-alignment
Fix alignment
2020-11-25 22:54:18 -05:00
Folkert
7f83d9d3a0 fix mono tests, again 2020-11-25 20:06:53 +01:00
Folkert
ccd2e0ecf4 alignment in single element tag unions 2020-11-24 22:01:57 +01:00
Lucas
dfcf7bb7a2
Merge branch 'trunk' into rvcas/list_functions 2020-11-24 09:07:28 -05:00
rvcas
8feab843ea feat(List): add walk function and fix walkBackwards 2020-11-24 09:01:03 -05:00
rvcas
d9e906b8fb feat(List): rename walkRight to walkBackwards 2020-11-23 19:39:30 -05:00
Richard Feldman
88d2ad1ffc Use roc__ prefix for exposed app functions 2020-11-23 00:24:40 -05:00
Richard Feldman
5eee74f209
Merge pull request #726 from rtfeldman/llvm-dce
DCE zig builtins
2020-11-22 22:13:10 -05:00
Folkert
58246ad572 DCE zig-defined builtins that aren't used in user code 2020-11-23 02:01:57 +01:00