aboutsummaryrefslogtreecommitdiffhomepage
path: root/amd64
Commit message (Collapse)AuthorAgeFilesLines
* amd64 codegen fixes lemon2023-07-072-13/+20
|
* fix emit() setcc and copy lemon2023-07-061-1/+2
|
* misc bugfixs lemon2023-06-302-23/+92
|
* add initializers (only static for initialier list rn) lemon2023-06-292-34/+91
| | | | and other fixes
* fix some warnings lemon2023-06-251-9/+1
|
* fix regalloc thinking some ins are dead by adding ins.keep lemon2023-06-241-1/+5
|
* amd64/emit: more float fixes lemon2023-06-241-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 lemon2023-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 dataflow lemon2023-06-243-7/+25
| | | | | | | | 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 lemon2023-06-222-26/+26
|
* explicitly store predecessors in each block lemon2023-06-211-4/+4
|
* amd64: fix aggregate return in regs lemon2023-06-201-3/+3
|
* amd64: conform to ABI for varargs func calls lemon2023-06-202-1/+9
|
* improve codegen for div a little (bikeshedding) lemon2023-06-201-0/+5
|
* amd64/emit: ensure stack is 16-byte aligned lemon2023-06-201-10/+29
|
* fix regression wiht ret args not being fixed lemon2023-06-201-2/+7
|
* fix out of bounds read lemon2023-06-201-0/+1
|
* another emit() errata lemon2023-06-201-1/+1
|
* fix regression lemon2023-06-201-4/+4
|
* don't lower params and args to registers in abi0 lemon2023-06-201-2/+60
| | | | | it's better to do it later, currently in isel(), but perhaps in a pre-isel abi1 pass
* fix cls logic for comparison instrs lemon2023-06-202-2/+3
| | | | | | | | 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
* errata lemon2023-06-201-2/+2
|
* backend: compile comparison instrs and branches lemon2023-06-192-30/+331
|
* amd64/emit: fix mov(zx/sx)w lemon2023-06-191-6/+6
|
* fix isel & emit for sym constants lemon2023-06-192-9/+10
|
* oops lemon2023-06-191-1/+1
|
* forgot some statics lemon2023-06-181-1/+1
|
* add endian.h for endian dependent stuff lemon2023-06-183-20/+2
|
* ELF output static data lemon2023-06-181-1/+1
|
* basic ELF output lemon2023-06-173-16/+44
|
* misc lemon2023-06-173-13/+19
|
* oops lemon2023-06-141-1/+1
|
* imrpove emit() lemon2023-06-142-78/+106
|
* add spilling for function calls, misc fixes lemon2023-06-142-14/+28
|
* simpler handling of large constants in IR lemon2023-06-142-20/+18
|
* lowering of structcopy lemon2023-06-131-2/+2
|
* use a hashtable for addr refs lemon2023-06-132-5/+4
|
* lower allocas in isel() instead of emit() and misc fixes lemon2023-06-133-100/+66
|
* amd64/emit: add comments lemon2023-06-121-87/+115
|
* dumb lemon2023-06-121-9/+8
|
* xor reg,reg lemon2023-06-122-4/+25
|
* nyi fdiv lemon2023-06-121-1/+1
|
* dec,inc,sub lemon2023-06-122-1/+39
|
* amd64/emit: emit LEA for 3-address ADD lemon2023-06-121-3/+14
|
* something with phi lemon2023-06-121-1/+1
|
* register renaming and such lemon2023-06-123-13/+60
|
* remove RPARAM, add Oparam, lower args/rets to abi regs in abi0 lemon2023-06-113-58/+75
|
* isel skeleton lemon2023-06-104-114/+607
|
* codegen skeleton lemon2023-06-063-1/+327
|
* encode calls a different way in the IR lemon2023-06-051-1/+1
|