Commit graph

150 commits

Author SHA1 Message Date
Chris Fallin d72ef25052 WIP. 2022-11-01 20:54:04 -07:00
Chris Fallin 3de1a8e00e WIP. 2022-11-01 20:51:18 -07:00
Chris Fallin a538d10167 big refactor 2022-11-01 20:43:47 -07:00
Chris Fallin 1da150823d WIP. 2022-11-01 02:26:21 -07:00
Chris Fallin 589729566f WIP. 2022-10-29 15:19:26 -07:00
Chris Fallin 676ee3a1d2 WIP. 2022-10-28 14:39:38 -07:00
Chris Fallin 8e8464f76a WIP. 2022-10-27 14:19:39 -07:00
Chris Fallin 1e26c0aaa4 WIP. 2022-10-26 22:15:15 -07:00
Chris Fallin 2214c1701b Remove wasm_encoder backend, and bring in binaryen bindings 2022-10-26 08:15:18 -07:00
Chris Fallin 648badb730 fuzzbug fix 2021-12-25 00:28:29 -08:00
Chris Fallin 5e3edc1de4 working roundtrip of hello world? 2021-12-24 23:02:20 -08:00
Chris Fallin 1b67d25efb fuzzbug fix 2021-12-24 22:17:51 -08:00
Chris Fallin 5031befe3b bugfix 2021-12-24 17:14:45 -08:00
Chris Fallin 5ac961607f fuzzbug fix 2021-12-24 17:13:23 -08:00
Chris Fallin e368f38716 fuzzbug fix on br_table fallthrough types 2021-12-24 16:10:53 -08:00
Chris Fallin 87c416cadf fuzzbug fix 2021-12-24 15:17:38 -08:00
Chris Fallin c0fd7e8fc8 fuzzbug fix 2021-12-24 14:57:14 -08:00
Chris Fallin d6c6c70965 fuzzbug fix 2021-12-24 14:50:23 -08:00
Chris Fallin 110fe11fa8 Add roundtrip-roundtrip fuzz target. 2021-12-24 14:29:32 -08:00
Chris Fallin d5342a0a6a WIP 2021-12-24 14:12:49 -08:00
Chris Fallin 415e1d63e3 Fix liveranges for loops 2021-12-24 14:07:09 -08:00
Chris Fallin f33aab4216 fuzzbug fix and more robust undef handling 2021-12-24 14:00:58 -08:00
Chris Fallin 63aa7e4cb6 working roundtrip for simple module 2021-12-24 13:20:30 -08:00
Chris Fallin 4585ec48be Final module emission (?) 2021-12-24 13:00:21 -08:00
Chris Fallin 88251ad7fb fuzzbug fix 2021-12-24 11:56:40 -08:00
Chris Fallin fd969d9089 fuzzbug fix 2021-12-24 11:49:48 -08:00
Chris Fallin 80f7fc8a6c fuzzbug fix 2021-12-24 11:42:02 -08:00
Chris Fallin 1bd6b25d34 fuzzbug fix 2021-12-24 00:57:30 -08:00
Chris Fallin 252088faed fuzzbug fix 2021-12-24 00:54:04 -08:00
Chris Fallin 8bd53719cf fuzzbug fix 2021-12-24 00:50:57 -08:00
Chris Fallin c7ba91b283 fuzzbug fix 2021-12-24 00:45:27 -08:00
Chris Fallin 45ba7dd209 fuzzbug fix 2021-12-24 00:38:51 -08:00
Chris Fallin 4cfff0275f fuzzbug fix 2021-12-24 00:35:18 -08:00
Chris Fallin f92ea9a556 WIP. 2021-12-24 00:28:44 -08:00
Chris Fallin 726b4da33d WIP. 2021-12-24 00:07:45 -08:00
Chris Fallin 635befa210 fuzzbug fixes 2021-12-23 20:34:50 -08:00
Chris Fallin 57693e592c cleanup and move code to backend/ 2021-12-23 20:05:36 -08:00
Chris Fallin 7735b522d4 fuzzbugs 2021-12-23 19:57:06 -08:00
Chris Fallin f49a7c6b6c WIP. 2021-12-23 18:23:42 -08:00
Chris Fallin b9c59fb5c0 WIP. 2021-12-19 14:47:40 -08:00
Chris Fallin 7c15340372 WIP. 2021-12-19 13:57:50 -08:00
Chris Fallin 3e67394ab1 WIP. 2021-12-19 11:45:13 -08:00
Chris Fallin 973ca3833a Fuzzbug fix 2021-12-17 21:15:28 -08:00
Chris Fallin 65e47c8a32 wasm region generation and target resolution 2021-12-17 01:07:37 -08:00
Chris Fallin 693c691b59 WIP. 2021-12-17 00:25:04 -08:00
Chris Fallin 7719d26177 Rewrote wasm region generation/stackifier from scratch starting from a loop-nest analysis 2021-12-15 23:21:24 -08:00
Chris Fallin 1ace8713ed fuzzbug fixes in stackifier 2021-12-15 20:04:06 -08:00
Chris Fallin 250e922498 fuzzbug fixes in stackifier 2021-12-15 19:15:08 -08:00
Chris Fallin ba80cea24b Fix fuzzbug 2021-12-15 19:02:14 -08:00
Chris Fallin e63bb7a113 Stackify bugfixes 2021-12-15 02:10:59 -08:00
Chris Fallin ff1398ba73 stackifier bugfix 2021-12-15 01:41:44 -08:00
Chris Fallin 427501de95 Stackifier algorithm 2021-12-15 01:29:10 -08:00
Chris Fallin a43575ac00 WIP. 2021-12-15 00:46:40 -08:00
Chris Fallin 99b309a36d Stackification improvements. 2021-12-14 00:21:50 -08:00
Chris Fallin 0947940c43 Refactor 2021-12-12 20:11:28 -08:00
Chris Fallin 925c57be9e fuzzbug fix 2021-12-12 19:44:23 -08:00
Chris Fallin 83c4777895 fuzzbug fixes 2021-12-12 19:40:35 -08:00
Chris Fallin 7e161064bf asserts 2021-12-12 19:28:32 -08:00
Chris Fallin 563092e4f3 WIP. 2021-12-12 10:34:19 -08:00
Chris Fallin 0473031ba4 WIP. 2021-12-11 22:44:48 -08:00
Chris Fallin 1726ec2cc7 WIP. 2021-12-11 22:40:01 -08:00
Chris Fallin 58868c9908 WIP. 2021-12-11 22:36:01 -08:00
Chris Fallin 71078fbe4d WIP. 2021-12-11 22:33:15 -08:00
Chris Fallin 6eb6297a2c WIP. 2021-12-11 22:25:12 -08:00
Chris Fallin 498f5008d6 Refactor IR and frontend SSA construction. 2021-12-11 21:46:14 -08:00
Chris Fallin 3750e0b570 WIP. 2021-12-02 23:34:57 -08:00
Chris Fallin 2751f9a67b WIP. 2021-12-02 23:33:04 -08:00
Chris Fallin 09dd367a12 Removed some code -- backtrack a bit to focus on basics (IR, frontend SSA construction) 2021-12-01 23:11:48 -08:00
Chris Fallin 4733efe3a3 Macros and dataflow analysis framework 2021-11-21 23:12:07 -08:00
Chris Fallin b81e805cf1 WIP. 2021-11-21 17:15:36 -08:00
Chris Fallin 58ef5a86f7 wip 2021-11-21 02:27:11 -08:00
Chris Fallin 4cdd726275 Moved things around a bit. 2021-11-20 23:42:42 -08:00
Chris Fallin 385f726094 fix stackifier: forward edge out of loop header to loop tail 2021-11-20 12:46:10 -08:00
Chris Fallin c79e6aab05 fix stackifier 2021-11-20 12:43:45 -08:00
Chris Fallin ca0570c0d0 Fixed stackifier fuzzbug 2021-11-20 12:20:34 -08:00
Chris Fallin b84509c938 WIP. 2021-11-20 01:29:46 -08:00
Chris Fallin 993aa22379 WIP. 2021-11-14 23:56:56 -08:00
Chris Fallin 62fbb238d7 WIP. 2021-11-14 00:00:34 -08:00
Chris Fallin 3e21bb7411 Add info about disjoint local indices to values. 2021-11-13 23:02:47 -08:00
Chris Fallin 8a7a65f94c Basic support for SSA-ifying locals. 2021-11-13 22:25:27 -08:00
Chris Fallin c1d4e0c6b9 WIP. 2021-11-13 20:59:43 -08:00
Chris Fallin eab9e60338 Cleanup 2021-11-13 17:53:46 -08:00
Chris Fallin 0eb41cb0a3 Seems to be fuzz-clean in wasm-to-IR step now; complete for Wasm-MVP 2021-11-13 17:47:33 -08:00
Chris Fallin d8a4340743 Some fixes to wasm-to-IR step. 2021-11-13 16:44:53 -08:00
Chris Fallin 45a66fa3b8 Initial support for all Wasm MVP opcodes in frontend. Still have a few fuzz failures. 2021-11-13 16:31:11 -08:00
Chris Fallin 0966867317 WIP. 2021-11-13 15:09:47 -08:00
Chris Fallin bc245b581a WIP. 2021-11-13 14:23:22 -08:00
Chris Fallin e6024c4ffd Implement br_table support. 2021-11-13 14:13:31 -08:00
Chris Fallin 7f1652fb2e WIP: more control flow. 2021-11-13 13:49:57 -08:00
Chris Fallin 94b180feb8 Fix clippy lints 2021-11-13 03:49:19 -08:00
Chris Fallin f483b964bb WIP. 2021-11-13 03:38:47 -08:00
Chris Fallin ab260c224f WIP. 2021-11-13 02:32:05 -08:00
Chris Fallin 26428a9f4d WIP. 2021-11-13 01:41:32 -08:00
Chris Fallin 429cf89a22 WIP. 2021-11-13 01:17:53 -08:00
Chris Fallin de2fb20b94 WIP. 2021-11-13 01:10:22 -08:00
Chris Fallin 3ca0886fbb WIP. 2021-11-13 00:59:31 -08:00
Chris Fallin 44c2c8dc17 WIP. 2021-11-13 00:56:49 -08:00
Chris Fallin 1cca77ec37 WIP: command line utility and start of Wasm-parsing frontend. 2021-11-13 00:52:35 -08:00
Chris Fallin 8a2e3e5eed WIP. 2021-11-13 00:20:02 -08:00
Chris Fallin 6bb4f42f6d Skeleton of IR. 2021-11-12 22:16:54 -08:00