Commit graph

5882 commits

Author SHA1 Message Date
Brian Carroll
98474a500a Add a list of starting points to get familiar with compiler code 2021-11-23 00:29:55 +00:00
Folkert
178eabf4dd make non-pub a function 2021-11-22 22:13:06 +01:00
Folkert
44fdf8df18 remove unreachable cases 2021-11-22 21:40:44 +01:00
Folkert
f2f4f3bd72 Merge remote-tracking branch 'origin/trunk' into wasm-dec-add 2021-11-22 21:25:01 +01:00
Folkert
b2aa33f839 Merge remote-tracking branch 'origin/trunk' into alias-remove-lowercases 2021-11-22 21:19:27 +01:00
Folkert
2c1005fdf0 remove lowercases from Content 2021-11-22 21:15:58 +01:00
Folkert
e4ffe804ec remove lowercases from errortype alias 2021-11-22 20:26:50 +01:00
Folkert
2506875970 preallocate variables to prevent extra vector allocations 2021-11-22 20:17:03 +01:00
hafiz
b3ecc16b16
Merge pull request #2050 from rtfeldman/empty-tags-and-unions
Canonicalize to empty tags and unions
2021-11-22 08:00:07 -06:00
Folkert
7a9f5041b0 clarity return value 2021-11-22 10:27:34 +01:00
Folkert
78c26c6096 fix returning an aggregate value with ccc 2021-11-22 10:17:17 +01:00
Richard Feldman
c8cfba05f1
Merge pull request #2051 from rtfeldman/inline-subs-functions
mark some Subs functions as alwaysinline
2021-11-22 00:04:35 -05:00
Richard Feldman
22adbe0bce
Merge pull request #2054 from rtfeldman/i/1804-inference-var
Implement type checking in the presence of `_` inference variables
2021-11-21 23:58:17 -05:00
ayazhafiz
1135d88dd0 Add support for type inference at _s in type definitions
All we have to do is introduce a new, unconstrained type variable at
underscore sites, and let the type reconstructor work its magic! The
unconstrained type variable will become a `FlexVar` that absorbs
constraints given to it, so it'll behave like a proper inference
variable. That's it!

Part of #1804
2021-11-21 22:54:45 -05:00
Brian Carroll
5a8c3d4f0f Fix it again, properly this time 2021-11-21 23:49:26 +00:00
Brian Carroll
bd2813f36c Fix loading of 128-bit numbers 2021-11-21 23:46:04 +00:00
Folkert
69ad83a0d4 mark some Subs functions as alwaysinline 2021-11-21 23:49:51 +01:00
Folkert
f96d60a13e Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor 2021-11-21 23:19:55 +01:00
Folkert
bceebc4f8f first pass at decimal addition in the wasm backend 2021-11-21 23:00:12 +01:00
rvcas
7f06d54816 feat: base generic64 tests base now 2021-11-21 16:37:22 -05:00
Folkert
385224301e turn off ir printing 2021-11-21 22:30:05 +01:00
Folkert
f9f79ee766 Merge remote-tracking branch 'origin/trunk' into empty-tags-and-unions 2021-11-21 22:25:18 +01:00
Folkert
8afdf282cb assert that no tag union or record with no fields/tags makes it into Subs 2021-11-21 22:25:03 +01:00
Folkert
5415f458b1 make a layout for the empty tag union 2021-11-21 22:24:35 +01:00
Folkert
e4d630108c canonicalize to empty record or tag union 2021-11-21 22:24:18 +01:00
Brian Carroll
e5658cc2ca Clippy & formatting 2021-11-21 21:04:42 +00:00
Brian Carroll
0a5b0bdb0a Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-load-128bit-numbers 2021-11-21 20:53:38 +00:00
Brian Carroll
ee3b072466
Merge pull request #2048 from rtfeldman/decimal-literals
wasm backend decimal literals
2021-11-21 20:53:11 +00:00
Brian Carroll
2e31350010 Logic to load 128-bit numbers 2021-11-21 20:44:16 +00:00
Brian Carroll
ee1c4478da Improve IR debug printing for dev backends 2021-11-21 20:44:16 +00:00
Folkert
2d4e6b414c pass a pointer width of 4 to wasm test gen 2021-11-21 21:37:15 +01:00
rvcas
1c4a68f15f feat: UnconditionalBranchRegister 2021-11-21 15:25:09 -05:00
rvcas
fc81abaf34 feat: LogicalShiftedRegister 2021-11-21 14:55:48 -05:00
Folkert de Vries
9802941f3f
Merge pull request #2045 from rtfeldman/drop-aliases
Drop unused alias info
2021-11-21 20:45:48 +01:00
Folkert
f90f5a4bdd fix merge conflict 2021-11-21 20:34:16 +01:00
Folkert
fc635abe0b Revert "decimal add experiment"
This reverts commit bfd5ca623c.
2021-11-21 20:29:12 +01:00
Folkert
bfd5ca623c decimal add experiment 2021-11-21 20:02:33 +01:00
Richard Feldman
763809805b Drop unused alias info 2021-11-21 13:35:23 -05:00
Folkert
5529841d68 Merge remote-tracking branch 'origin/trunk' into decimal-literals 2021-11-21 19:31:38 +01:00
Folkert
f6b5087d29 Revert "conditionally automatically show wasm-objdump in terminal"
This reverts commit 64bf7253d1.
2021-11-21 19:31:29 +01:00
Folkert de Vries
520210da6b
Merge pull request #2041 from rtfeldman/refcount-comments
Add comments to ModifyRc enum
2021-11-21 19:30:20 +01:00
Folkert
64869ffb8b Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor 2021-11-21 19:22:32 +01:00
Folkert
7fc79c3d40 fix typo 2021-11-21 19:20:05 +01:00
Brendan Hansknecht
cbbe04509b
Merge pull request #2034 from rtfeldman/dev-backend-num-lt
Add x86_64 Int lt support for gen_dev
2021-11-21 09:18:23 -08:00
Folkert
dc44eaac97 cleanup 2021-11-21 14:11:18 +01:00
Folkert
96498d667e remove usize dev gen 2021-11-21 13:25:39 +01:00
Folkert
7d231f87cd remove usize llvm gen 2021-11-21 13:24:53 +01:00
Folkert
2033f1f430 remove usize in mono 2021-11-21 13:22:45 +01:00
satotake
da2ba6c0f2 add test_set_reg64_help
remove
* test_sete_reg64
* test_setne_reg64
2021-11-21 08:12:00 +00:00
Brian Carroll
01f81c5092 Add comments to ModifyRc enum 2021-11-21 07:55:09 +00:00