Commit graph

116 commits

Author SHA1 Message Date
Luke Boswell
1051ba6569
cargo fmt 2023-12-12 21:15:17 +11:00
Luke Boswell
4d6546f5b0
fixes for Windows gen_num 2023-12-11 22:10:34 +11:00
John Murray
298f93d20c
update a bunch of panic message to be capitalized 2023-11-28 20:46:09 -05:00
Luke Boswell
8e06f22483
clippy 2023-10-23 13:50:32 -07:00
Brendan Hansknecht
72a488e72e
update llvm wasm calling convention 2023-10-23 13:50:32 -07:00
Brendan Hansknecht
398bf2f96c
update rust code to llvm-16 and fix build
also update:
 - llvm frame address
 - erased function type
 - dec passing to zig
 - gen dev storage size
2023-10-23 13:50:31 -07:00
Sekerez
fa65d89a3c Add support for Num.abs to Dec type 2023-09-24 23:10:25 -04:00
Brendan Hansknecht
3aca2d7412
add gte and lte to dec 2023-09-19 09:32:57 +02:00
Brendan Hansknecht
7a37a24e8c
clippy 2023-09-16 23:07:46 -07:00
Brendan Hansknecht
346eb80bd1
add dec trig functions 2023-09-16 22:55:23 -07:00
Brendan Hansknecht
108d9a54e3
Switch Num.tan to a zig builtin
It should be able to share some work between sine and cosine to run faster.
2023-09-16 21:27:51 -07:00
Folkert
e850f94d05
a proper fix for llvm wasm checked arithmetic 2023-09-15 14:53:00 +02:00
Folkert
89472bf495
fix most dev backend tests 2023-09-13 20:24:16 +02:00
Folkert
5ca3d3bcf1
make llvm tests work again 2023-09-13 20:24:15 +02:00
Luke Boswell
9507c527c8
Merge pull request #5799 from roc-lang/luke-windows-changes
fix  memcpy on windows
2023-09-13 05:31:58 +10:00
Folkert
fa0a7fabb8
clippy 2023-09-12 14:29:50 +02:00
Luke Boswell
dd766686d1
windows fix getScalarUnsafe, run gen_str tests 2023-09-12 14:29:50 +02:00
Luke Boswell
e76c63f448
fix windows function pointer return 2023-09-12 14:29:49 +02:00
Richard Feldman
dc7e8b43bd
Rename Float to Frac in more places 2023-09-11 08:50:13 -04:00
Folkert
44d03eebfa
switch over to alloca expr 2023-07-30 18:48:35 +02:00
Folkert
cdd2aab217
add alloca as an expression 2023-07-30 18:46:00 +02:00
Folkert
ce640fe65f
unwrap lambda sets for RC 2023-07-28 17:21:30 +02:00
Ayaz Hafiz
b8c1436a75
Pass less arguments around 2023-07-12 14:45:00 -05:00
Ayaz Hafiz
13d1232f7d
Erased functions do not take a func spec 2023-07-12 14:44:17 -05:00
Folkert
2d616d1fe9
manual clippy fixes 2023-07-10 18:27:10 +02:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Richard Feldman
0ade2a85d2
Merge pull request #5622 from roc-lang/reset-reuse-free
free or reuse unconditionally when value is unique
2023-06-28 09:58:10 -04:00
Folkert
fc3004da58
free or reuse unconditionally when value is unique 2023-06-27 17:37:45 +02:00
Folkert
8738c95d6f
give 0 as a value to our enum attributes 2023-06-27 00:07:33 +02:00
Folkert
654cf7b861
changes after review 2023-06-24 14:49:57 +02:00
Folkert
b497c76e44
clippy 2023-06-24 14:49:51 +02:00
Folkert
4a5b6a7a0a
never inline overflow panicking code
it creates too many allocas, growing the stack frame
2023-06-24 14:49:49 +02:00
Folkert
9c85fb90d3
fix bugs 2023-06-24 14:49:47 +02:00
Folkert
0247237fe8
WIP 2023-06-24 14:49:46 +02:00
Folkert
76dcb75ff6
add Ptr lowlevels 2023-06-24 14:49:46 +02:00
Hannes
97fa6758d0 Rename trimLeft to trimStart and trimRight to trimEnd 2023-06-19 13:17:59 +08:00
Ayaz Hafiz
41597cbab7
Do not make LayoutInterner mutable 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
8aef12bd36
call_roc_function takes repr 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
7ab044d79f
argument_type_from_layout takes layoutrepr 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
390e9f8648
load_roc_value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
07f40baf62
use_roc_value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
8495f3b085
Have basic_type_from_layout take LayoutRepr 2023-06-17 18:12:17 -05:00
Ayaz Hafiz
ec38d8a16d
Clippy 2023-06-16 11:21:17 -05:00
Ayaz Hafiz
b193d6c726
Fix loads in ToNumChecked 2023-06-16 11:18:43 -05:00
Ayaz Hafiz
4f626bca53
Fix checked_dec operations 2023-06-16 11:13:18 -05:00
Ayaz Hafiz
38d5ec374a
Clippy 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
e3e01b6040
decode_from_utf8_result as roc value 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
8070736cc7
Simplify construction of RocReturn 2023-06-16 10:30:40 -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