aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ir_inliner.c
Commit message (Collapse)AuthorAgeFilesLines
* IR: emit inline function standalone bodies lazily lemon2026-03-231-19/+87
| | | | | | | If a function is stashed for inlining and inlined in all of its callsites or unused, it never ends up in the object file. If any symbol reference to it is emitted, then it must be de-inlined (rematerialized), and this is done near the end before emitting the actual object file.
* IR: mark free'd instructions as such lemon2026-03-231-10/+8
| | | | | That way they are not copied when inlining. Also rename ninstr -> ninstrtab. opnarg -> opnoper
* IR: add 3rd operand to Instr lemon2026-03-221-6/+6
| | | | | The motivation is for aarch64 msub/madd instrs, for isel to produce. But it should be useful for other things too.
* Refactor: use typedefs and CamelCase for aggregate types lemon2026-03-181-43/+43
| | | | Looks nicer
* REFACTOR: move sources to src/ lemon2026-03-171-0/+309