Commit graph

4798 commits

Author SHA1 Message Date
Brendan Hansknecht
d9d0d0c0af Refactor dev backend to deal with layouts within specific backends. Just check constraints at high level 2021-09-03 10:54:51 -07:00
Richard Feldman
3364ea00e0 Only print warnings if there are no errors 2021-09-02 22:24:48 -04:00
Richard Feldman
69bafb4e17 clippy 2021-09-02 22:08:09 -04:00
Richard Feldman
5d77aca738 Fix reporting tests 2021-09-02 21:59:13 -04:00
Richard Feldman
828c5191cf Print a horizontal rule after the last error 2021-09-02 21:59:13 -04:00
Richard Feldman
1360b04227 Add severity to file loading reports 2021-09-02 21:59:13 -04:00
Richard Feldman
a1e7610709 Add severity to mono reports 2021-09-02 21:59:13 -04:00
Richard Feldman
70939f1d6a Add severity to parse problem reports 2021-09-02 21:59:13 -04:00
Richard Feldman
ee6c246b07 Add severity to type problem reports 2021-09-02 21:59:13 -04:00
Richard Feldman
c711f0bbc7 Report severity and custom titles in can::Problem 2021-09-02 21:59:13 -04:00
Richard Feldman
71af5c5a1a Add severity to Report 2021-09-02 21:59:13 -04:00
Folkert
cde8f5cbd4 optimize RC 2021-09-02 21:29:24 +02:00
Folkert
4e39543054 simplify/optimize decref logic 2021-09-01 23:07:56 +02:00
Folkert
7aac6b6750 cleanup 2021-09-01 22:52:39 +02:00
Folkert
08e242967a function must end with an End instruction 2021-09-01 22:36:34 +02:00
Folkert
ff29b19338 add wasm tests 2021-09-01 22:35:14 +02:00
Folkert
98c672bbde pipe target information through 2021-09-01 21:50:59 +02:00
Brian Carroll
0770bb242e Reset after each procedure, and reserve space in vecs 2021-09-01 20:12:01 +01:00
Brian Carroll
9ba7076d8e Cleanups after self-review
- Fix clippy warnings
- Improve a comment
- Delete commented-out lines in Cargo.toml
- Checkin Cargo.lock
2021-09-01 19:37:15 +01:00
Folkert
d8d4522b16 cleanup 2021-09-01 20:27:48 +02:00
Brian Carroll
3bf94e020c Beat the borrow-checker by following gen_dev structure 2021-09-01 19:26:26 +01:00
Brian Carroll
e67efaba4d Split up Wasm module and function 2021-09-01 19:26:26 +01:00
Brian Carroll
e5d5bb27fa Implement a bit more of the IR 2021-09-01 19:26:25 +01:00
Brian Carroll
6500cb3c35 Add a body to the function 2021-09-01 19:26:25 +01:00
Brian Carroll
4d76b9d15d Refactor locals 2021-09-01 19:26:25 +01:00
Brian Carroll
8d7e0471fd Get rid of return-on-stack stuff for now, focus on numbers first 2021-09-01 19:26:24 +01:00
Brian Carroll
06c0e0d815 outline of build_proc 2021-09-01 19:26:24 +01:00
Brian Carroll
a1102222dd Create a high-level structure for Wasm backend 2021-09-01 19:26:23 +01:00
Brian Carroll
863f449048 Create a library for the Wasm dev backend 2021-09-01 19:26:23 +01:00
Folkert
85e4afefe8 quick fix for failing expects on wasm 2021-09-01 17:22:57 +02:00
Folkert
5cb7dbd3cc use zig's decref instead of an LLVM implementation 2021-09-01 16:58:05 +02:00
Folkert
59c63ef3a8 fix tag id stored in ptr bits on 32-bit systems 2021-09-01 15:57:32 +02:00
Folkert
3ef4a40f45 hopefully get the logic right this time 2021-09-01 15:56:50 +02:00
Folkert
4731cbd391 trying to be even smarter 2021-08-31 22:40:13 +02:00
Folkert
a810c2c27b smarter alignment code 2021-08-31 22:37:32 +02:00
Folkert
106f1311d2 only conditionally flip a bit 2021-08-31 22:32:56 +02:00
Folkert
49708cfff8 WIP 2021-08-31 20:11:28 +02:00
Folkert
b7db53a8d9 remove wasm tests (they would obviously fail CI) 2021-08-31 12:36:50 +02:00
Anton-4
3f148fe4eb removed wasm tests relying on unreleased zig version 2021-08-31 12:33:22 +02:00
Folkert
2e91914443 use zig wasm-ld 2021-08-30 00:18:01 +02:00
Folkert
b416e854ef Merge remote-tracking branch 'origin/trunk' into wasm-gen-test 2021-08-29 23:14:03 +02:00
Folkert
ca227a58aa clippy 2021-08-29 23:13:40 +02:00
Folkert
4d53b60c02 fix use after move 2021-08-29 23:11:16 +02:00
Folkert
d77c695e45 turn off wasm testing 2021-08-29 23:08:16 +02:00
Folkert
4ced5ce2c0 updates for tests 2021-08-29 23:06:23 +02:00
Folkert
344f30747d make Dict.len actually return a usize 2021-08-29 23:05:58 +02:00
Folkert
1ca0b797ea make Dict.len return a nat 2021-08-29 23:04:20 +02:00
Folkert
32ef95e3d0 clean up sjlj code gen 2021-08-29 17:09:32 +02:00
Folkert
53c8500d11 use zig to generate round function; llvm gives wasm errors 2021-08-29 17:09:04 +02:00
rvcas
059aeaf1de fix: obj and ir files have new names 2021-08-29 10:47:53 -04:00