-
Notifications
You must be signed in to change notification settings - Fork 0
/
sume_tokens.h
53 lines (53 loc) · 1.09 KB
/
sume_tokens.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
typedef enum _instr_token {
i_const = 0x00,
i_clz = 0x01,
i_ctz = 0x02,
i_popcnt = 0x03,
i_add = 0x04,
i_and = 0x05,
i_div_s = 0x06,
i_div_u = 0x07,
i_mul = 0x08,
i_or = 0x09,
i_rem_s = 0x0a,
i_rem_u = 0x0b,
i_rotl = 0x0c,
i_rotr = 0x0d,
i_shl = 0x0e,
i_shr_s = 0x0f,
i_shr_u = 0x10,
i_sub = 0x11,
i_xor = 0x12,
i_eqz = 0x13,
i_eq = 0x14,
i_ge_s = 0x15,
i_ge_u = 0x16,
i_gt_s = 0x17,
i_gt_u = 0x18,
i_le_s = 0x19,
i_le_u = 0x1a,
i_lt_s = 0x1b,
i_lt_u = 0x1c,
i_ne = 0x1d,
i_ld32 = 0x1e,
i_ld16_s = 0x1f,
i_ld16_u = 0x20,
i_ld8_s = 0x21,
i_ld8_u = 0x22,
i_memsz = 0x23,
str32 = 0x24,
str16 = 0x25,
str8 = 0x26,
get_l = 0x27,
set_l = 0x28,
trap = 0x29,
block = 0x2a,
loop = 0x2b,
br = 0x2c,
br_if = 0x2d,
ret = 0x2e,
end = 0x2f,
call = 0x30,
v_declfn = 0x31,
i_declfn = 0x32,
} instr_token;