Commit graph

464 commits

Author SHA1 Message Date
Brian Carroll
594fe9124d Wasm support for 128-bit number literals, isFinite, ==, and != 2021-12-13 09:05:07 +00:00
Brian Carroll
7cba80efbb Disable some debug code 2021-12-12 08:37:38 +00:00
Brian Carroll
b1a2a3ba07 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-recursive-tags 2021-12-11 23:26:29 +00:00
Folkert de Vries
b9395e9b75
Merge pull request #2181 from rtfeldman/wasm-test-platform
Improve Wasm test builds
2021-12-11 22:48:33 +01:00
Folkert
99d12c4f3e use env! macro 2021-12-11 22:11:50 +01:00
Brian Carroll
574eec1d61 Remove fprintf from compilation for faster test runs 2021-12-11 20:36:22 +00:00
Brian Carroll
9594b05c96 Add some debug features to gen_wasm 2021-12-11 20:33:54 +00:00
Brian Carroll
96380d5bfe Link compiler_rt.o in wasm tests 2021-12-11 20:33:11 +00:00
Brian Carroll
f8a1f9e8cf Use PhantomData instead of Default in Wasm tests 2021-12-11 20:33:11 +00:00
Brian Carroll
f54f96281f Fix roc_alloc linking. Test passes for recursive Tag 2021-12-11 20:33:11 +00:00
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
544caf0f43 Only run Wasm build steps for test_gen when gen-wasm feature is enabled 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
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
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