aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64/emit.c
Commit message (Collapse)AuthorAgeFilesLines
* codegen bugfixlemon2025-10-171-5/+13
|
* amd64: not, udivlemon2025-10-141-0/+13
|
* amd64: mul -> imullemon2025-10-131-8/+9
|
* fix some more codegen bugs for symbol constantslemon2025-09-161-2/+1
|
* codegen: fix 3-address sub reg,imm codegenlemon2025-09-151-1/+1
|
* start implementing bitfieldslemon2025-09-141-0/+6
|
* codegen: float cmp, ior; frontend: fix cond expr buglemon2025-09-141-3/+16
|
* preliminary pie and piclemon2025-09-141-11/+37
|
* regalloc: basic spilling supportlemon2025-09-131-0/+6
|
* amd64: improve codegen for ADDlemon2025-09-111-0/+3
|
* amd64: bugfix for stack args with no RBP, also reuse epilogue code?lemon2025-09-111-26/+48
|
* amd64/emit: fix order of stack restore operations with regs+stklemon2025-09-091-6/+11
|
* ioperlemon2025-09-091-12/+21
|
* fixes, delnopslemon2025-09-091-2/+2
|
* amd64: swap, sarlemon2025-09-081-1/+21
|
* amd64: bugfixlemon2025-09-081-4/+9
|
* amd64: add mulf and divf codegenlemon2023-08-071-3/+18
|
* amd64/emit bugfixlemon2023-07-091-3/+3
|
* amd64 codegen fixeslemon2023-07-071-12/+19
|
* fix emit() setcc and copylemon2023-07-061-1/+2
|
* misc bugfixslemon2023-06-301-19/+90
|
* add initializers (only static for initialier list rn)lemon2023-06-291-27/+58
| | | | and other fixes
* backend: don't mixup float and int tempslemon2023-06-241-3/+3
| | | | | | 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
* backend: fix regalloc to work with more complex dataflowlemon2023-06-241-4/+22
| | | | | | | | 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 undeflemon2023-06-221-14/+14
|
* amd64: conform to ABI for varargs func callslemon2023-06-201-0/+9
|
* amd64/emit: ensure stack is 16-byte alignedlemon2023-06-201-10/+29
|
* another emit() erratalemon2023-06-201-1/+1
|
* fix regressionlemon2023-06-201-4/+4
|
* fix cls logic for comparison instrslemon2023-06-201-1/+2
| | | | | | | | previously instr.cls always represented the output dataclass. this doesn't work for comparisons because we know the output is always a boolean integer and we care about the actual comparison dataclass. so now .cls represents the operation dataclass, which matches the result class except for comparisons where the result is always KI4V
* erratalemon2023-06-201-2/+2
|
* backend: compile comparison instrs and brancheslemon2023-06-191-14/+229
|
* amd64/emit: fix mov(zx/sx)wlemon2023-06-191-6/+6
|
* fix isel & emit for sym constantslemon2023-06-191-1/+4
|
* oopslemon2023-06-191-1/+1
|
* add endian.h for endian dependent stufflemon2023-06-181-0/+1
|
* basic ELF outputlemon2023-06-171-7/+29
|
* misclemon2023-06-171-10/+14
|
* oopslemon2023-06-141-1/+1
|
* imrpove emit()lemon2023-06-141-78/+104
|
* add spilling for function calls, misc fixeslemon2023-06-141-6/+18
|
* simpler handling of large constants in IRlemon2023-06-141-4/+4
|
* use a hashtable for addr refslemon2023-06-131-2/+2
|
* lower allocas in isel() instead of emit() and misc fixeslemon2023-06-131-47/+8
|
* amd64/emit: add commentslemon2023-06-121-87/+115
|
* dumblemon2023-06-121-9/+8
|
* xor reg,reglemon2023-06-121-3/+13
|
* nyi fdivlemon2023-06-121-1/+1
|
* dec,inc,sublemon2023-06-121-0/+22
|
* amd64/emit: emit LEA for 3-address ADDlemon2023-06-121-3/+14
|