Commit graph

5620 commits

Author SHA1 Message Date
Folkert de Vries
56c7318cd9
Merge branch 'trunk' into zig9-to-zig 2021-11-10 12:37:39 +01:00
Brian Carroll
6421ff07a5 Use shorter notation for enums in lowlevel module 2021-11-10 10:47:01 +00:00
Brian Carroll
ec03b7b12a Move lowlevel calls to their own module of gen_wasm 2021-11-10 10:44:17 +00:00
Brian Carroll
51b6076322 stack pointer: use constants & add a comment 2021-11-10 09:20:31 +00: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
Michael Downey
22a293ceb5 Merge branch 'str_trim_left' of github.com:rtfeldman/roc into str_trim_left 2021-11-09 20:38:20 -05:00
Michael Downey
0ee750d4c9 adding feature gen-llvm to tests 2021-11-09 20:37:38 -05:00
Folkert
b8ba387863 update comment 2021-11-10 02:31:59 +01:00
Folkert
e1d5605315 Merge remote-tracking branch 'origin/trunk' into wasm-tests-link-builtins 2021-11-10 02:31:43 +01:00
Michael Downey
07cd3850d7
Merge branch 'trunk' into str_trim_left 2021-11-09 19:43:26 -05:00
Folkert
4fdb8d354b turn on refcounting again, turning it off does not help (builtins still decrement and potentially free) 2021-11-10 00:22:49 +01:00
Michael Downey
151c92bb48 adding tests and changing trimLeft to pass long unique test 2021-11-09 18:16:32 -05:00
Folkert
4e2b41f924 fix variable not updated in code disabled by feature flags 2021-11-09 23:04:31 +01:00
Folkert de Vries
2a182c13d4
Merge branch 'trunk' into joshuawarner32/list-newline-tests 2021-11-09 22:43:52 +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
Michael Downey
c1a48c0a9a fixing line for cargo fmt 2021-11-09 15:11:36 -05:00
Michael Downey
eeab43ba13 fixing line for cargo fmt 2021-11-09 15:02:16 -05:00
Michael Downey
1f74fd6856 fixing formatting and adding str_trim_left back to solve_expr 2021-11-09 14:57:35 -05:00
Michael Downey
9d1038cd9b zig fmt'd str.zig 2021-11-09 14:51:07 -05:00
Michael Downey
e845f48247 fixed tests 2021-11-09 14:47:32 -05:00
Michael Downey
7e074d300e cleaning up and adding comments 2021-11-09 14:37:31 -05:00
Michael Downey
c0c45f6d39 correct trim to trimLeft in solve_expr 2021-11-09 14:34:24 -05:00
Folkert
a9d561089a enable function-sections so unused builtins are dropped from the executable (during the linking step) 2021-11-09 20:32:27 +01:00
Michael Downey
1bc278d962 initial commit of Str.trimLeft 2021-11-09 14:25:24 -05:00
Folkert de Vries
5f5e86a67a
Merge branch 'trunk' into wasm-link-builtins 2021-11-09 17:12:58 +01:00
Brian Carroll
4948cee360 Fix clippy warnings 2021-11-09 15:49:08 +00:00
Joshua Warner
6d4f3f4da7 Allow parsing a single newline/comment in empty list 2021-11-09 07:33:36 -08:00
Brian Carroll
8392431bd8 Enable a few more tests for gen_wasm 2021-11-09 15:20:55 +00:00
Folkert
94efbd0e95 Merge remote-tracking branch 'origin/trunk' into builtins-list-take-last 2021-11-09 16:18:19 +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
Brian Carroll
d0ffaabe83 Re-index all internal functions to make room for imported external functions
Linked external functions must be declared in the Import section,
and they must come first in the function index space.
In other words, internal function numbers start at the number of imports.

However we don't know in advance how many builtins the code may call,
and we don't want to add more passes over the full IR. Instead we re-index
function references at the end of code generation.
2021-11-09 14:50:53 +00:00
Brian Carroll
141480aa8d Remove unused dependencies from test_wasm 2021-11-09 14:43:54 +00:00
Brian Carroll
9e6147a9de Add Debug implementations for sections 2021-11-09 14:28:15 +00:00
Brian Carroll
a61987e032 Rename CodeBuilder::finalize -> CodeBuilder::build_fn_header
We actually have a few more steps to go after this one!
2021-11-09 14:28:15 +00:00
Brian Carroll
c7baaceae9 Fix dependencies 2021-11-09 14:28:15 +00:00
Brian Carroll
1b5740cd5d Tidy up lowlevel calls and implement a few more 2021-11-09 14:28:15 +00:00
satotake
dfc527ecff Merge branch 'trunk' into builtins-list-take-last 2021-11-09 12:34:58 +00:00
satotake
772fc9c021 Implement List.takeLast 2021-11-09 12:26:17 +00:00
Folkert
960733c605 Merge remote-tracking branch 'origin/trunk' into builtin/List.find 2021-11-09 13:07:47 +01:00
Folkert
af8ee4b7bb add cargo aliases for convenient test running 2021-11-09 12:27:28 +01:00
Brendan Hansknecht
1028e1593a Fix unused import 2021-11-08 19:49:33 -08:00
Brendan Hansknecht
7017131bae remove test_wasm_util 2021-11-08 19:35:36 -08:00
Brendan Hansknecht
491ec60b90 update gen-dev readme 2021-11-08 19:35:13 -08:00
Brendan Hansknecht
360974398a Merge test_dev, test_wasm, and test_wasm_util into test_gen 2021-11-08 19:31:20 -08:00
ayazhafiz
9e50580715 Walk the input list during List.find alias analysis 2021-11-08 22:00:03 -05:00
ayazhafiz
074c2ca398 Remove stale DICT_TEST_HASH reference 2021-11-08 21:04:59 -05:00
ayazhafiz
75b439cb31 Remove unnecessary clone 2021-11-08 21:03:15 -05:00
ayazhafiz
731f7a11a1 Remove unused variable 2021-11-08 21:03:15 -05:00