Commit graph

387 commits

Author SHA1 Message Date
J.Teeuwissen
2d9fdf0338
updated tag_pointer_set_tag_id 2023-06-24 14:49:48 +02:00
J.Teeuwissen
21d1835406
use build_gep to avoid build_int_to_ptr 2023-06-24 14:49:48 +02:00
Folkert
052ce8f2aa
clippy 2023-06-24 14:49:47 +02:00
Folkert
0247237fe8
WIP 2023-06-24 14:49:46 +02:00
Anton-4
8c118f7bd0
fmt 2023-06-22 21:10:45 +02:00
Richard Feldman
44e48e1415
Build Zig builtins for aarch64 2023-06-21 08:47:38 -04:00
Ayaz Hafiz
41597cbab7
Do not make LayoutInterner mutable 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
c81a652aaa
Dont insert into interner at all 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
61e28bc1d8
No need to insert into interner 2023-06-17 18:13:02 -05:00
Ayaz Hafiz
6139918e3b
Remove insert_direct_no_semantic in compare eq 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
5979405b79
Store value by layoutrepr 2023-06-17 18:13:01 -05:00
Ayaz Hafiz
bc41db2a34
Get rid of passing target_info a bunch 2023-06-17 18:13:00 -05:00
Ayaz Hafiz
8495f3b085
Have basic_type_from_layout take LayoutRepr 2023-06-17 18:12:17 -05:00
Ayaz Hafiz
6c4f76c5c9
Pass tag target ptr rather than alloca 2023-06-16 21:06:49 -05:00
Ayaz Hafiz
a7978abdc9
Fix nullable unwrapped code generation 2023-06-16 18:11:51 -05:00
Ayaz Hafiz
465cee053e
Have RocUnion::as_struct_value return an alloca instead
Saves a useless store/load.
2023-06-16 17:54:17 -05:00
Ayaz Hafiz
0403509f64
Get rid of unnecessary comment 2023-06-16 17:51:47 -05:00
Ayaz Hafiz
942fb37155
Revert unconditional branch taken 2023-06-16 15:27:56 -05:00
Ayaz Hafiz
f95cef8086
Add llvm_alignment_bytes and memcpy function 2023-06-16 10:30:44 -05:00
Ayaz Hafiz
2294f6994f
TERRIBLE HACK to support x86 compilation 2023-06-16 10:30:44 -05:00
Ayaz Hafiz
d39c8ba7be
Revert legacy struct builder 2023-06-16 10:30:43 -05:00
Ayaz Hafiz
ea6330b48b
Make sure to memcpy with correct size and alignments 2023-06-16 10:30:43 -05:00
Ayaz Hafiz
57019d5b78
Revert tag union construction with RocStruct for now 2023-06-16 10:30:43 -05:00
Folkert
05eb489b14
debug logic 2023-06-16 10:30:43 -05:00
Ayaz Hafiz
8f9e95b482
Unused var 2023-06-16 10:30:42 -05:00
Ayaz Hafiz
5c1a601074
No need for mut 2023-06-16 10:30:41 -05:00
Ayaz Hafiz
7b1dc7eff0
Update test function catcher to take records by reference 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
b24a907662
Consistent wrapper result 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
2d91225b01
Fix wrapper result type 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
8070736cc7
Simplify construction of RocReturn 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
47fb9fe6f2
Implement struct-by-reference for structs over 4 machine words 2023-06-16 10:30:40 -05:00
Ayaz Hafiz
e1f8d68055
Make loading from struct a method 2023-06-16 10:30:39 -05:00
Ayaz Hafiz
bb3cfb9cd3
Break up arguments of insert 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
Ayaz Hafiz
6e23365551
Move load_symbol to scope 2023-06-16 10:30:38 -05:00
Ayaz Hafiz
8d3d4ed9d8
Move LLVM scope ops to a separate module 2023-06-16 10:30:38 -05:00
Ayaz Hafiz
470ed119c2
Move roc struct operations to a new "struct" module 2023-06-16 10:30:38 -05:00
Ayaz Hafiz
80a98668d5
Fix type errors 2023-06-06 16:07:51 -05:00
Ayaz Hafiz
5274dbcd00
Add a Newtype variant to LayoutWrapper 2023-06-06 16:03:52 -05:00
Ayaz Hafiz
457cdabc5c
Make repr private and accessible only via the interner 2023-06-06 16:01:27 -05:00
J.Teeuwissen
21d4b61fca
DecRef union clear tag id 2023-06-05 14:55:37 +02:00
Ayaz Hafiz
a67c148be7
Convert LayoutRepr::Struct into a tuple variant 2023-05-16 11:58:16 -05:00
J.Teeuwissen
797da23f17
build_is_null resetref 2023-05-15 00:53:12 +02:00
Folkert
a289f37eef
handle NULL pointer in Reset 2023-05-15 00:53:12 +02:00
Ayaz Hafiz
4296d5a349
Drop Layout::struct_no_name_order 2023-05-10 15:58:51 -05:00
Ayaz Hafiz
f100e8753c
Introduce the concept of SemanticRepr 2023-05-10 13:51:04 -05:00