Brendan Hansknecht
6a38ec03ed
enable returning structs
...
That being said the support is very limited. It really only supports
single field structs and the special case of 2 ints. I realized that
general support for returning structs requires a calling conv extension
for returning them. Instead of adding all of the calling conv versions,
I just added a few basic cases that are shared accross calling conv. It
turns out that the calling conv extension is quite detailed for how it
works in Arm. X86 isn't too detailed overall.
2021-05-15 23:01:23 -07:00
Folkert
ff3f231155
remove Mode from stdlib
2021-04-01 21:42:38 +02:00
Richard Feldman
6dc5aa2901
Allow dead code on a couple of helpers
2021-03-26 09:16:23 -04:00
Richard Feldman
e5bbca477d
Revert "Drop some unused helpers"
...
This reverts commit 09cf687349
.
2021-03-26 09:15:08 -04:00
Richard Feldman
09cf687349
Drop some unused helpers
2021-03-26 08:45:47 -04:00
Brendan Hansknecht
7d24d51392
gen_dev: generate and link zig builtins.
2021-02-14 18:15:00 -08:00
Chadtech
a46a7ef06a
builtin_defs_map passed in explicitly in many places that want to monomorphize, so that we can use a new test_builtin_defs in tests. Hash test works
2021-01-18 22:38:51 -05:00
Folkert
ab6cb7ac93
pass stdlib by reference
2021-01-14 16:49:55 +01:00
rvcas
b34436e5cb
Merge branch 'trunk' into int_a_float_a
2021-01-04 09:53:45 -05:00
rvcas
a123bfa3ee
fix: tests compile and repl_eval
2021-01-04 09:46:10 -05:00
Folkert
728298d15a
automatic clippy fixes
2021-01-01 00:05:45 +01:00
Folkert
7919b2eef3
clippy
2020-12-06 22:16:53 +01:00
rvcas
4f19eedce4
chore: comment out unused stuff to reduce noise
2020-12-01 23:02:25 -05:00
Brendan Hansknecht
0d0eb440db
Properly generate main function name
2020-11-24 23:37:41 -08:00
Richard Feldman
6e126b3465
Update gen_dev tests to use new module format
2020-11-24 20:23:33 -05:00
Brendan Hansknecht
7fd7407724
Add lazy literal loading optimization
2020-11-22 13:44:38 -08:00
Brendan Hansknecht
86c3c0a409
Add base structure for dev compiler backend
...
Currently we only generate a single static function, but it is probably
loaded and run with jit. This is the base to start generating proper
code.
2020-11-14 18:43:02 -08:00