Commit graph

77 commits

Author SHA1 Message Date
Brendan Hansknecht
d1021d652d Add StrCat support and update hello-zig to support dev backend 2021-09-24 08:31:31 -07:00
Brendan Hansknecht
2f24067267 Add small string support to the dev backend 2021-09-24 08:12:42 -07:00
Brendan Hansknecht
91057ed8b5 Expand support numeric types 2021-09-20 23:28:57 -07:00
Brendan Hansknecht
16d098da5e Add join points and tail call optimization to the dev backend. 2021-09-20 23:13:30 -07:00
Richard Feldman
a21ad7064c Ignore type errors that have already been reported 2021-09-18 08:24:46 -04:00
Folkert
8f7eab4f05 in tests, make gen_dev generate the same name as LLVM backend 2021-09-16 22:22:07 +02:00
Brendan Hansknecht
1b401f2eca Disable failing test 2021-08-23 22:04:11 -07:00
Brendan Hansknecht
03bc61cbf8 Merge branch 'trunk' into gen-dev/records-base 2021-08-23 22:01:53 -07:00
Joshua Hoeflich
ab109b8eb8 Comment out code 2021-08-15 18:15:39 -05:00
Joshua Hoeflich
34def25b55 Cargo fmt 2021-08-15 18:14:43 -05:00
Joshua Hoeflich
1c6ac84f2f Add Num.round to dev backend 2021-08-15 17:50:07 -05:00
Brendan Hansknecht
9831261cda Minor formating cleanup 2021-08-15 10:13:19 -07:00
Brendan Hansknecht
cc1b7df06a Merge branch 'trunk' into gen-dev/records-base 2021-08-14 21:21:31 -07:00
Folkert
899cbeabd7 fix extra ampersands 2021-07-29 17:32:08 +02:00
Folkert
4256c22004 more toplevel 2021-06-18 22:25:31 +02:00
Richard Feldman
595c704e88 Generate roc_alloc etc in dev_num tests 2021-05-24 21:36:27 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Folkert
fbb711b2ca Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel 2021-05-24 15:11:40 +02:00
Richard Feldman
0e0cf8a16e Renamed gen_dev/gen_num to dev_num 2021-05-23 23:47:09 -04:00
Richard Feldman
6f8804f24a
Merge branch 'trunk' into gen_dev/mac-os 2021-05-22 18:20:37 -04:00
tarjei
f581b017e8 Enable writing dev backend on macOS 2021-05-22 20:56:40 +02:00
Brendan Hansknecht
ae6cd1ca4e Update test since frontend doesn't stack overflow anymore 2021-05-20 20:45:06 -07:00
Brendan Hansknecht
1a98ec290e Fix dev backend pointer bug
When using pointers as keys, new ones shouldn't get created. Always
reference an existing item.
2021-05-20 20:36:49 -07:00
Folkert
564aacc1fd Merge remote-tracking branch 'origin/trunk' into specialize-lowlevel 2021-05-20 23:08:53 +02:00
Richard Feldman
b3758727e5
Merge branch 'trunk' into gen-dev/div-i64 2021-05-17 00:04:14 -04:00
rvcas
0cd454f21a test: Num.abs for f64 in the dev backend 2021-05-16 19:22:55 -04:00
Brendan Hansknecht
e56c46ff54 enable record updating tests since they already pass 2021-05-15 23:26:59 -07:00
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
Brendan Hansknecht
ba58e1bbf4 expand supported record tests 2021-05-15 21:17:47 -07:00
Brendan Hansknecht
210004529d float and nested records to the dev backend 2021-05-15 21:05:51 -07:00
Brendan Hansknecht
950d380ea0 Add records to the dev backend 2021-05-15 20:18:04 -07:00
Folkert
4623e0f1ae disable i64_force_stack 2021-05-16 00:35:42 +02:00
Folkert
691fa56d50 make repl evaluate 0-argument thunk 2021-05-16 00:23:04 +02:00
Brendan Hansknecht
69c2b3527c Add i64 multiplication to dev backend 2021-05-15 15:04:49 -07:00
Brendan Hansknecht
91e471e328 Minor cleanup of gen_dev/gen_num tests 2021-05-15 15:02:52 -07:00
Folkert
ff3f231155 remove Mode from stdlib 2021-04-01 21:42:38 +02:00
Richard Feldman
9f73c576f3 macro_use must be in crate root 2021-03-26 09:46:33 -04: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
0cd8ea5cea Re-add indoc in the right place 2021-03-26 09:14:43 -04:00
Richard Feldman
09cf687349 Drop some unused helpers 2021-03-26 08:45:47 -04:00
Eric Henry
7354f0e8ea final test fix 2021-03-13 08:31:48 -05:00
Eric Henry
d47c3d7f49 test fix test 2021-03-12 22:50:48 -05:00
Eric Henry
2a90c147c6 fix Test, another one 2021-03-12 21:46:38 -05:00
Eric Henry
4d046abefa builtin maxI128 initial 2021-03-09 12:47:42 -05:00
Brendan Hansknecht
7d24d51392 gen_dev: generate and link zig builtins. 2021-02-14 18:15:00 -08:00
Brendan Hansknecht
a783be3332 gen_dev: add switch statements. This also fixes a small bug with comparisons. 2021-02-13 15:35:55 -08:00
Brendan Hansknecht
95be1a1b6d gen_dev: add ability to pass arguments to functions 2021-02-12 19:32:34 -08:00
Brendan Hansknecht
fc3bbb9fbc Merge remote-tracking branch 'origin' into gen_dev/funcs 2021-02-12 17:02:36 -08:00
Brendan Hansknecht
846c82961f gen_dev: add basic function support 2021-02-10 22:38:58 -08:00