diff options
| author | 2026-03-17 13:22:00 +0100 | |
|---|---|---|
| committer | 2026-03-17 13:22:00 +0100 | |
| commit | a8d6f8bf30c07edb775e56889f568ca20240bedf (patch) | |
| tree | b5a452b2675b2400f15013617291fe6061180bbf /src/t_x86-64.h | |
| parent | 24f14b7ad1af08d872971d72ce089a529911f657 (diff) | |
REFACTOR: move sources to src/
Diffstat (limited to 'src/t_x86-64.h')
| -rw-r--r-- | src/t_x86-64.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/t_x86-64.h b/src/t_x86-64.h new file mode 100644 index 0000000..c0c38ff --- /dev/null +++ b/src/t_x86-64.h @@ -0,0 +1,18 @@ +#include "../ir/ir.h" + +#define LIST_REGS(_) \ + _(RAX) _(RCX) _(RDX) _(RBX) _(RSP) _(RBP) _(RSI) _(RDI) \ + _(R8) _(R9) _(R10) _(R11) _(R12) _(R13) _(R14) _(R15) \ + _(XMM0) _(XMM1) _(XMM2) _(XMM3) _(XMM4) _(XMM5) _(XMM6) _(XMM7) \ + _(XMM8) _(XMM9) _(XMM10) _(XMM11) _(XMM12) _(XMM13) _(XMM14) _(XMM15) + +enum reg { +#define R(r) r, + LIST_REGS(R) +#undef R +}; + +void x86_64_isel(struct function *); +void x86_64_emit(struct function *); + +/* vim:set ts=3 sw=3 expandtab: */ |