Commit graph

25151 commits

Author SHA1 Message Date
Ayaz Hafiz
e3e01b6040
decode_from_utf8_result as roc value 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
8f9e95b482
Unused var 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
74f4a2466a
Load eq_ptr_to_struct 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
5dfa0b114e
Stray dbg 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
879a97ee4c
Fix compare for big structs 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
5c1a601074
No need for mut 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
130501eb6a
layout_interner does not need to be mutable 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
65ca836ecb
layout_interner does not need to be mutable 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
510b920701
argument_type_from_struct_layout 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
c09a33f9f4
Inline RocStructType back in 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
7b1dc7eff0
Update test function catcher to take records by reference 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
de44e90fda
Add Layout::STR_PTR 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
00945ff2eb
Always print llvm on failure 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
b24a907662
Consistent wrapper result 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
2d91225b01
Fix wrapper result type 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
8070736cc7
Simplify construction of RocReturn 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
9bf5f250f6
Get struct by pointer 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
47fb9fe6f2
Implement struct-by-reference for structs over 4 machine words 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
e1c874ac23
More larger stack 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
cc2599b473
Use larger stack for abilities test 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
e1f8d68055
Make loading from struct a method 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
bb3cfb9cd3
Break up arguments of insert 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
c57d254205
No need for extra qualifier 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
4d65db22d2
Remove scope.get 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
bbef63f28f
Move load_symbol_and_layout to scope 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
6e23365551
Move load_symbol to scope 2023-06-16 10:30:38 -05:00
Ayaz Hafiz
8d3d4ed9d8
Move LLVM scope ops to a separate module 2023-06-16 10:30:38 -05:00
Ayaz Hafiz
470ed119c2
Move roc struct operations to a new "struct" module 2023-06-16 10:30:38 -05:00
Folkert de Vries
1646dc4e73
Merge pull request #5551 from roc-lang/i5476
Support fixpoint-fixing under recursion variables
2023-06-14 18:33:42 +02:00
Folkert de Vries
1ba7b069ea
Merge pull request #5550 from roc-lang/i5479
Use correct variable when compiling dbg continuation
2023-06-14 18:32:52 +02:00
Anton-4
ab3ef04ab7
Merge pull request #5537 from lukewilliamboswell/docs
Various updates for docs generation
2023-06-14 17:10:09 +02:00
Anton-4
bb7877f7e1
Merge pull request #5553 from roc-lang/box-docs
Box.roc documentation
2023-06-14 12:06:01 +02:00
Anton-4
c8ebe9071c
Box.roc documentation
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-14 11:09:37 +02:00
Ayaz Hafiz
49a92e5ef1
Support fixpoint-fixing under recursion variables
Sometimes, we might need to fixpoint-fix a unification like

[ Bar [ Bar <a>, Foo ], Foo ] as <a>  🛠️  [ Bar <b>, Foo ] as <b>

where we hit a comparison between <a> and <b>. In this case, follow each
recursion point independently and see if we can find the chain to the needle
we were searching for.

Closes #5476
2023-06-13 17:15:11 -05:00
Ayaz Hafiz
c91b82198d
Use correct variable when compiling dbg continuation
Closes #5479
2023-06-13 16:45:02 -05:00
Folkert de Vries
b3c598fcf6
Merge pull request #5539 from roc-lang/dev-gen-primitives
dev backend: de-duplicate function names based on the lambda set
2023-06-13 22:13:34 +02:00
Ayaz
c907b12cf0
Merge pull request #5548 from JTeeuwissen/fix-oc-test-panics-after-roc-check-said-zero-errors,-zero-warnings
Index array symbols unknown symbols
2023-06-13 13:44:12 -05:00
Folkert de Vries
79e9ba3dd1
Merge pull request #5529 from JTeeuwissen/joinpoint-specialisation
Joinpoint specialisation
2023-06-13 18:42:02 +02:00
J.Teeuwissen
5d66ae4295
removed target info 2023-06-13 17:15:04 +02:00
J.Teeuwissen
36abaec07d
Index array symbols unknown symbols 2023-06-13 15:56:55 +02:00
Richard Feldman
07dfa5e371
Merge pull request #5541 from roc-lang/always-build-roc
ensure we always build roc when running via the helper for tests
2023-06-11 22:25:48 -04:00
Brendan Hansknecht
9713a8d151
spell check 2023-06-11 11:06:11 -07:00
Brendan Hansknecht
b896f70ddc
ensure we always build roc when running via the helper for tests 2023-06-11 10:59:05 -07:00
Richard Feldman
f431a2c576
Merge pull request #5534 from fdbeirao/add-min-max
Add Num.min and Num.max
2023-06-11 11:28:17 -04:00
Folkert
2eaf158053
fix register not cleared before reading bool 2023-06-11 15:29:20 +02:00
Folkert
cb5241380f
enable more dev backend tests 2023-06-11 13:39:44 +02:00
Folkert
59da1ea891
consistently name function symbols
previously the dev backend did not take into account lambda name information to generate function names. This could cause the same function name to be defined twice
2023-06-11 13:39:43 +02:00
Folkert
58c6c664fd
pass LambdaName down for builtin functions 2023-06-11 13:39:43 +02:00
Folkert
b048cb38a6
take lambda name into account when generating function id in dev backend 2023-06-11 13:39:43 +02:00
Folkert
728f982aa5
dev backend NumCompare 2023-06-11 13:39:42 +02:00