Commit graph

149 commits

Author SHA1 Message Date
Folkert
23ea151d5f make decimal math ops correctly report overflow 2021-07-18 22:04:32 +02:00
Folkert
cb42f0c039 Merge remote-tracking branch 'origin/trunk' into add-dec-types 2021-07-18 16:54:38 +02:00
Jared Ramirez
de7cab629d
Merge branch 'trunk' into add-dec-types 2021-07-17 17:21:40 -07:00
Folkert
e19b03f290 WIP 2021-07-18 00:04:10 +02:00
Folkert
1655d2ba92 fix memory access bug in tags 2021-07-17 17:11:35 +02:00
Richard Feldman
c415b3b799
Merge branch 'trunk' into reset-reuse 2021-07-14 22:45:42 -04:00
Folkert
15eba1a687 give it another go 2021-07-14 17:55:53 +02:00
Folkert
568e4e390a fix 2021-07-14 17:27:11 +02:00
Folkert
3a0ba76f8b Merge remote-tracking branch 'origin/trunk' into add-dec-types 2021-07-14 14:19:30 +02:00
Folkert
7d256067f9 allow multiple guards in the same pattern 2021-07-12 17:40:49 +02:00
Folkert
e32a06b088 assign guarded patterns at the last moment 2021-07-11 00:39:30 +02:00
Folkert
78309f2607 cleanup 2021-07-10 23:49:24 +02:00
Folkert
e05753afd8 working decision tree gen for all tests 2021-07-10 21:28:32 +02:00
Folkert
7abfca4388 expand tests 2021-07-10 14:27:43 +02:00
Folkert
541a62b109 cleanup: we either have a guard or a test, not both 2021-07-10 14:01:18 +02:00
Jared Ramirez
a35cc321ab Address various bits of feedback 2021-07-09 09:30:45 -07:00
Jared Ramirez
67eef2c97f Merge branch 'trunk' of https://github.com/rtfeldman/roc into add-dec-types 2021-07-08 16:47:42 -07:00
Folkert
0fbf540d69 move Guard into the Branch 2021-07-07 21:21:50 +02:00
Folkert
ca16dc3459 add tests 2021-07-07 16:09:15 +02:00
Folkert
e7c88cac98 refactor guards 2021-07-04 21:17:57 +02:00
Folkert de Vries
b35eb85e03
Merge branch 'trunk' into incompatible_type_param 2021-07-04 01:09:04 +02:00
rvcas
16542f0e1e test: incompatible type params in if 2021-07-03 13:04:38 -04:00
Eric Correia
8deb377d30 tag must be its own type fix 2021-07-03 12:06:48 -04:00
Folkert
eb478cdaac add eq tests for non-equal tags 2021-06-29 22:35:12 +02:00
Folkert
6223892c6b include the tag id in the hash! 2021-06-29 22:30:36 +02:00
Folkert
978cea4b8a passing tests 2021-06-28 22:28:47 +02:00
Folkert
16f6259f7f fix all the things 2021-06-27 14:39:28 +02:00
Folkert
99d0d9c732 WIP 2021-06-27 13:49:49 +02:00
Folkert
8add147dcf change over nullable wrapped 2021-06-27 01:35:15 +02:00
Folkert
8aa3690d77 fix test in release mode 2021-06-26 20:03:53 +02:00
Folkert
98a9dc0945 remove tag id from data bytes for non-recursive tags 2021-06-26 17:01:23 +02:00
Folkert
fd9b826398 fix the issues 2021-06-25 22:27:11 +02:00
Jared Ramirez
ecb89da7b8 Add basic Dec operations 2021-06-25 10:25:03 -07:00
Jared Ramirez
0827123c88 Adding Decimals work!! 2021-06-24 11:15:52 -07:00
Folkert
0eba188493 WIP 2021-06-24 20:12:37 +02:00
Jared Ramirez
4d6e5a1a4f [WIP] Add Dec/Decimal builtin types 2021-06-23 19:30:16 -07:00
Folkert
4bbaa007f3 remove EmptyStruct from wrapper 2021-06-21 21:16:21 +02:00
Richard Feldman
53ccef0506 nightly clippy
I was on nightly for benchmarks, and these all seem reasonable.
2021-06-18 15:21:11 -04:00
Folkert
0d5e91eb92 fix entry points 2021-06-13 22:13:37 +02:00
Anton-4
22d834ebd9 Merge branch 'trunk' of github.com:rtfeldman/roc into typos_ci 2021-06-07 12:33:26 +02:00
Richard Feldman
57676057fa Rename gen to gen_llvm
This way, we have gen_dev and gen_llvm representing the two
different compiler backends.
2021-06-06 07:56:47 -04:00
Richard Feldman
b05342c678 Split out an optional "llvm" feature
Also move OptLevel out of roc_gen (which
should really be called gen_llvm) and into roc_mono,
so it's no longer coupled to LLVM.
2021-06-06 00:32:58 -04:00
Anton-4
314503cf7f fixed typos, added typos checking to CI 2021-06-05 20:02:54 +02:00
Folkert
ab8abb8f11 centralize llvm logic 2021-06-02 21:28:51 +02:00
Folkert
d7ed1de15f Merge remote-tracking branch 'origin/trunk' into catch-cleanup 2021-06-01 21:48:06 +02:00
tarjei
bec6e556d5 Merge branch 'trunk' into builtins/list-swap 2021-05-31 19:16:31 +02:00
Folkert
50ea46e73e add test 2021-05-29 23:29:33 +02:00
tarjei
ade591dd10 Fix plumbing 2021-05-29 22:21:25 +02:00
Folkert
3636e18a18 centralize inkwell imports 2021-05-29 21:46:33 +02:00
tarjei
98011f48a8 Add tests
These tests cover, for good measure:

 - swapping an empty list
 - swapping elements outside a list
 - swapping a short list
 - swapping with reversed args
 - swapping the middle of a long list
 - swapping with one index outside the list
 - swapping the same index with itself
2021-05-29 20:58:59 +02:00