| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fixes, delnops | 2025-09-09 | 1 | -0/+1 | |
| | | |||||
| * | regalloc: start implementing linear scan | 2025-09-08 | 1 | -2/+9 | |
| | | |||||
| * | backend: fix mem2reg & regalloc | 2023-06-26 | 1 | -0/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | frontend: add labels and goto statement | 2023-06-26 | 1 | -0/+1 | |
| | | |||||
| * | fix some warnings | 2023-06-25 | 1 | -1/+1 | |
| | | |||||
| * | backend: fix regalloc to work with more complex dataflow | 2023-06-24 | 1 | -1/+41 | |
| | | | | | | | | | 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 | ||||
| * | mem2reg: implement ssa construction; this breaks regalloc right now | 2023-06-21 | 1 | -1/+1 | |
| | | |||||
| * | explicitly store predecessors in each block | 2023-06-21 | 1 | -0/+23 | |
| | | |||||
| * | 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 | ||||
| * | move ctype to common.h | 2023-06-19 | 1 | -0/+7 | |
| | | |||||
| * | add endian.h for endian dependent stuff | 2023-06-18 | 1 | -3/+10 | |
| | | |||||
| * | fix memory bugs | 2023-06-18 | 1 | -1/+1 | |
| | | |||||
| * | basic ELF output | 2023-06-17 | 1 | -5/+8 | |
| | | |||||
| * | add spilling for function calls, misc fixes | 2023-06-14 | 1 | -3/+3 | |
| | | |||||
| * | lower allocas in isel() instead of emit() and misc fixes | 2023-06-13 | 1 | -0/+4 | |
| | | |||||
| * | oops | 2023-06-12 | 1 | -1/+1 | |
| | | |||||
| * | register renaming and such | 2023-06-12 | 1 | -0/+23 | |
| | | |||||
| * | remove RPARAM, add Oparam, lower args/rets to abi regs in abi0 | 2023-06-11 | 1 | -5/+8 | |
| | | |||||
| * | isel skeleton | 2023-06-10 | 1 | -1/+8 | |
| | | |||||
| * | codegen skeleton | 2023-06-06 | 1 | -0/+2 | |
| | | |||||
| * | command line switch for debug options | 2023-06-05 | 1 | -0/+5 | |
| | | |||||
| * | better diagnostics | 2023-06-04 | 1 | -0/+1 | |
| | | |||||
| * | evaluate call args backwards | 2023-06-04 | 1 | -0/+2 | |
| | | |||||
| * | abi lowering pass | 2023-06-04 | 1 | -1/+6 | |
| | | |||||
| * | basic ABI lowering of aggregates | 2023-06-01 | 1 | -2/+12 | |
| | | |||||
| * | regalloc skeleton | 2023-05-31 | 1 | -3/+17 | |
| | | |||||
| * | field access | 2023-05-29 | 1 | -10/+24 | |
| | | |||||
| * | hm | 2023-05-26 | 1 | -3/+7 | |
| | | |||||
| * | initial commit | 2023-05-10 | 1 | -0/+359 | |