Commit Graph

3866 Commits

Author SHA1 Message Date
Richard Feldman
666caef00c Fix scope and weak on dev wrapper generation 2021-05-24 23:28:39 -04:00
Richard Feldman
aa96d2373b Reorder args in decref 2021-05-24 22:06:35 -04:00
Richard Feldman
65542149a3 Fix alloc type sigs in utils.zig 2021-05-24 22:01:14 -04:00
Richard Feldman
2909c06e72 Add tail_call to ASM trait 2021-05-24 21:41:37 -04:00
Richard Feldman
595c704e88 Generate roc_alloc etc in dev_num tests 2021-05-24 21:36:27 -04:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Richard Feldman
75ec2ecc7b
Merge pull request #1300 from rtfeldman/specialize-lowlevel
Polyvariant defunctionalization
2021-05-24 19:54:17 -04:00
Folkert de Vries
513a624d28
Merge branch 'trunk' into roc_alloc 2021-05-24 18:22:47 +02:00
Folkert
f8078b0bfa fix mono 2021-05-24 16:11:25 +02:00
Folkert
5f408c42b0 enable tag unions as functions in code gen 2021-05-24 16:01:51 +02:00
Folkert
174daeb3b5 fix codegen 2021-05-24 15:28:41 +02:00
Folkert
e81087f913 Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel 2021-05-24 15:17:28 +02:00
Chadtech
ac7386fd27
Merge branch 'trunk' into hash-links 2021-05-24 09:14:52 -04:00
Folkert
fbb711b2ca Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel 2021-05-24 15:11:40 +02:00
Folkert
f480919186 Merge remote-tracking branch 'origin/trunk' into no-arg-tag-union-func 2021-05-24 14:44:32 +02:00
Folkert
5b643467bf clippy 2021-05-24 14:44:00 +02:00
Folkert
53a4af99f4 mono tests 2021-05-24 14:41:37 +02:00
Folkert
ffa680ddbc in apply, zeroargumenttag becomes normal tag again 2021-05-24 14:33:32 +02:00
Richard Feldman
c8665fa9b2
Merge branch 'trunk' into hash-links 2021-05-24 08:25:11 -04:00
Folkert
06bf614437 fix recursion layout issue 2021-05-24 14:15:52 +02:00
Richard Feldman
b60988d63e
Merge branch 'trunk' into morphic-lib 2021-05-24 07:18:59 -04:00
Folkert
1aa71113ca rename for clarity 2021-05-24 12:03:06 +02:00
Folkert
cae4225504 clippy 2021-05-24 11:59:20 +02:00
Folkert
7bcab24fa0 clippy 2021-05-24 11:57:52 +02:00
Richard Feldman
0e0cf8a16e Renamed gen_dev/gen_num to dev_num 2021-05-23 23:47:09 -04:00
Richard Feldman
81d758d647 Fix gen_compare tests 2021-05-23 23:46:09 -04:00
Richard Feldman
e3267dbf61 Fix some test module names 2021-05-23 23:46:09 -04:00
Richard Feldman
6c4ba49086 Move add_intrinsics back 2021-05-23 23:46:09 -04:00
Richard Feldman
fae2aac5f8 Drop duplicate intrinsic definitions 2021-05-23 23:46:09 -04:00
Richard Feldman
2125235e3a Use add_func to avoid funcunction redefinitions 2021-05-23 23:46:09 -04:00
Richard Feldman
ebad3597c9 Call add_intrinsics after add_default_roc_externs
This is necessary to prevent defining things twice
2021-05-23 23:46:09 -04:00
Richard Feldman
e6ece40f76 Extract externs helpers into gen 2021-05-23 23:46:09 -04:00
Richard Feldman
017ba59775 Have test_gen provide roc_alloc etc 2021-05-23 23:46:09 -04:00
Richard Feldman
18df7fd24f Make alignment be a u32 2021-05-23 23:46:09 -04:00
Richard Feldman
13198bce37 Update comments to no longer reference malloc 2021-05-23 23:46:09 -04:00
Richard Feldman
f31060af34 Fix pointer type in call to dealloc 2021-05-23 23:46:09 -04:00
Richard Feldman
0a1b57060d Fix some comments 2021-05-23 23:46:09 -04:00
Richard Feldman
19a8bd634e Don't make this function look private 2021-05-23 23:46:09 -04:00
Richard Feldman
d1a561c30f Call roc_alloc and friends from llvm 2021-05-23 23:46:09 -04:00
Richard Feldman
a4209a84e6 Add llvm intrinsics for roc_alloc etc 2021-05-23 23:46:09 -04:00
Richard Feldman
797bed6d18 Add a comment 2021-05-23 23:46:09 -04:00
Richard Feldman
12c353afaf zig fmt 2021-05-23 23:46:09 -04:00
Richard Feldman
2a68c0c2cd Revert "Add __cxa_throw to utils"
This reverts commit 23f4802b8773043bd0bb32cdf2f235d023a38050.
2021-05-23 23:46:09 -04:00
Richard Feldman
b02ae3794f Add __cxa_throw to utils 2021-05-23 23:46:09 -04:00
Richard Feldman
5efed85d81 Use test allocators for roc_alloc etc in tests 2021-05-23 23:46:09 -04:00
Richard Feldman
64dbf5a777 Have realloc take old_size too
After all, we always know it, and it means host authors don't
necessarily have to store it.
2021-05-23 23:46:09 -04:00
Richard Feldman
ab51582541 Switch builtins to use roc_alloc and friends 2021-05-23 23:46:09 -04:00
Richard Feldman
a7518a675a Clean up some clippy warnings 2021-05-23 20:28:23 -04:00
Richard Feldman
f4b1e74895
Add a note explaining why commented out 2021-05-23 20:06:06 -04:00