Richard Feldman
e6bec46898
Merge pull request #2109 from rtfeldman/refactor-passed-function
...
refactor passed (to higher order lowlevel) funcion
2021-12-01 08:17:39 -05:00
Brian Carroll
a3827d6636
Merge pull request #2071 from rtfeldman/refcount-mono-ir
...
Start generating refcounting code as mono IR
2021-12-01 12:59:16 +00:00
Folkert
834ba77046
missed a bool
2021-12-01 12:53:47 +01:00
Folkert
bec74c36c5
refactor passed (to higher order lowlevel) funcion
2021-11-30 21:50:27 +01:00
rvcas
f995a07029
feat: Num.toStr
...
* add type for Num.toStr
* create new lowlevel
* delete types and Symbol for fromInt and fromFloat
* leave LowLevel::{StrFromFloat,StrFromInt}
* match on LowLevel::NumToStr and figure out the layout to decide
which build function to delegate to
2021-11-30 14:52:06 -05:00
Brian Carroll
2bb49f55f8
Doc comment for RefcountProcGenerator
2021-11-30 15:48:35 +00:00
Brian Carroll
1c3b76ba03
Fix a bug in generated refcount proc for str
2021-11-30 12:59:22 +00:00
Brian Carroll
22ccb6eca4
Prefix string constants with REFCOUNT_MAX
2021-11-30 09:57:31 +00:00
Brian Carroll
c2a2ff2957
Create Expr::to_pretty in mono IR
2021-11-30 09:57:26 +00:00
Brian Carroll
3581c7f5be
Use readable debug names throughout refcount proc generator
2021-11-30 09:57:00 +00:00
Brian Carroll
820d9e0ab4
Register debug names for new Symbols, and refactor to avoid borrow-checker issues
2021-11-30 09:57:00 +00:00
Brian Carroll
e7d8c7c895
Make gen_wasm's Env mutable
2021-11-30 09:57:00 +00:00
Brian Carroll
f4d52f7084
Add alignment argument to Zig decref call
2021-11-30 09:57:00 +00:00
Brian Carroll
38e3386b80
Formatting & comments
2021-11-30 09:57:00 +00:00
Brian Carroll
9bb5335c8d
Delete unused tests
2021-11-30 09:57:00 +00:00
Brian Carroll
2ad032f894
Integrate refcount proc generator with Wasm backend
2021-11-30 09:57:00 +00:00
Brian Carroll
61575cea7e
Generate calls to refcount procs from Wasm backend
2021-11-30 09:57:00 +00:00
Brian Carroll
985fa9dade
Generate refcounting code as IR
2021-11-30 09:57:00 +00:00
Brian Carroll
6e5acadfea
Create new lowlevels for refcounting
2021-11-30 09:57:00 +00:00
Folkert
ab1787937d
shrink CallSpecId and UpdateModeId to u32; assuming a 4GiB file that should be more than enough
2021-11-28 22:59:23 +01:00
Folkert
5b8c63d292
move the heap cell out of the union
2021-11-28 17:51:43 +01:00
Folkert
92cca127b1
refactor
2021-11-28 16:08:11 +01:00
Folkert
8bcb985a80
always also add heap cell to nulled tags
2021-11-28 15:53:05 +01:00
Folkert
537cf69344
add helper for adding a heap cell to values
2021-11-28 15:41:46 +01:00
Folkert
aefe719e56
hook up update mode for reset/reuse
2021-11-28 14:25:51 +01:00
Folkert
0bdda2506c
add update mode to reset and reuse
2021-11-28 14:13:02 +01:00
Folkert
1241d5ccbd
make UpdateModeIds a proper type
2021-11-28 14:03:48 +01:00
Folkert de Vries
8eb74da0f3
Merge pull request #2083 from rtfeldman/layout-soa
...
Layout Struct of Arrays
2021-11-28 12:43:37 +01:00
Folkert
3d1035a11f
fix bug with lists and * type variables
2021-11-27 16:57:50 +01:00
Folkert
79d5c82dfb
cleanup
2021-11-27 16:36:43 +01:00
Folkert
a1fd34feef
remove empty layout types (list,str,dict,set)
2021-11-27 14:05:16 +01:00
Folkert
48368f4fba
fix imports
2021-11-26 22:33:10 +01:00
Folkert
a3b3f5e970
Merge remote-tracking branch 'origin/trunk' into layout-soa
2021-11-26 21:41:25 +01:00
Folkert
6c1f3eedb7
dict and set layouts
2021-11-26 21:39:36 +01:00
Folkert
047514bf39
flesh out FunctionLayout and LambdaSet
2021-11-26 20:55:12 +01:00
Folkert
891c879439
most of the conversion
2021-11-25 23:27:59 +01:00
Folkert
b8eed51611
first attempt at layout soa
2021-11-25 22:09:20 +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
f96d60a13e
Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor
2021-11-21 23:19:55 +01:00
Folkert
385224301e
turn off ir printing
2021-11-21 22:30:05 +01:00
Folkert
5415f458b1
make a layout for the empty tag union
2021-11-21 22:24:35 +01:00
Folkert
2d4e6b414c
pass a pointer width of 4 to wasm test gen
2021-11-21 21:37:15 +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
Folkert
dc44eaac97
cleanup
2021-11-21 14:11:18 +01:00
Folkert
2033f1f430
remove usize in mono
2021-11-21 13:22:45 +01:00
Brian Carroll
01f81c5092
Add comments to ModifyRc enum
2021-11-21 07:55:09 +00:00
Richard Feldman
2db18890d2
Merge pull request #2026 from rtfeldman/mono-remove-solved-type
...
Mono remove solved type
2021-11-20 23:29:38 -05:00
Folkert
aafb98ffac
remove dead code
2021-11-21 00:55:23 +01:00