| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | oops | 2025-09-11 | 1 | -1/+1 | |
| | | |||||
| * | preprocessor: more awful hacks | 2025-09-11 | 1 | -0/+2 | |
| | | |||||
| * | bugfix | 2025-09-09 | 1 | -1/+1 | |
| | | |||||
| * | fixes, delnops | 2025-09-09 | 1 | -2/+32 | |
| | | |||||
| * | regalloc: start implementing linear scan | 2025-09-08 | 1 | -3/+19 | |
| | | |||||
| * | regalloc fixes and rpo | 2023-07-09 | 1 | -9/+20 | |
| | | |||||
| * | add initializers (only static for initialier list rn) | 2023-06-29 | 1 | -39/+8 | |
| | | | | | and other fixes | ||||
| * | backend: fix mem2reg & regalloc | 2023-06-26 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | they were broken, especially for unstructured control flow. most significant fix is to register allocator for temporaries that are used before the first definition in the source order, e.g.: @1: %x = add %y, 1 b @3 @2 %y = ... b @1 it's legal for %x to use %y there (assuming @2 dominates @1) but from the point of view of the register allocator %y is defined and freed and then used again, which broke things. the fix is to introduce phis for this situation: @1: %y.1 = phi @2 %y %x = add %y.1, 1 b @3 @2 %y = ... b @1 then regalloc phi handling code makes it work | ||||
| * | ir: dattab shouldn't reset for every function | 2023-06-24 | 1 | -1/+1 | |
| | | | | | this was causing later functions' data to override earlier data | ||||
| * | fix replcuses | 2023-06-24 | 1 | -17/+16 | |
| | | |||||
| * | backend: fix regalloc to work with more complex dataflow | 2023-06-24 | 1 | -9/+61 | |
| | | | | | | | | | basically an allocation map at the beginning (in) and end (out) of each block is kept and after the first allocation pass another pass is ran to resolve allocation conflicts between each edge, plus another pass to finish lowering phi functions. also introduced `regset` and plenty of other miscellaneous fixes | ||||
| * | change RMORE -> RADDR; use RXXX (RNONE) for special args,also undef | 2023-06-22 | 1 | -5/+5 | |
| | | |||||
| * | misc fix | 2023-06-22 | 1 | -4/+43 | |
| | | |||||
| * | mem2reg: implement ssa construction; this breaks regalloc right now | 2023-06-21 | 1 | -41/+106 | |
| | | |||||
| * | explicitly store predecessors in each block | 2023-06-21 | 1 | -60/+60 | |
| | | |||||
| * | add basic mem2reg | 2023-06-20 | 1 | -0/+1 | |
| | | | | | | | | promotes uniform stack slots to temporaries currently only for immutable variables, next thing to implement is ssa construction | ||||
| * | backend: compile comparison instrs and branches | 2023-06-19 | 1 | -0/+9 | |
| | | |||||
| * | add endian.h for endian dependent stuff | 2023-06-18 | 1 | -31/+4 | |
| | | |||||
| * | fix memory bugs | 2023-06-18 | 1 | -4/+6 | |
| | | |||||
| * | ELF output static data | 2023-06-18 | 1 | -14/+16 | |
| | | |||||
| * | basic ELF output | 2023-06-17 | 1 | -0/+17 | |
| | | |||||
| * | misc | 2023-06-17 | 1 | -13/+19 | |
| | | |||||
| * | less memset | 2023-06-15 | 1 | -3/+9 | |
| | | |||||
| * | simpler handling of large constants in IR | 2023-06-14 | 1 | -7/+4 | |
| | | |||||
| * | lowering of structcopy | 2023-06-13 | 1 | -2/+3 | |
| | | |||||
| * | use a hashtable for addr refs | 2023-06-13 | 1 | -3/+25 | |
| | | |||||
| * | lower allocas in isel() instead of emit() and misc fixes | 2023-06-13 | 1 | -6/+6 | |
| | | |||||
| * | remove RPARAM, add Oparam, lower args/rets to abi regs in abi0 | 2023-06-11 | 1 | -1/+2 | |
| | | |||||
| * | isel skeleton | 2023-06-10 | 1 | -8/+14 | |
| | | |||||
| * | codegen skeleton | 2023-06-06 | 1 | -1/+2 | |
| | | |||||
| * | encode calls a different way in the IR | 2023-06-05 | 1 | -18/+3 | |
| | | |||||
| * | style | 2023-06-05 | 1 | -2/+2 | |
| | | |||||
| * | strlits | 2023-06-05 | 1 | -9/+15 | |
| | | |||||
| * | command line switch for debug options | 2023-06-05 | 1 | -3/+0 | |
| | | |||||
| * | abi lowering pass | 2023-06-04 | 1 | -25/+95 | |
| | | |||||
| * | basic ABI lowering of aggregates | 2023-06-01 | 1 | -23/+60 | |
| | | |||||
| * | struct args and return | 2023-06-01 | 1 | -7/+6 | |
| | | |||||
| * | regalloc skeleton | 2023-05-31 | 1 | -1/+23 | |
| | | |||||
| * | fix void conditional expr; condjump, condexprvalue optimizations | 2023-05-31 | 1 | -0/+21 | |
| | | |||||
| * | phis? | 2023-05-30 | 1 | -14/+39 | |
| | | |||||
| * | bool fixes | 2023-05-28 | 1 | -1/+1 | |
| | | |||||
| * | hm | 2023-05-26 | 1 | -5/+5 | |
| | | |||||
| * | initial commit | 2023-05-10 | 1 | -0/+221 | |