Commit graph

201 commits

Author SHA1 Message Date
Folkert
625b9c161a
implement wasm traits for roc_std::RocBox 2023-02-09 14:55:08 +01:00
Folkert
b022175489
implement Box.box and Box.unbox in the dev backend 2023-02-08 13:51:30 +01:00
Folkert
c79ae98d16
use allocate_with_refcount in the dev backend 2023-02-08 00:56:45 +01:00
Ahmad Sattar
e8f40cdbb1
Add bools to array building 2023-02-04 01:06:34 +01:00
Ahmad Sattar
74c64bf431
Method to load layout alignment into a symbol 2023-01-29 13:36:36 +01:00
Ahmad Sattar
a44016a56b
Consistent naming for "elem_layout" 2023-01-29 13:14:19 +01:00
Ahmad Sattar
40c742d74d
Method to load layout stack size into a symbol 2023-01-29 13:07:02 +01:00
Ahmad Sattar
d9daebb566
Remove unneeded bumpalo::vec! used for layouts 2023-01-29 10:53:14 +01:00
Ahmad Sattar
7fc24d5720
Add List.prepend implementation for generic64 2023-01-28 22:46:35 +01:00
Folkert de Vries
6fc57f0a0c
Merge pull request #4976 from thehabbos007/list-concat
gen_dev: add `List.concat` and fix element width bug
2023-01-28 13:56:36 +01:00
Ahmad Sattar
f6b8a27955
Add List.concat implementation for generic64 2023-01-28 02:16:05 +01:00
Ahmad Sattar
a1e2c3f64b
Use list element width for List.withCapacity 2023-01-28 02:02:32 +01:00
Folkert de Vries
c4cbbea4cb
Merge pull request #3958 from roc-lang/dev-backend-bitwise-shifts
Dev backend bitwise shifts
2023-01-28 00:46:09 +01:00
Folkert
a35dee959f
clarify naming 2023-01-27 11:23:52 +01:00
Folkert
843f5b15e5
bitshifts for the dev backend 2023-01-27 11:23:51 +01:00
Christoph Rüßler
1b023f828f
dev backend: implement subWrap for all integer types 2023-01-27 10:27:50 +01:00
Ahmad Sattar
918d9d2308
Fix clippy lints 2023-01-26 20:32:47 +01:00
Ahmad Sattar
e71ea37d30
Use immutable List.reserve variant 2023-01-26 13:10:26 +01:00
Ahmad Sattar
0adb38beca
Add List.append implementation for generic64 2023-01-25 19:47:11 +01:00
Ahmad Sattar
9b525143cb
Add List.reserve implementation for generic64 2023-01-25 19:46:54 +01:00
Ayaz
ad84e02abf
Merge pull request #4950 from roc-lang/keep-recptr-index
Initial support for linking recursive pointer layouts back to their source layouts
2023-01-24 14:42:00 -06:00
Ayaz Hafiz
8ad185fd1a
opaque pointers fit in a register in x86 2023-01-23 17:08:47 -06:00
Ayaz Hafiz
8edbd3b378
Eliminate uses of RECURSIVE_PTR directly 2023-01-23 16:04:55 -06:00
Folkert
3f72bc7222
clippy 2023-01-21 15:58:33 +01:00
Ahmad Sattar
312997f1c6
Add List.withCapacity implementation for x86
Uses the zig builtin `listWithCapacity`
2023-01-21 15:57:10 +01:00
Folkert de Vries
810e05cd9a
Merge pull request #4922 from thehabbos007/asa/numgt
gen_dev: fix signed/unsigned `less than` and add signed/unsigned `greater than`
2023-01-19 20:49:06 +01:00
Ahmad Sattar
bbd4c9886c
Add NumSubWrap as a NumSub copy 2023-01-19 09:19:20 +01:00
Ahmad Sattar
6670a5d205
Add greater than comparison 2023-01-18 20:26:45 +01:00
Ahmad Sattar
3683e9d436
Fix up less than comparison 2023-01-18 20:26:45 +01:00
Ayaz Hafiz
cde83e9078
Remove an accidentally gen-dev addition 2023-01-11 14:39:12 -06:00
Ayaz Hafiz
1960f429bd
Cleanup of lints 2023-01-11 14:39:12 -06:00
Ayaz Hafiz
6859c2e15c
Update dev backend 2023-01-11 14:38:42 -06:00
Ayaz Hafiz
7ab7fdfa7b
Push interned layouts as mut throughout the backend, and intern box layouts 2022-12-28 18:51:26 -06:00
Folkert
b7cb7bb786
bitwise logical operators in the dev backend 2022-09-03 15:48:57 +02:00
Ayaz Hafiz
3b4b1838b8
Push layout interner further through Layout 2022-08-31 14:33:52 -05:00
Folkert de Vries
1db7c3664d
Merge pull request #3877 from roc-lang/dev-backend-add-checked
dev backend add checked
2022-08-29 09:47:20 +02:00
Folkert
42d26a20b6
pass return layout along to checked add 2022-08-25 19:35:47 +02:00
Folkert
6869c5d5c8
implement signed checked addition 2022-08-23 20:23:01 +02:00
Folkert
4f84a120c5
add int/float division to the dev backend 2022-08-22 22:40:09 +02:00
Folkert
d7f392bbea
another go at umul 2022-08-19 21:26:51 +02:00
Folkert
2a302cfc46
dev backend unsigned multiply: round 2 2022-08-18 23:11:54 +02:00
Folkert
271fbe69e8
attempt at unsigned multiplication 2022-08-17 14:14:46 +02:00
Folkert
d39de07b5a
implement float multiplication 2022-08-17 13:32:58 +02:00
Folkert
038ba47409
make integer multiplication work for quadwords and lower 2022-08-17 13:05:48 +02:00
Christoph Rüßler
6d66b0deb6
Add support for i16/u16 to NumAdd 2022-08-07 19:41:35 +02:00
Christoph Rüßler
38f7fc7136
Add support for f32 to NumAdd 2022-08-02 21:57:08 +02:00
Christoph Rüßler
8cd63290f9
Add support for more integer types to NumAdd 2022-08-02 21:57:07 +02:00
Brendan Hansknecht
4077edcaec
fix roc_alloc arg order 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
35a452a69b
setup partially functional array loading 2022-07-23 07:52:37 -07:00
Brendan Hansknecht
cfe1d3d893
add empty array expr to gen_dev 2022-07-23 07:52:36 -07:00