HajagosNorbert
d71b386715
Merge branch 'main' into get-pointer
2023-11-21 11:15:28 +01:00
HajagosNorbert
6975294278
format code & replace vec!(in arena;...) with arena.alloc([...])
2023-11-21 11:09:42 +01:00
Folkert
b3177a157c
first automatic changes
2023-11-18 22:38:04 +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
Yuki Omoto
8580b62f7e
Add runtime error to bring an error to roc instead of using wrong number value just to continue the program
2023-11-08 00:38:03 +09:00
Yuki Omoto
75dff53cc8
Fix crash caused by number related type error
...
This fixes an issue where number related type errors cause a crash.
For example, using a negative number for `Nat` like List.dropAt [1, 2, 3] -1` as in #5916 .
so as f64 number.
2023-11-08 00:38:03 +09:00
Folkert
6ab54c02e2
drop into_iter in some places
2023-10-07 19:11:36 +02:00
Anton-4
f078204c1f
rust 1.71.1 upgrade
2023-09-26 12:08:16 +02:00
Folkert
5557fb7e34
repl helper codegen
2023-09-14 14:39:12 +02:00
Folkert
3909443ef4
fix two bugs in the dev backend
2023-09-13 20:24:17 +02:00
Richard Feldman
5d6c787deb
Special-case layout conversions for builtin alias
2023-08-14 14:58:28 -04:00
Folkert
69588a3b76
fix wasm tests
2023-08-09 16:04:48 +02:00
Folkert
0f3da32d9d
remove unused field
2023-08-09 15:11:02 +02:00
Folkert
7fb4b60b21
move around hostexposedalias logic
2023-08-09 15:09:03 +02:00
Folkert
bec0e52f1e
make glue and mono look at the same type
2023-08-08 19:57:11 +02:00
Folkert
3d86ccf167
remove as Fx
from platform types
2023-08-08 16:37:47 +02:00
Folkert
cdd2aab217
add alloca as an expression
2023-07-30 18:46:00 +02:00
J.Teeuwissen
80faf0eeee
removed borrow.rs
2023-07-30 14:03:38 +02:00
Folkert
a7bf9bc639
annotations are still optional
2023-07-24 22:18:58 +02:00
Folkert
126c3f1536
simplify information passed to mono
2023-07-24 21:54:39 +02:00
Folkert
e549ea78fe
simplify HostSpecializations
2023-07-24 21:33:05 +02:00
Folkert
2756c9af35
switching constraint order fixes things
2023-07-24 21:24:34 +02:00
Folkert
557c3987e0
make it work
2023-07-24 21:24:33 +02:00
Folkert
43adf0635e
freshen annotations
2023-07-24 21:24:33 +02:00
Richard Feldman
aafefb12b2
Fix lambda set numbering issue
2023-07-17 14:09:17 -04:00
Ayaz Hafiz
5e9a06e537
Boxed helpers
2023-07-12 15:55:25 -05:00
Ayaz Hafiz
a8d821bf87
Remove all box references
2023-07-12 15:50:00 -05:00
Ayaz Hafiz
8d9c6d09b9
Load as a stack pointer
2023-07-12 14:46:11 -05:00
Ayaz Hafiz
fcb907b0c9
Don't pass empty captures
2023-07-12 14:45:02 -05:00
Ayaz Hafiz
13d1232f7d
Erased functions do not take a func spec
2023-07-12 14:44:17 -05:00
Ayaz Hafiz
cd64134b0a
Allow direct packing, unpacking of erased types
2023-07-12 14:43:25 -05:00
Ayaz Hafiz
dc56a0ffef
First pass update erasure IR
2023-07-12 14:43:24 -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
3e3d3cc7f3
Type fixes
2023-07-12 14:21:28 -05:00
Ayaz Hafiz
cf74f849e1
Unpack erased captures
2023-07-12 14:21:28 -05:00
Ayaz Hafiz
fbad6bcb90
First pass at specialized erased
2023-07-12 14:21:28 -05:00
Ayaz Hafiz
2cb2e37fd7
Specialize erased
2023-07-12 14:21:28 -05:00
Ayaz Hafiz
d17d8c72ad
Exercise building erased function
2023-07-12 14:21:28 -05:00
Ayaz Hafiz
cf30f02e01
Expr::FunctionPointer
2023-07-12 14:21:27 -05:00
Ayaz Hafiz
55fa8098d3
add a todo impl
2023-07-12 14:17:58 -05:00
Ayaz Hafiz
510a421748
Call erased functions
2023-07-12 14:14:25 -05:00
Ayaz Hafiz
a6bb3ab03c
Get started on calling erased functions
2023-07-12 14:14:25 -05:00
Ayaz Hafiz
6312d75ee0
Add FunctionPointer layout
2023-07-12 13:59:50 -05:00
Ayaz Hafiz
a9e3f967a8
First pass at erased function layouts
2023-07-12 13:57:19 -05:00
Ayaz Hafiz
6e5a308557
Content variant ErasedLambda
2023-07-12 13:57:17 -05:00
Ayaz Hafiz
c459757062
Thread simple model of "ErasedLambdas" through proc layouts
...
But none of these paths are yet exercised.
2023-07-12 13:53:52 -05:00