| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | fixes, delnops | 2025-09-09 | 8 | -6/+40 | |
| | | |||||
| * | regalloc: start implementing linear scan | 2025-09-08 | 12 | -468/+729 | |
| | | |||||
| * | amd64: swap, sar | 2025-09-08 | 1 | -1/+21 | |
| | | |||||
| * | amd64: bugfix | 2025-09-08 | 2 | -5/+9 | |
| | | |||||
| * | frontend: #ifdef | 2024-04-12 | 3 | -6/+67 | |
| | | |||||
| * | fix | 2024-04-09 | 1 | -1/+1 | |
| | | |||||
| * | frontend: basic #include | 2024-04-09 | 5 | -7/+118 | |
| | | |||||
| * | lexer: fix scanning of pp directives in some circumstances | 2024-04-09 | 1 | -1/+2 | |
| | | |||||
| * | fix abi regs with aggregate return in hidden param | 2024-01-24 | 1 | -3/+7 | |
| | | |||||
| * | move definition of struct label | 2023-09-05 | 1 | -10/+9 | |
| | | |||||
| * | fix | 2023-09-05 | 1 | -2/+2 | |
| | | |||||
| * | make ptr offset in init take obj size into account | 2023-09-05 | 2 | -4/+5 | |
| | | |||||
| * | amd64: fix isel for numeric conversion ops | 2023-08-07 | 1 | -4/+4 | |
| | | |||||
| * | amd64: add mulf and divf codegen | 2023-08-07 | 1 | -3/+18 | |
| | | |||||
| * | hm | 2023-08-07 | 1 | -4/+4 | |
| | | |||||
| * | regalloc fixes and rpo | 2023-07-09 | 4 | -21/+78 | |
| | | |||||
| * | amd64/emit bugfix | 2023-07-09 | 1 | -3/+3 | |
| | | |||||
| * | amd64 codegen fixes | 2023-07-07 | 2 | -13/+20 | |
| | | |||||
| * | mem2reg; style | 2023-07-07 | 1 | -7/+12 | |
| | | |||||
| * | regalloc: update preds during simplify pass | 2023-07-07 | 1 | -1/+7 | |
| | | |||||
| * | fix copyopt | 2023-07-06 | 1 | -1/+1 | |
| | | |||||
| * | fix emit() setcc and copy | 2023-07-06 | 1 | -1/+2 | |
| | | |||||
| * | fix mem2reg ?? | 2023-07-06 | 1 | -10/+43 | |
| | | |||||
| * | some frontend fixes | 2023-06-30 | 1 | -3/+24 | |
| | | |||||
| * | misc bugfixs | 2023-06-30 | 4 | -29/+98 | |
| | | |||||
| * | add initializers (only static for initialier list rn) | 2023-06-29 | 16 | -255/+948 | |
| | | | | | and other fixes | ||||
| * | also C23 static_assert | 2023-06-26 | 1 | -3/+3 | |
| | | |||||
| * | c: move codegen code after decl parser | 2023-06-26 | 1 | -748/+748 | |
| | | |||||
| * | frontend: add static assert | 2023-06-26 | 2 | -2/+38 | |
| | | |||||
| * | regalloc: remove unused variable | 2023-06-26 | 1 | -5/+0 | |
| | | |||||
| * | backend: fix mem2reg & regalloc | 2023-06-26 | 7 | -61/+206 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | 2 | -8/+120 | |
| | | |||||
| * | fix some warnings | 2023-06-25 | 3 | -11/+2 | |
| | | |||||
| * | lex: use a circular buffer cache for pre-pre-processed chars | 2023-06-25 | 2 | -56/+67 | |
| | | |||||
| * | regalloc: fix temporary rename clobbering return register with multiple returns | 2023-06-25 | 1 | -2/+13 | |
| | | |||||
| * | regalloc add sources | 2023-06-25 | 1 | -1/+3 | |
| | | |||||
| * | abi0: fix agg return by pointer not updating arg count | 2023-06-24 | 1 | -0/+1 | |
| | | |||||
| * | fix regalloc thinking some ins are dead by adding ins.keep | 2023-06-24 | 3 | -3/+8 | |
| | | |||||
| * | update todo.txt | 2023-06-24 | 1 | -1/+1 | |
| | | |||||
| * | ir: dattab shouldn't reset for every function | 2023-06-24 | 1 | -1/+1 | |
| | | | | | this was causing later functions' data to override earlier data | ||||
| * | amd64/emit: more float fixes | 2023-06-24 | 1 | -21/+24 | |
| | | | | | | optimize loading 0.0 in phis as well as regular copies and also don't use inc or addr for float addition | ||||
| * | backend: don't mixup float and int temps | 2023-06-24 | 4 | -11/+29 | |
| | | | | | | | copy propagation only happens when dataclasses match, register allocator ignores hints if hint register class and instruction class differ, also add mov between int and float regs in amd64/emit | ||||
| * | fix replcuses | 2023-06-24 | 3 | -19/+19 | |
| | | |||||
| * | backend: fix regalloc to work with more complex dataflow | 2023-06-24 | 12 | -225/+748 | |
| | | | | | | | | | 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 | 9 | -74/+73 | |
| | | |||||
| * | Add .editorconfig | 2023-06-22 | 1 | -0/+14 | |
| | | |||||
| * | misc fix | 2023-06-22 | 3 | -18/+55 | |
| | | |||||
| * | mem2reg: implement ssa construction; this breaks regalloc right now | 2023-06-21 | 9 | -159/+300 | |
| | | |||||
| * | explicitly store predecessors in each block | 2023-06-21 | 8 | -115/+135 | |
| | | |||||
| * | amd64: fix aggregate return in regs | 2023-06-20 | 1 | -3/+3 | |
| | | |||||