aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
Commit message (Collapse)AuthorAgeFilesLines
* implement most of preprocessorlemon2025-10-131-0/+11
| | | | | | | | - concatenation (##) - builtin macros (__FILE__ etc) - fails in some edge cases, and code needs cleanup - add embedded system include files (stddef.h, stdarg.h for now) - can handle stdio.h now
* c: call memset for some runtime zero initializationslemon2025-10-091-0/+8
|
* alloc changeslemon2025-09-171-0/+4
|
* preliminary pie and piclemon2025-09-141-0/+1
|
* regset doesnt need all those macroslemon2025-09-141-5/+2
|
* change freearena for correctnesslemon2025-09-141-4/+4
|
* regalloc improvementslemon2025-09-141-0/+1
|
* fixes, delnopslemon2025-09-091-0/+1
|
* regalloc: start implementing linear scanlemon2025-09-081-2/+9
|
* backend: fix mem2reg & regalloclemon2023-06-261-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 statementlemon2023-06-261-0/+1
|
* fix some warningslemon2023-06-251-1/+1
|
* backend: fix regalloc to work with more complex dataflowlemon2023-06-241-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 nowlemon2023-06-211-1/+1
|
* explicitly store predecessors in each blocklemon2023-06-211-0/+23
|
* add basic mem2reglemon2023-06-201-0/+1
| | | | | | | promotes uniform stack slots to temporaries currently only for immutable variables, next thing to implement is ssa construction
* move ctype to common.hlemon2023-06-191-0/+7
|
* add endian.h for endian dependent stufflemon2023-06-181-3/+10
|
* fix memory bugslemon2023-06-181-1/+1
|
* basic ELF outputlemon2023-06-171-5/+8
|
* add spilling for function calls, misc fixeslemon2023-06-141-3/+3
|
* lower allocas in isel() instead of emit() and misc fixeslemon2023-06-131-0/+4
|
* oopslemon2023-06-121-1/+1
|
* register renaming and suchlemon2023-06-121-0/+23
|
* remove RPARAM, add Oparam, lower args/rets to abi regs in abi0lemon2023-06-111-5/+8
|
* isel skeletonlemon2023-06-101-1/+8
|
* codegen skeletonlemon2023-06-061-0/+2
|
* command line switch for debug optionslemon2023-06-051-0/+5
|
* better diagnosticslemon2023-06-041-0/+1
|
* evaluate call args backwardslemon2023-06-041-0/+2
|
* abi lowering passlemon2023-06-041-1/+6
|
* basic ABI lowering of aggregateslemon2023-06-011-2/+12
|
* regalloc skeletonlemon2023-05-311-3/+17
|
* field accesslemon2023-05-291-10/+24
|
* hmlemon2023-05-261-3/+7
|
* initial commitlemon2023-05-101-0/+359