Commit graph

63 commits

Author SHA1 Message Date
Brian Carroll
e9f920827e Add support for Zig/LLVM "fast calling convention" 2021-11-15 19:20:55 +00:00
Folkert
e706c3eb0a Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust 2021-11-13 01:06:31 +01:00
Brian Carroll
7f633c107f Fix a bug in our model of the Wasm VM stack 2021-11-12 17:44:31 +00:00
Folkert
144dbef434 Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust 2021-11-10 17:19:30 +01:00
Folkert de Vries
56c7318cd9
Merge branch 'trunk' into zig9-to-zig 2021-11-10 12:37:39 +01:00
Nathan Bleigh
2dd86b1f18 Updates zig9 to zig
Referenced in https://github.com/rtfeldman/roc/pull/1905
2021-11-09 21:18:18 -06:00
Folkert
4e2b41f924 fix variable not updated in code disabled by feature flags 2021-11-09 23:04:31 +01:00
Folkert
656832b272 enable linking when running wasm tests 2021-11-09 22:31:11 +01:00
Brian Carroll
e2b95662a8 Fix wasm linking bugs 2021-11-09 21:22:12 +00:00
Folkert
a9ce02799c WIP 2021-11-09 21:37:56 +01:00
Brian Carroll
d0f1698db2 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-link-builtins 2021-11-09 15:08:43 +00:00
Brendan Hansknecht
360974398a Merge test_dev, test_wasm, and test_wasm_util into test_gen 2021-11-08 19:31:20 -08:00
Folkert
a9d483cb60 Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust 2021-11-08 22:31:17 +01:00
Brendan Hansknecht
2ce945771e Make test crates only have dev dependencies and separate out wasm memory helper 2021-11-07 18:01:40 -08:00
Brian Carroll
ce9658684a Move wasmer dependency from gen_wasm to test_wasm 2021-11-07 22:56:28 +00:00
Folkert
5cd232816b waypoint 2021-11-05 21:30:20 +01:00
Richard Feldman
0bc3ff4ca5 Use std and core over libc where equivalent 2021-11-02 19:37:05 -04:00
Richard Feldman
a21ad7064c Ignore type errors that have already been reported 2021-09-18 08:24:46 -04:00
Folkert
ea9b23cda8 start using zig9 as the name for trunk zig 2021-09-06 22:25:35 +02:00
Folkert
dbee9dd0ce cleanup 2021-09-05 14:19:21 +02:00
Folkert
f8809a3eef rename wasm -> wasm32 2021-09-05 14:08:14 +02:00
Folkert
a7eeae05ca support i386 (no linking yet) 2021-09-04 01:31:33 +02:00
Folkert
49708cfff8 WIP 2021-08-31 20:11:28 +02:00
Folkert
2e91914443 use zig wasm-ld 2021-08-30 00:18:01 +02:00
Folkert
ca227a58aa clippy 2021-08-29 23:13:40 +02:00
Folkert
d77c695e45 turn off wasm testing 2021-08-29 23:08:16 +02:00
Folkert
4ced5ce2c0 updates for tests 2021-08-29 23:06:23 +02:00
Folkert
815a4f76a7 make more tests run under wasm 2021-08-29 15:18:25 +02:00
Folkert
b37cccaa01 run more tests with wasm 2021-08-29 13:32:08 +02:00
Folkert
71c0a325ee wasm test harnass 2021-08-29 00:36:16 +02:00
Folkert
0d7d006cd7 hooking things up 2021-08-28 17:58:05 +02:00
Folkert
72e6a34a0d proof of concept 2021-08-28 14:48:24 +02:00
Folkert
0a7f7a2772 emit LLVM IR that can be compiled to wasm 2021-08-24 20:56:13 +02:00
Folkert
367d08814d don't have compiler generate setjmp/longjmp when building an executable 2021-08-17 22:42:03 +02:00
Folkert
5171d181ac emit invoke again to see what's up here 2021-08-16 20:44:55 +02:00
Folkert
a0a0896622 a working prototype 2021-08-15 23:20:05 +02:00
Folkert
44253049e2 more tests 2021-08-14 19:08:58 +02:00
Folkert
899cbeabd7 fix extra ampersands 2021-07-29 17:32:08 +02:00
Folkert
978cea4b8a passing tests 2021-06-28 22:28:47 +02:00
Folkert
0d5e91eb92 fix entry points 2021-06-13 22:13:37 +02:00
Richard Feldman
57676057fa Rename gen to gen_llvm
This way, we have gen_dev and gen_llvm representing the two
different compiler backends.
2021-06-06 07:56:47 -04:00
Richard Feldman
b05342c678 Split out an optional "llvm" feature
Also move OptLevel out of roc_gen (which
should really be called gen_llvm) and into roc_mono,
so it's no longer coupled to LLVM.
2021-06-06 00:32:58 -04:00
Folkert
ab8abb8f11 centralize llvm logic 2021-06-02 21:28:51 +02:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Richard Feldman
6c4ba49086 Move add_intrinsics back 2021-05-23 23:46:09 -04:00
Richard Feldman
ebad3597c9 Call add_intrinsics after add_default_roc_externs
This is necessary to prevent defining things twice
2021-05-23 23:46:09 -04:00
Richard Feldman
e6ece40f76 Extract externs helpers into gen 2021-05-23 23:46:09 -04:00
Folkert
9b02165f00 remove unused function 2021-05-22 19:08:25 +02:00
Folkert
558fb3e1bf clippy + top level thunks 2021-05-15 23:19:08 +02:00
Folkert
3c7e849830 get poc-effect working 2021-05-14 15:09:55 +02:00