From a8d6f8bf30c07edb775e56889f568ca20240bedf Mon Sep 17 00:00:00 2001
From: lemon <lsof@mailbox.org>
Date: Tue, 17 Mar 2026 13:22:00 +0100
Subject: REFACTOR: move sources to src/

---
 src/ir_op.def | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 src/ir_op.def

(limited to 'src/ir_op.def')

diff --git a/src/ir_op.def b/src/ir_op.def
new file mode 100644
index 0000000..4a18b4b
--- /dev/null
+++ b/src/ir_op.def
@@ -0,0 +1,79 @@
+/* OP     NARG */
+_(nop,       0)
+_(copy,      1)
+_(move,      2)
+_(neg,       1)
+_(not,       1)
+_(cvtf32s,   1)
+_(cvtf32u,   1)
+_(cvtf32f64, 1)
+_(cvtf64s,   1)
+_(cvtf64u,   1)
+_(cvtf64f32, 1)
+_(cvts32f,   1)
+_(cvtu32f,   1)
+_(cvts64f,   1)
+_(cvtu64f,   1)
+_(exts8,     1)
+_(extu8,     1)
+_(exts16,    1)
+_(extu16,    1)
+_(exts32,    1)
+_(extu32,    1)
+_(bswap16,   1)
+_(bswap32,   1)
+_(bswap64,   1)
+_(add,       2)
+_(sub,       2)
+_(mul,       2)
+_(div,       2)
+_(udiv,      2)
+_(rem,       2)
+_(urem,      2)
+_(and,       2)
+_(ior,       2)
+_(xor,       2)
+_(shl,       2)
+_(sar,       2)
+_(slr,       2)
+_(equ,       2)
+_(neq,       2)
+_(lth,       2)
+_(gth,       2)
+_(lte,       2)
+_(gte,       2)
+_(ulth,      2)
+_(ugth,      2)
+_(ulte,      2)
+_(ugte,      2)
+_(alloca1,   1)
+_(alloca2,   1)
+_(alloca4,   1)
+_(alloca8,   1)
+_(alloca16,  1)
+_(loads8,    1)
+_(loadu8,    1)
+_(loads16,   1)
+_(loadu16,   1)
+_(loads32,   1)
+_(loadu32,   1)
+_(loadi64,   1)
+_(loadf32,   1)
+_(loadf64,   1)
+_(storei8,    2)
+_(storei16,   2)
+_(storei32,   2)
+_(storei64,   2)
+_(storef32,   2)
+_(storef64,   2)
+_(param,     2)
+_(arg,       2)
+_(call,      2)
+_(call2r,    1)
+_(intrin,    2)
+_(phi,       1)
+_(swap,      2)
+_(vastart,   1)
+_(vaarg,     2)
+/* machine-specific instructions */
+_(xvaprologue, 1)
-- 
cgit v1.2.3

