Ayaz Hafiz
87d108eccc
Push checkmate through env
2023-07-17 09:48:59 -05:00
Ayaz Hafiz
8097ee3342
Hide subs behind Env deref
2023-07-17 09:48:57 -05:00
Ayaz Hafiz
1df2e942a2
Add a collector of unification + solve events
2023-07-17 09:47:57 -05:00
Ayaz Hafiz
40223a697d
First pass of checkmate schema
2023-07-17 09:47:57 -05:00
Ayaz Hafiz
93513cffae
pub is_signed
2023-07-17 09:47:57 -05:00
Ayaz Hafiz
a21e016032
Make public
2023-07-17 09:47:57 -05:00
Ayaz Hafiz
879719b166
s/width/min_width
2023-07-17 09:47:57 -05:00
Ayaz
b36ad76cdd
Merge pull request #5576 from roc-lang/spike-erasure
...
Implement function erasure
2023-07-17 03:27:29 -05:00
Folkert
48fa4f7a8e
When possible, prefer NonNullableUnwrapped over NullableWrapped
...
e.g. in the scenario of `[ A Str, B, C, D ]`, rather than having one tag be nullable, we want
to store the tag id in the pointer. This generally saves 8 bytes for
every allocation, and prevents an allocations for all tags except A.
2023-07-16 20:06:46 +02:00
Ayaz Hafiz
016862ca28
Fix types
2023-07-12 17:52:05 -05:00
Ayaz Hafiz
00730be6fb
Fix doc comments
2023-07-12 17:16:12 -05:00
Ayaz Hafiz
a2574a5a98
Update vars
2023-07-12 17:01:31 -05:00
Ayaz Hafiz
fea41000e5
Update mono tests
2023-07-12 17:00:55 -05:00
Ayaz Hafiz
baf6c6f712
Make sure to specialized erased at least once
2023-07-12 16:43:22 -05:00
Ayaz Hafiz
3a3ee4dedf
Elide lifetimes
2023-07-12 16:10:59 -05:00
Ayaz Hafiz
937e042c8f
Fixed erased with nullable unwrapped union
2023-07-12 16:01:44 -05: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
b5db3f68e1
Add experimental flag for roc_erase
2023-07-12 14:46:37 -05:00
Ayaz Hafiz
9702f30a61
Support erased functions in debug mode
2023-07-12 14:46:37 -05:00
Ayaz Hafiz
cb56872566
Add initial tests
2023-07-12 14:46:36 -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
8d9c6d09b9
Load as a stack pointer
2023-07-12 14:46:11 -05:00
Ayaz Hafiz
fde75d5432
Correct calling branches
2023-07-12 14:45:03 -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
fcb907b0c9
Don't pass empty captures
2023-07-12 14:45:02 -05:00
Ayaz Hafiz
13c45151a4
Mono IR checker: check wanted function pointer layout
2023-07-12 14:45:01 -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
2c826ea898
Model erasure in alias analysis
2023-07-12 14:43:39 -05:00
Ayaz Hafiz
f2f80f390d
Add erasure llvm test
2023-07-12 14:43:25 -05:00
Ayaz Hafiz
535eb80dfb
Clippy
2023-07-12 14:43:25 -05:00
Ayaz Hafiz
cd64134b0a
Allow direct packing, unpacking of erased types
2023-07-12 14:43:25 -05:00
Ayaz Hafiz
1d1db83cc7
Add needed file
2023-07-12 14:43:24 -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
b2d3b52bd5
First compile of erased lambdas
2023-07-12 14:21:28 -05:00