Folkert
eaaf3eb940
simplify monomorphization first steps
2021-10-22 18:12:46 +02:00
Folkert
0529d6dbc6
refactor insert_named
2021-10-22 17:22:15 +02:00
Folkert
9d343ab206
use vector instead of set
2021-10-22 16:57:14 +02:00
Brian Carroll
e55f4e7fa9
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_bumpalo
2021-10-22 16:57:04 +02:00
Brian Carroll
db43a15759
Fix clippy warning
2021-10-22 16:56:54 +02:00
Brian Carroll
0586f91b04
Reorder arguments of instruction methods
...
Having the opcode first makes it easier to see if it matches the method name
2021-10-22 13:17:18 +02:00
Folkert
ad9f0b0609
clippy
2021-10-22 13:07:45 +02:00
Brian Carroll
fbceafa8dc
Get all instructon methods compiling
2021-10-22 12:59:19 +02:00
Folkert
da3787feb8
Merge remote-tracking branch 'origin/trunk' into remove-call-result-again
2021-10-22 12:57:36 +02:00
Folkert
10b9307ab6
centralize calling roc functions in llvm
2021-10-22 12:56:58 +02:00
Folkert
e6edfda9a5
refactor call to roc function
2021-10-22 12:32:37 +02:00
Folkert
83de4b55ef
remove another instance of RocCallResult
2021-10-22 12:26:04 +02:00
Brian Carroll
4f958e8a80
Get most common instruction patterns to compile
2021-10-22 12:01:22 +02:00
Brian Carroll
4563e2af49
Get function_builder compiling
2021-10-22 10:38:53 +02:00
Chelsea Troy
49a832d757
Add dropLast to tests and parser
2021-10-21 23:02:26 -05:00
Brian Carroll
dc80623d45
Sketch out methods for byte-level instructions. No macros yet.
2021-10-21 23:21:56 +02:00
Brian Carroll
e168d175c4
Start writing a byte-level function_builder
2021-10-21 21:30:51 +02:00
Brian Carroll
5ea313f256
update gen_wasm to use bumpalo::collections::Vec where possible
2021-10-21 21:14:15 +02:00
Folkert
5507743776
pass arguments as owned again, borrowed caused regressions
2021-10-21 21:09:48 +02:00
Folkert
0a12ce896f
Revert "make list inc/dec non-recursive (except when freeing the list)"
...
This reverts commit 19eadbfe70
.
2021-10-21 20:28:32 +02:00
Folkert
03144f978f
Revert "clippy"
...
This reverts commit 7773cf9b4d
.
2021-10-21 20:28:18 +02:00
Brian Carroll
1be6fd1222
Switch to fork of parity-wasm that can support bumpalo vectors
2021-10-21 17:14:07 +02:00
Richard Feldman
48505abb08
Merge pull request #1801 from rtfeldman/shritesh/m1-codesign
...
Just enough changes to compile on M1
2021-10-20 22:50:14 -04:00
Richard Feldman
cf76ef1f6f
Merge pull request #1796 from rtfeldman/divTruncate
...
Intrinsics for more types
2021-10-20 21:33:44 -04:00
Shritesh Bhattarai
be9d817830
Just enough changes to compile on M1
2021-10-20 20:07:33 -04:00
Folkert
5c02899535
oops
2021-10-20 23:52:51 +02:00
Folkert
dd38d49335
fix formatting
2021-10-20 19:44:26 +02:00
Folkert
76e26e47f3
more cleanup
2021-10-20 17:05:59 +02:00
Folkert
7735ca21ea
cleanup
2021-10-20 17:03:55 +02:00
Folkert
f8dec9453b
make things static again
2021-10-20 16:58:25 +02:00
Folkert
a072d8d1b1
fix things
2021-10-20 16:56:04 +02:00
Folkert
63b1aaad4e
hook up polymorphic zig builtins
2021-10-20 16:43:39 +02:00
Folkert
ab34c2a55e
generalize all number intrinsics
2021-10-20 16:21:57 +02:00
Folkert
9fc832d8ef
new intrinsic approach
2021-10-20 15:18:02 +02:00
Folkert
bd98ac6dc7
Merge remote-tracking branch 'origin/trunk' into divTruncate
2021-10-19 23:36:03 +02:00
Folkert
78c49d3095
support intrinsics/builtins for more integer types
2021-10-19 21:41:38 +02:00
Brian Carroll
95e38a36b6
Merge pull request #1784 from rtfeldman/wasm_reduce_set_get
...
Improve WasmBackend's output, and its structure
2021-10-19 18:19:10 +02:00
Anton-4
bb715e0f84
cleanup
2021-10-19 17:51:47 +02:00
Anton-4
c7c421b2f5
fixed scope lookup bug
2021-10-19 16:45:28 +02:00
Brian Carroll
401f2ececd
rename some methods
2021-10-18 21:35:16 +02:00
Brian Carroll
e4db06cbdd
Add a debug assertion in code builder
2021-10-18 21:16:54 +02:00
Brian Carroll
64603a480c
Get rid of Option in VM stack model
2021-10-18 21:03:54 +02:00
Brian Carroll
b86849347a
Write test debug output to a path in /tmp
2021-10-18 20:42:13 +02:00
Anton-4
0a77b3f334
debugging wrong id in docs test
2021-10-18 19:58:03 +02:00
Brian Carroll
f242aade86
Rename a variable & fix a bug calling functions that return via stack memory
2021-10-18 18:35:48 +02:00
Brian Carroll
1b97675f1f
Refactor the optimisation for immediately-returned Let statements
...
The original intention was to avoid creating a local when we define
and immediately return a primitive value. But now our default path
does avoids unnecessary locals anyway!
For StackMemory values we do need an optimised path but it's nicer
to just pass a flag to Storage::allocate.
2021-10-18 13:18:10 +02:00
Brian Carroll
2daefc8b32
Name a constant
2021-10-18 13:11:05 +02:00
Folkert
031c7cc2e2
Merge remote-tracking branch 'origin/trunk' into mono-lowlevel
2021-10-18 11:11:04 +02:00
Folkert
6cc8f8624c
a way forward
2021-10-18 11:09:38 +02:00
Richard Feldman
6e0341890d
Merge pull request #1786 from rtfeldman/list-non-recursive-rc
...
make list inc/dec non-recursive (except when freeing the list)
2021-10-17 18:13:24 -04:00