Commit graph

6636 commits

Author SHA1 Message Date
Folkert
f4726db63d
flip order of record when layout demands it 2022-07-24 11:49:29 +02:00
Folkert
93005cf2d0
report multiple expect failures 2022-07-24 11:25:02 +02:00
Folkert
29a260a4b3
pass the right region along with inline expects 2022-07-24 11:25:02 +02:00
Richard Feldman
daec85a75e
Merge pull request #3621 from rtfeldman/expect-memcpy
Clone more values into shared expect buffer
2022-07-23 23:00:54 -04:00
Richard Feldman
eb04d4b9f6
Merge pull request #3612 from rtfeldman/tag-alignment
Tag alignment
2022-07-23 22:45:54 -04:00
Folkert
4e83b4352a
reliable i128 alignment 2022-07-24 01:30:10 +02:00
Folkert
c09cb4e3ea
fix stack size of empty tag union 2022-07-23 23:10:56 +02:00
Folkert
aa08256aef
align alloca 2022-07-23 17:07:43 +02:00
Brendan Hansknecht
4077edcaec
fix roc_alloc arg order 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
29b5e11515
add all roc_ functions like roc_alloc instead of just builtins 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
35a452a69b
setup partially functional array loading 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
8b672a3fcd
enable empty list test and fix list init 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
cfe1d3d893
add empty array expr to gen_dev 2022-07-23 07:52:36 -07:00
Folkert
48e0938e8b
fix merge conflict 2022-07-23 15:46:41 +02:00
Folkert
63b2b060c9
fix list non-memcopy clone 2022-07-23 15:42:46 +02:00
Richard Feldman
8096bb4021
Merge pull request #3604 from rtfeldman/use-instant-over-system-time
Use Instant over SystemTime to record timings
2022-07-23 08:29:43 -04:00
Folkert de Vries
9ba188d534
Merge pull request #3556 from rtfeldman/gen-dev/quicksort
Gen dev/quicksort
2022-07-23 14:28:41 +02:00
Folkert
93c331e1aa
Merge remote-tracking branch 'origin/trunk' into tag-alignment 2022-07-23 14:27:06 +02:00
Folkert
954a4fbe32
WIP 2022-07-23 14:25:38 +02:00
Folkert de Vries
860df057dc
Merge pull request #3600 from rtfeldman/i3298
Various improvements to is-open constraints/catch-all branches in patterns
2022-07-23 12:49:35 +02:00
Folkert
d54428571f
fix layout test 2022-07-23 11:46:51 +02:00
Brendan Hansknecht
fae2ed7a2b
Merge remote-tracking branch 'origin/trunk' into gen-dev/quicksort 2022-07-22 23:28:46 -07:00
Brendan Hansknecht
fd833df649
correct aarch64 c call conv 2022-07-22 23:04:11 -07:00
Richard Feldman
c6eff66f4b
Merge remote-tracking branch 'origin/trunk' into use-instant-over-system-time 2022-07-22 21:01:09 -04:00
Folkert de Vries
d55d1b00d9
Merge pull request #3611 from rtfeldman/i3266
Emit runtime error when tag unions have an error type
2022-07-23 01:28:55 +02:00
Ayaz Hafiz
8f7bae3617
Simplify boolean expr 2022-07-22 18:21:34 -04:00
Ayaz Hafiz
838ba14581
Clippy 2022-07-22 18:16:57 -04:00
Ayaz Hafiz
59ab1da83f
Compile branches in the presence of degenerate patterns
Closes #3614
2022-07-22 18:16:02 -04:00
Folkert
984000095f
clone structs and tags if they are copy 2022-07-23 00:15:38 +02:00
Folkert
d4feaf871b
add llvm expect cloning 2022-07-23 00:09:25 +02:00
Folkert
ab3a431db7
add string cloning helper 2022-07-23 00:08:01 +02:00
Ayaz Hafiz
f2fc6e16ec
Remove loc_branches which is never read 2022-07-22 17:29:20 -04:00
Ayaz Hafiz
4031770836
Mark branch patterns degenerate when they don't bind symbols body needs 2022-07-22 17:26:45 -04:00
Richard Feldman
bf8711f2cb
Merge pull request #3605 from rtfeldman/wasm-test-cherrypicks
wasm test cherrypicks
2022-07-22 17:06:01 -04:00
Ayaz Hafiz
ed6ee71225
Add test when bound symbols differ in branch patterns, but no bound symbol is used 2022-07-22 16:51:44 -04:00
Ayaz Hafiz
ee516eaa2f
Don't send delayed errors if we're told to ignore problems 2022-07-22 16:51:29 -04:00
Ayaz Hafiz
b04764bdd6
Support parsing opaque destructures as first item in nested body
Closes #3198
2022-07-22 16:35:02 -04:00
Folkert
70fcb574dd
update layout helpers 2022-07-22 21:56:24 +02:00
Ayaz Hafiz
5ad04dcd2c
Emit runtime error when tag unions have an error type
Closes #3266
2022-07-22 15:46:09 -04:00
Folkert
6d88d4106f
remove dead code 2022-07-22 21:15:41 +02:00
Folkert
20c63cd2c9
add tests 2022-07-22 21:13:55 +02:00
Folkert
6cabf11cbc
gen tests with new tag layout 2022-07-22 21:13:55 +02:00
Folkert
9cb2bd04fd
fix from wasm32 RocResult implementation 2022-07-22 21:13:55 +02:00
Folkert
cd2311003e
pull out build_struct 2022-07-22 21:13:54 +02:00
Folkert
90e3021904
make pub(crate) 2022-07-22 21:13:54 +02:00
Folkert
e6104ee52f
update api usage in wasm backend 2022-07-22 21:13:53 +02:00
Folkert
4977d1c65e
use RocUnion constants for tag index 2022-07-22 21:13:53 +02:00
Folkert
366429303c
add RocUnion 2022-07-22 21:13:53 +02:00
Folkert
22fea90cd6
fix implementation of UnionLayout::tag_id_offset 2022-07-22 21:13:52 +02:00
Folkert
3ca8dfa3ef
add UnionLayout::tag_id_offset 2022-07-22 21:13:51 +02:00