Commit graph

7030 commits

Author SHA1 Message Date
Jan Van Bruggen
96724e73aa Add empty-delimiter handling for Str.split 2021-12-18 00:53:17 -07:00
Jan Van Bruggen
12818f9b9d
Merge pull request #2223 from rtfeldman/alphabetize-builtins-docs-exposures
Alphabetize compiler/builtins/docs/ exposures
2021-12-18 07:32:08 +00:00
Brian Carroll
55f5956175 Add comments to group code together 2021-12-18 00:23:31 +00:00
Brian Carroll
71bb756d20 Move related code closer together 2021-12-18 00:12:19 +00:00
Brian Carroll
2d887b297f Fill out match expressions in generate_procs 2021-12-18 00:11:18 +00:00
Brian Carroll
d32d1e8e61 enable more Str equality tests for wasm 2021-12-17 23:47:28 +00:00
Joshua Warner
7b9c8ed939 Allow function types in records 2021-12-17 15:09:15 -08:00
Joshua Warner
5e7e77dbb1 Add a couple failing parser tests 2021-12-17 15:09:15 -08:00
Joshua Warner
5a236899fa Add some optional debug tracing to the parser 2021-12-17 15:09:15 -08:00
Joshua Warner
bb5b9677a3 Allow specifying failing parse tests 2021-12-17 15:09:15 -08:00
Brian Carroll
c7b826e3d4
Merge pull request #2219 from rtfeldman/faster-str-eq
Faster Str equality
2021-12-17 21:02:20 +00:00
Brian Carroll
228033cdae
Merge pull request #2180 from rtfeldman/wasm_arrays
WASM Arrays & LowLevel::ListLen
2021-12-17 20:19:05 +00:00
Richard Feldman
cb4a74ac46
Merge pull request #2233 from rtfeldman/joshuawarner32/encapsulate-state
Encapsulate the `bytes` field of State in the parser
2021-12-17 14:42:06 -05:00
rvcas
14e66de0b7 tests(wasm): assert_concat_work needs a feature flag too 2021-12-17 12:52:55 -05:00
rvcas
a18c3e2c3a tests(wasm): fix tests 2021-12-17 12:44:11 -05:00
rvcas
edd3c8c4c1 tests(wasm): List.isEmpty already works now 2021-12-17 12:05:17 -05:00
rvcas
b9bd75d643 Merge branch 'trunk' into wasm_arrays 2021-12-17 11:54:23 -05:00
rvcas
660c3dc111 tests(wasm): prep tests for CI 2021-12-17 11:47:58 -05:00
rvcas
787900d291 fix(wasm): ListLen does not need to match ret_layout 2021-12-17 11:38:09 -05:00
rvcas
bc94683100 feat(wasm): copy value to memory 2021-12-17 11:37:40 -05:00
Brian Carroll
77d73f35eb Merge branch 'trunk' of github.com:rtfeldman/roc into faster-str-eq 2021-12-17 13:47:25 +00:00
Brian Carroll
d516a17965
Merge pull request #2228 from rtfeldman/set-small-str-flag-on-empty
Set small string flag on empty string
2021-12-17 13:45:29 +00:00
Brian Carroll
1b98673704 Separate stack and heap pointers & create Symbols for list literals 2021-12-17 11:45:54 +00:00
Folkert de Vries
b8fe9a4d1d
Merge pull request #2232 from rtfeldman/joshuawarner32/assert-module-formatting-stable
Also assert module formatting is stable
2021-12-17 09:25:29 +01:00
rvcas
bed288330f feat(wasm): try different offsets 2021-12-16 22:27:16 -05:00
rvcas
fc07070617 feat(wasm): trying to add the rest of the elements to the list 2021-12-16 22:14:15 -05:00
rvcas
40da207859 feat(wasm): LowLevel::ListLen 2021-12-16 21:50:12 -05:00
rvcas
b35deacebe feat(wasm): use allocate with ref count 2021-12-16 21:23:13 -05:00
rvcas
c14b4b81e0 Merge branch 'trunk' into wasm_arrays 2021-12-16 21:07:12 -05:00
Joshua Warner
2e85c19101 Require explicit cloning of State 2021-12-16 17:13:58 -08:00
Joshua Warner
49818343dd extract state 2021-12-16 17:13:53 -08:00
Joshua Warner
c36b853286 Also assert module formatting is stable 2021-12-16 17:07:05 -08:00
Brian Carroll
c5d0a42c20 LLVM backend: set small string flag on empty string 2021-12-16 19:04:36 +00:00
Brian Carroll
a481e34f31 Zig builtins: set small string flag on empty string 2021-12-16 19:04:36 +00:00
Brian Carroll
0f2d14490f Clippy fixes 2021-12-16 16:58:37 +00:00
Brian Carroll
307ab9ee83 Use a single enum for all helpers 2021-12-16 16:56:56 +00:00
Brian Carroll
3eb9e9f7ac Traverse nested layouts for code gen helpers 2021-12-16 16:56:56 +00:00
Brian Carroll
ae9e5f115f Generate specialized call for Eq 2021-12-16 16:56:56 +00:00
Brian Carroll
86d8e2789e Implement Wasm string equality 2021-12-16 16:56:56 +00:00
Brian Carroll
e1a04c2661 Only check layout is implemented for RC, not other ops 2021-12-16 16:56:56 +00:00
Brian Carroll
3adaacc66e Add some comments 2021-12-16 16:56:53 +00:00
Brian Carroll
cd91be678f Setup for specializing equality checks 2021-12-16 16:52:47 +00:00
Brian Carroll
ee97eb668d Add Eq operation to code gen helpers 2021-12-16 16:52:47 +00:00
Brian Carroll
efef2be958 Rename mono IR code gen helpers 2021-12-16 16:52:47 +00:00
Brian Carroll
71de2289ae Rename helper proc generator struct 2021-12-16 16:52:47 +00:00
Brian Carroll
0547647341 Rename code gen helper file in mono 2021-12-16 16:52:47 +00:00
Folkert de Vries
33277144d6
Merge pull request #2206 from rtfeldman/joshuawarner32/extract-spaced-enum-2
Extract spacing from parse::header::* items into explicit Spaced enum
2021-12-16 17:08:51 +01:00
Brian Carroll
ad8fa483d2 Make Str equality faster 2021-12-16 11:45:54 +00:00
Brian Carroll
3c74acafa4 More precise alignCast (allow for 32-bit targets) 2021-12-16 11:45:54 +00:00
Brian Carroll
457041a314 Slightly optimize Str.isEmpty 2021-12-16 11:45:54 +00:00