Folkert
d2d87949c8
remove random write to pointer
2023-12-11 21:07:15 +01:00
Folkert
590282b14f
make glue use a setjmp/longjmp panic handler
2023-12-11 20:33:21 +01:00
Brendan Hansknecht
fb049b661a
Remove early DCE of builtins
...
Early DCE was sometimes cleaning up functions that we actaully still needed.
At some point we can come back to it and try to properly protect all special functions.
Until then, this still enables DCE, but it runs later with the full generated Roc module.
2023-12-11 10:44:57 -08:00
Luke Boswell
4d6546f5b0
fixes for Windows gen_num
2023-12-11 22:10:34 +11:00
Brendan Hansknecht
3120dee509
Merge pull request #6238 from roc-lang/dict-follow-up
...
Dict follow up and addition of releaseExcessCapacity
2023-12-11 02:15:44 -08:00
Brendan Hansknecht
f262102299
cleanup list and str builtin naming from refcount to allocation
2023-12-10 19:52:28 -08:00
Brendan Hansknecht
b39d604745
Dict follow up and addition of releaseExcessCapacity
2023-12-10 00:06:58 -08:00
Brendan Hansknecht
1ad9933b38
add some missed symbols that roc needs
2023-12-09 18:33:23 -08:00
Brendan Hansknecht
e621de328d
fix dce of compiler-rt
2023-12-09 18:11:23 -08:00
Brendan Hansknecht
e336aa525c
Merge pull request #6062 from JRMurr/div-0-should-crash
...
Update zig `@panic` calls to `roc_panic` for numeric errors
2023-12-05 12:28:47 -08:00
Brendan Hansknecht
05c1b6c583
more debug info corrections
2023-12-04 14:27:02 -08:00
Brendan Hansknecht
496cd6710a
fix debug info and add it all to the llvm backend
2023-12-04 12:55:33 -08:00
Brendan Hansknecht
787d7f85ac
switch dbg arg ordering to make it backwards compatible
2023-12-02 21:18:32 -08:00
Brendan Hansknecht
6c60da2832
add dbg impl for use with roc test
2023-12-02 21:18:32 -08:00
Brendan Hansknecht
3966d63e2f
add src and location to dbg
2023-12-02 21:18:31 -08:00
Ayaz
20bcd70ad2
Merge branch 'main' into div-0-should-crash
2023-12-02 20:10:32 -06:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74
2023-12-02 20:09:06 -06:00
Brendan Hansknecht
1f14aa84a2
misc cleanup suggestions
2023-11-29 21:05:56 -08:00
Brendan Hansknecht
f5fb01fd53
Get tests passing
...
Add roc_dbg to some platforms.
Also start updating some roc_panic impls.
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
e6cc43492a
rip out old dbg and setup reasonable base debug location info
2023-11-29 21:05:49 -08:00
Brendan Hansknecht
3d6c140a30
get minimal roc_dbg
working
2023-11-29 21:05:49 -08:00
John Murray
298f93d20c
update a bunch of panic message to be capitalized
2023-11-28 20:46:09 -05:00
Folkert
c019ced31d
various
2023-11-18 23:05:55 +01:00
HajagosNorbert
9c21ac1388
rename to GetElementPointer, index -> indices
2023-11-13 15:48:05 +01:00
HajagosNorbert
90223022af
remove tag_id in favor of index
2023-11-13 15:48:05 +01:00
HajagosNorbert
347431d1df
index to slice of indicies
2023-11-13 15:48:05 +01:00
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