rvcas
6ada59d7a1
feat(wasm): the beginnings of a real array
2021-12-10 14:44:19 -05:00
Brian Carroll
e7d6371d1f
Fix unused import that only appears in gen_dev tests
2021-12-10 16:18:36 +00:00
Brian Carroll
bab8a0b8a0
Fix alignment bug
2021-12-10 14:52:59 +00:00
Brian Carroll
7b6ba79eee
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-tags
2021-12-10 11:48:56 +00:00
Folkert de Vries
8f97623d38
Merge pull request #2161 from rtfeldman/rust-ana-fix
...
change import for rust analyzer
2021-12-10 10:24:25 +01:00
Richard Feldman
df9eac196a
Merge pull request #2150 from rtfeldman/joshuawarner32/refactor-fmt_sequence
...
Unify all collection formatting with fmt_collection
2021-12-09 22:32:32 -05:00
Richard Feldman
aab601366e
Merge pull request #2152 from rtfeldman/inkwell-llvm-13
...
update inkwell to ease the llvm13 transition
2021-12-09 19:16:23 -05:00
Brendan Hansknecht
971bc3294e
Update one todo back to unimplemented
2021-12-09 11:12:49 -08:00
Brendan Hansknecht
7abbf3a043
Switch dev backend from unimplemented! to todo!
2021-12-09 10:39:43 -08:00
Richard Feldman
1ce648ac27
Merge pull request #2116 from rtfeldman/str_to_num
...
Str.toNum
2021-12-09 09:48:38 -05:00
Anton-4
cf80f510cb
change import for rust analyzer
2021-12-09 14:55:43 +01:00
Anton-4
8c82025721
Merge branch 'trunk' of github.com:rtfeldman/roc into editor-comments
2021-12-09 13:55:44 +01:00
Anton-4
9a2187ecd2
fixed newline issues
2021-12-09 13:55:18 +01:00
Brian Carroll
3f7b3bef87
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-tags
2021-12-09 09:28:11 +00:00
Brian Carroll
1dda8859c4
Update gen_wasm's error handling to remove Result and use macros consistently
2021-12-09 00:11:44 +00:00
Brian Carroll
a25101b378
Remove unusable variants from Align enum
...
I discovered today that Wasmer throws an error if you use
"higher than natural" alignment in a store instruction.
So let's take them out of the enum.
2021-12-08 21:55:14 +00:00
Brian Carroll
8a1a164544
Prevent >8 bit alignment specifier in Wasm store instruction, which is not allowed
2021-12-08 21:42:48 +00:00
Brian Carroll
760f4c0ed4
Add an optional Wasm debug feature - hex memory dump
2021-12-08 21:28:59 +00:00
Brendan Hansknecht
369c1fd6d2
Fix borrow checking complications
2021-12-08 13:28:32 -08:00
Brendan Hansknecht
511b8d5586
Merge remote-tracking branch 'origin/trunk' into dev-backend-num-to-float
2021-12-08 13:28:06 -08:00
Brian Carroll
1ba654c5b2
Change round_up_to_alignment to a macro to work on more Rust types
2021-12-08 21:11:10 +00:00
Brian Carroll
6a801ebc7e
gen_wasm: add support for non-recursive Tags
2021-12-08 20:45:49 +00:00
Brian Carroll
f6b6d91c56
More accurate comment for EmptyArray
2021-12-08 20:30:26 +00:00
Brian Carroll
73c9c7089a
Fix gen_wasm Let statement for heap-allocating expressions
...
When we allocate on the heap we'll need to force LocalId storage.
In that case we don't want CodeBuilder to track the Symbol,
even though it has WasmLayout::Primitive.
So basically it was always the wrong condition to check, but we
got away with it when we had no heap allocations.
2021-12-08 20:30:26 +00:00
Brian Carroll
0220f7d921
Remove an assumption of 64-bit pointer alignment
2021-12-08 20:30:26 +00:00
Brian Carroll
2f4225eec6
Add more doc comments to UnionLayout enum
2021-12-08 20:30:26 +00:00
Folkert
727f2f6e93
cleanup
2021-12-08 21:02:38 +01:00
Folkert
6c5f809678
cleanup
2021-12-08 21:00:53 +01:00
Brendan Hansknecht
b8a287d1ba
Merge remote-tracking branch 'origin/trunk' into refcount-gen-dev
2021-12-08 11:22:36 -08:00
Brendan Hansknecht
5f9ae24d14
remove unused comments
2021-12-08 11:19:17 -08:00
Folkert
40246607aa
update inkwell to ease the llvm13 transition
2021-12-08 19:36:29 +01:00
Brian Carroll
5c8f3fa26f
Generate refcount procedure names from the correct layout ID
2021-12-08 17:33:08 +00:00
satotake
8c4b461468
Merge branch 'dev-backend-num-to-float' of https://github.com/rtfeldman/roc into dev-backend-num-to-float
2021-12-08 12:54:25 +00:00
satotake
521ccbbb0e
make helpers generic
2021-12-08 12:52:56 +00:00
satotake
11daeb4374
debug_assert with matches!
2021-12-08 10:59:41 +00:00
satotake
65e5a3929d
Remove dst_reg
duplicate
2021-12-08 10:47:20 +00:00
satotake
c3f0731bf5
Merge https://github.com/rtfeldman/roc into dev-backend-num-to-float
2021-12-08 10:44:17 +00:00
Joshua Warner
49228c8100
Refactor format_sequence to be a function
2021-12-07 18:53:47 -08:00
Brendan Hansknecht
251a6e4121
disable not yet working test cases
2021-12-07 17:50:00 -08:00
Brendan Hansknecht
c7e7186be0
generate rc proc names when building the procedure to fix borrowing issue
2021-12-07 17:39:22 -08:00
Brendan Hansknecht
91ad1f1bc0
sate clippy
2021-12-07 17:05:02 -08:00
Brendan Hansknecht
845a5ca731
clippy fix
2021-12-07 16:58:56 -08:00
Brendan Hansknecht
8c6e5360cd
Remove Cell around interns
2021-12-07 16:54:06 -08:00
Brendan Hansknecht
931b373d80
Modify ownership to fix layout copying
2021-12-07 14:39:51 -08:00
Brendan Hansknecht
54861ef5fa
Pass layout to literal loading in dev backend
2021-12-07 14:31:13 -08:00
rvcas
2fa4ecd8ea
chore: clippy clippy clippy can't you see, sometimes your errors hypnotize me
2021-12-06 23:52:29 -05:00
rvcas
20cb174c69
test: add str_to_f32
2021-12-06 23:36:08 -05:00
rvcas
3164ecad97
test: ignore i128 builtins for now
2021-12-06 23:29:45 -05:00
rvcas
b7d48b2fe1
feat: add the rest of the num types for Str conversion
2021-12-06 23:24:02 -05:00
rvcas
e587e20de2
feat: switch to using a builtin per num type to convert from a string
2021-12-06 22:24:00 -05:00