Commit graph

564 commits

Author SHA1 Message Date
Folkert
ec0eddb8b2
fix bug in use of alignment in free for tag unions 2023-10-23 13:50:34 -07: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
Brendan Hansknecht
2e2e609547
update zig to 0.11 and update build script
Also update memcpy to avoid recursive memcpy due to optimizations.
2023-10-23 13:50:30 -07:00
Richard Feldman
c5ec8aba4f
Fix to_cc_type a bit 2023-10-17 06:40:16 -04:00
Folkert
94ca207772
formatting 2023-10-07 19:11:37 +02:00
Folkert
6ab54c02e2
drop into_iter in some places 2023-10-07 19:11:36 +02: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
5557fb7e34
repl helper codegen 2023-09-14 14:39:12 +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 de Vries
cca2ebb7ca
Merge pull request #5694 from lukewilliamboswell/windows-zig-fixes
Fixes for Windows zig builtin tests
2023-09-12 14:45:05 +02: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
Luke Boswell
2e0c83ae63
fixes for zig tests Windows 2023-09-12 19:28:11 +10:00
Richard Feldman
dc7e8b43bd
Rename Float to Frac in more places 2023-09-11 08:50:13 -04:00
Folkert
7fb4b60b21
move around hostexposedalias logic 2023-08-09 15:09:03 +02: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
Folkert
334253f47f
check inside a lambda set for whether it is reference counted 2023-07-26 20:06:37 +02:00
Ayaz Hafiz
d7a30966c1
Add explicit casts
For some reason these can no longer be inferred.
2023-07-17 09:50:37 -05:00
Ayaz Hafiz
3a3ee4dedf
Elide lifetimes 2023-07-12 16:10:59 -05:00
Ayaz Hafiz
a8d821bf87
Remove all box references 2023-07-12 15:50:00 -05:00
Ayaz Hafiz
667a69279e
Refcounting null box ptr 2023-07-12 14:46:36 -05:00
Ayaz Hafiz
0385da490a
Support ValuePtr in alias analysis and llvm 2023-07-12 14:46:12 -05:00
Ayaz Hafiz
23f4d02f81
Cleanup 2023-07-12 14:45:03 -05:00
Ayaz Hafiz
6ba6b04a17
Pass function pointer directly rather than load/store into alloca 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
a123820b2b
Fix argument type 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
1cd9deffe2
Sorry checker 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
3e23699bb4
Build easy refcounter for erased 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
bc4c91a68f
Easy mode refcounter 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
f37cc48e88
Build erased load in llvm 2023-07-12 14:45:02 -05:00
Ayaz Hafiz
e1c88c6101
Build erased types 2023-07-12 14:45:01 -05: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
Ayaz Hafiz
7c8e7bbea3
pub crate 2023-07-12 14:43:40 -05:00
Ayaz Hafiz
74d0f8d2e5
llvm types for erasure, function pointer 2023-07-12 14:43:40 -05:00
Ayaz Hafiz
7ea85e44d2
Add Layout::Erased 2023-07-12 14:43:24 -05:00
Ayaz Hafiz
283b9d53d6
Add Expr::ErasedLoad 2023-07-12 14:42:46 -05:00
Ayaz Hafiz
2c838aa5c2
Add mono Expr::ErasedMake 2023-07-12 14:40:16 -05:00
Ayaz Hafiz
cf30f02e01
Expr::FunctionPointer 2023-07-12 14:21:27 -05:00