Commit graph

7030 commits

Author SHA1 Message Date
Folkert de Vries
e84580c148
Merge pull request #2210 from rtfeldman/rust-ana-fixes
quilified WhenBranch to prevent issues with rust-analyzer
2021-12-16 01:13:10 +01:00
j
ec68b1ab38 Alphabetize compiler/builtins/docs/ exposures 2021-12-15 07:37:15 -07:00
Anton-4
45c1b6a812 fmt 2021-12-15 14:12:32 +01:00
Brian Carroll
bbf04b8752 Add more Zig tests for Str.eq 2021-12-15 11:27:13 +00:00
Joshua Warner
63056eeeac Remove spaces from header 'Info' structs 2021-12-14 19:53:23 -08:00
Joshua Warner
0786e554c6 Extract spacing from parse::header::* items into explicit Spaced enum 2021-12-14 19:53:20 -08:00
Joshua Warner
86c8764012 Detangle lifetime annotations for Formattable 2021-12-14 19:52:53 -08:00
Richard Feldman
6056d29df0
Merge pull request #2201 from rtfeldman/builtin_docs
Added builtins to docs
2021-12-14 22:04:23 -05:00
Richard Feldman
7a1f3b1c02
Merge pull request #2207 from rtfeldman/JanCVanB-patch-1
Remove duplicate `dropLast` & `all` in `List` docs
2021-12-14 22:03:43 -05:00
Richard Feldman
5ac6bf89e4
Merge pull request #2208 from rtfeldman/JanCVanB-patch-2
Add missing section headers to `Set` docs
2021-12-14 22:03:27 -05:00
Richard Feldman
01038ed53c
Merge pull request #2192 from rtfeldman/rename-base-to-pf
Rename `base` package to `pf` everywhere, to match tutorial
2021-12-14 22:00:22 -05:00
Anton-4
e4b2c91eb4 quilified WhenBranch 2021-12-14 16:35:09 +01:00
Jan Van Bruggen
ba328aa30f
Add missing section headers to Set docs
This emulates [the section headers in `List` docs](09c1222b28/compiler/builtins/docs/List.roc (L216)).
2021-12-13 18:48:25 -07:00
Jan Van Bruggen
c783446567
Remove duplicate dropLast & all in List docs 2021-12-13 18:43:24 -07:00
Folkert de Vries
09c1222b28
Merge pull request #2196 from rtfeldman/wasm-eq-128-bit
More Wasm support for 128-bit numbers: literals, Num.isFinite, ==, and !=
2021-12-14 00:24:20 +01:00
Brian Carroll
cca4acf728 Remove f128 equality implementation 2021-12-13 22:23:20 +00:00
Anton-4
eeb8d7e9f1 Added builtins to docs 2021-12-13 20:27:32 +01:00
Brian Carroll
594fe9124d Wasm support for 128-bit number literals, isFinite, ==, and != 2021-12-13 09:05:07 +00:00
Joshua Warner
6fcdc46c03 Allow newlines in package entries 2021-12-12 20:33:35 -08:00
Richard Feldman
5ad14553fd Handle non-finite floats in test 2021-12-12 22:11:18 -05:00
Chelsea Troy
b96ebe0457 Starts memory allocation for our collection of failures for the expect keyword
+ BLOCKED: @lucas how do we initialize an empty slice in Zig?
2021-12-12 19:02:18 -06:00
Jan Van Bruggen
f6ec1ebad0 Rename base to pf in testing snapshots 2021-12-12 17:58:43 -07:00
Brian Carroll
cba16b6c3f
Merge pull request #2169 from rtfeldman/wasm-recursive-tags
Wasm recursive tags
2021-12-13 00:13:43 +00:00
Richard Feldman
ae755d81fa
Merge pull request #2153 from rtfeldman/llvm-build-macros
Cleanup dict/list element layout matches
2021-12-12 17:50:29 -05:00
Jan Van Bruggen
d03a51c75b Rename base package to pf everywhere, to match tutorial 2021-12-12 05:57:39 -07:00
Brian Carroll
c290bbe7a7 Move layout calculations to layout module 2021-12-12 12:22:10 +00:00
Brian Carroll
2a53e2711d formatting 2021-12-12 08:41:34 +00:00
Brian Carroll
7cba80efbb Disable some debug code 2021-12-12 08:37:38 +00:00
Brian Carroll
044a2015bb Make better use of Layout methods for GetTagId 2021-12-12 08:35:02 +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
9bf1b9aae3 Fix double-offset bug 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
c53b3c3686 Skip refcounting on unimplemented layouts 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
211a5d9bf3 Fix apparent bug in Layout::is_refcounted
It contradicts build_tag in compiler/gen_llvm/src/llvm/build.rs,
where we create a NonNullableUnwrapped by calling
reserve_with_refcount_union_as_block_of_memory
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
031dce61c9 Add a stack_size_and_alignment method to Layout 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
0fe8575ba3 Delete libc.a from gen_wasm 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