Commit Graph

44 Commits

Author SHA1 Message Date
ridethepig
c97f3dfdac block merge 2023-06-18 18:55:28 +08:00
ridethepig
247d92b0ab dead code elimination 2023-06-18 00:54:52 +08:00
ridethepig
07a078b80e simple constant fold 2023-06-15 23:23:53 +08:00
ridethepig
40ac8b9d65 SCCP 2023-06-15 22:14:00 +08:00
ridethepig
3b5cd82206 refine mem2reg, frontend refactor 2023-06-15 09:21:56 +08:00
ridethepig
81bd968258 RegAlloc pass all func test 2023-06-14 20:53:57 +08:00
ridethepig
6bf4093bfb first sysy2asm all function pass 2023-06-14 17:37:08 +08:00
ridethepig
8b0f0f63a1 buggy buggy reg alloc 2023-06-12 20:50:05 +08:00
ridethepig
7a74685838 treat local const array as global 2023-06-08 17:30:58 +08:00
ridethepig
5c1278280a optimize local array init 2023-06-08 17:13:53 +08:00
ridethepig
3073d69806 add fmtlib 2023-06-08 16:33:49 +08:00
ridethepig
571ab10f62 trivial 2023-06-05 18:33:50 +08:00
ridethepig
8d23769410 trivial 2023-06-05 00:50:24 +08:00
ridethepig
6f1836450a prepare for rv64 sim (ignoring buggy reg alloc) 2023-05-29 01:23:10 +08:00
ridethepig
9b9a96881a buggy reg alloc 2023-05-26 21:51:41 +08:00
ridethepig
32bb8f38a7 llvm ir to low-level ir 2023-05-25 17:07:36 +08:00
ridethepig
3191c3ad10 rename namespace 2023-05-24 20:40:45 +08:00
ridethepig
44d42d3163 better gep generation 2023-05-24 17:05:58 +08:00
ridethepig
67a32e446e machine code gen part 1 2023-05-23 23:38:48 +08:00
ridethepig
a2d0c211a4 prepare to code selection 2023-05-23 13:58:25 +08:00
ridethepig
8a9c32e820 first workable Mem2Reg 2023-05-22 11:15:19 +08:00
ridethepig
375a325899 fix dominance 2023-05-20 13:23:09 +08:00
ridethepig
c2e91b1e3c improved cfg with block simplification 2023-05-20 12:29:41 +08:00
ridethepig
2a36406e3d buggy mem2reg 2023-05-20 10:46:46 +08:00
ridethepig
7140d0bf2b add dominance(partial) 2023-05-17 21:38:28 +08:00
ridethepig
34a5a8ff01 start to add passes 2023-05-17 00:58:30 +08:00
ridethepig
a9a340f482 Rename API, Make emit IR optional 2023-05-17 00:25:13 +08:00
ridethepig
57094c9afe functional all pass 2023-05-16 00:41:02 +08:00
ridethepig
436d22b452 fix cond gen 2023-05-15 10:20:40 +08:00
ridethepig
391b529960 At least, they all compiles 2023-05-14 19:44:51 +08:00
ridethepig
53b6e3e33f buggy ir gen 2023-05-13 10:37:31 +08:00
ridethepig
547651676c trivial update 2023-05-11 10:19:03 +08:00
ridethepig
4706c79a6d at least everything compiles 2023-05-08 21:16:16 +08:00
ridethepig
1bbad18f52 bugfix 2023-05-08 19:41:14 +08:00
ridethepig
dd48562daa buggy buggy frontend 2023-05-07 21:59:04 +08:00
ridethepig
619145bf22 infrastructure update 2023-05-06 18:54:00 +08:00
ridethepig
7cd6471b9d untested frontend, and without array support 2023-05-05 21:24:02 +08:00
ridethepig
d87a5151eb Update grammar for Condition ShortCut 2023-05-05 16:11:44 +08:00
ridethepig
ed1f6d52d8 ConstExpr eval with const lval 2023-05-02 17:20:35 +08:00
ridethepig
5ee500cb00 Add synonyms for tokens 2023-05-02 14:57:17 +08:00
ridethepig
32e3dc7a77 add format and logger 2023-05-01 23:52:06 +08:00
ridethepig
5c492ddbf4 add argparse 2023-04-30 01:01:03 +08:00
ridethepig
26de003feb rewrite grammar file 2023-04-29 23:03:41 +08:00
ridethepig
31bf47eb70 Make anltr conformed to standard env 2023-04-28 16:38:48 +08:00