Commit graph

833 commits

Author SHA1 Message Date
Brian Carroll
f3ca3be507 Add Wasm support for recursive tags, along with GetTagId and UnionAtIndex 2021-12-11 20:33:11 +00:00
Brian Carroll
11118bb555 Remove fprintf from compilation for faster test runs 2021-12-11 20:13:46 +00:00
Brian Carroll
e9343d8b2a Edit dummy libc program 2021-12-11 10:15:32 +00:00
Brian Carroll
2d4dfb49de Update Wasm tests to use libc and platform built by build.rs 2021-12-11 10:15:32 +00:00
Brian Carroll
aefc6e76a4 Build a Wasm libc.a from test_gen/build.rs 2021-12-11 10:15:32 +00:00
Brian Carroll
53d221481e Build a Wasm test platform in test_gen 2021-12-11 10:15:32 +00:00
satotake
a7fe2e3e53 Fix llvm Num.toFloat width conversion
Close #2156
2021-12-11 08:12:57 +00:00
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
7b6ba79eee Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-tags 2021-12-10 11:48:56 +00:00
Richard Feldman
1ce648ac27
Merge pull request #2116 from rtfeldman/str_to_num
Str.toNum
2021-12-09 09:48:38 -05: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
760f4c0ed4 Add an optional Wasm debug feature - hex memory dump 2021-12-08 21:28:59 +00: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
6a801ebc7e gen_wasm: add support for non-recursive Tags 2021-12-08 20:45:49 +00:00
Brendan Hansknecht
b8a287d1ba Merge remote-tracking branch 'origin/trunk' into refcount-gen-dev 2021-12-08 11:22:36 -08:00
Brendan Hansknecht
251a6e4121 disable not yet working test cases 2021-12-07 17:50:00 -08:00
Brendan Hansknecht
8c6e5360cd Remove Cell around interns 2021-12-07 16:54:06 -08:00
Brendan Hansknecht
54861ef5fa Pass layout to literal loading in dev backend 2021-12-07 14:31:13 -08: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
satotake
5003223465 create cvtsx2_help 2021-12-05 15:40:00 +00:00
satotake
9ef80444f1 Merge branch 'trunk' into dev-backend-num-to-float 2021-12-05 12:46:40 +00:00
satotake
10af89654b add x86_64 Num.toFloat support for gen_dev 2021-12-05 12:32:16 +00:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
rvcas
bc5b1abcba feat(Str.toNum): support decimal 2021-12-02 15:35:34 -05:00
rvcas
b58a965e08 test(Str.toNum): add float test case 2021-12-02 15:13:39 -05:00
Folkert
d6ed2147ae basic working test case 2021-12-02 20:30:58 +01:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00
Chelsea Troy
2eefe9ff6d cargo fmt 2021-12-01 18:38:51 -06:00
Brian Carroll
72fa6217fb Refactor wasm lowlevels to make it easier to add more 128-bit ops 2021-12-01 15:09:23 +00:00
Brian Carroll
a3827d6636
Merge pull request #2071 from rtfeldman/refcount-mono-ir
Start generating refcounting code as mono IR
2021-12-01 12:59:16 +00:00
rvcas
40090f20e6 test: update tests to use Num.toStr 2021-11-30 14:56:08 -05:00
Brian Carroll
45302d996b Update small string tests in wasm_str 2021-11-30 13:02:08 +00:00
Brian Carroll
a08633fd36 Debugging improvements 2021-11-30 10:58:03 +00:00
Brian Carroll
820d9e0ab4 Register debug names for new Symbols, and refactor to avoid borrow-checker issues 2021-11-30 09:57:00 +00:00
Brian Carroll
e7d8c7c895 Make gen_wasm's Env mutable 2021-11-30 09:57:00 +00:00
Brian Carroll
ebc1fd6880 Get rid of special ModuleId for refcounting code 2021-11-30 09:57:00 +00:00
Brian Carroll
2ad032f894 Integrate refcount proc generator with Wasm backend 2021-11-30 09:57:00 +00:00
Brian Carroll
61575cea7e Generate calls to refcount procs from Wasm backend 2021-11-30 09:57:00 +00:00
Chelsea Troy
6cf755ad8d Resolve a bunnnch of merge conflicts 2021-11-29 23:14:29 -06:00
Chelsea Troy
50e0bee22f Fix test for string literal 2021-11-29 22:25:28 -06:00
rvcas
6305947b1a fix: exclude gen-dev from gen_list test compilation 2021-11-29 18:08:12 -05:00
rvcas
7657d5b192 test: enable wasm in gen_list 2021-11-29 15:06:45 -05:00
Folkert de Vries
167af34d4b
Merge pull request #2097 from rtfeldman/wasm-empty-record
Wasm empty record
2021-11-29 13:15:40 +01:00
Brian Carroll
dcd4914ac1 Fix and enable tests involving empty records 2021-11-29 00:57:28 +00:00
Brendan Hansknecht
fd9a9fad72
Merge pull request #2094 from rtfeldman/gen-dev/remove-results
Gen dev/remove results
2021-11-28 10:28:31 -08:00
Richard Feldman
f80409800d
Merge pull request #2091 from rtfeldman/remove-empty-layouts
Remove empty layouts
2021-11-27 23:32:15 -05:00