2024-01-28 15:16:11 +00:00
|
|
|
/* SPDX-FileCopyrightText: © 2023-2024 Decompollaborate */
|
2023-04-30 21:39:05 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from .Enum import Enum
|
|
|
|
|
|
|
|
#define RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, ...) \
|
|
|
|
prefix##_##name: Enum
|
|
|
|
|
|
|
|
#define RABBITIZER_DEF_INSTR_ID_ALTNAME(prefix, caseBits, name, altname, ...) \
|
|
|
|
RABBITIZER_DEF_INSTR_ID(prefix, caseBits, name, __VA_ARGS__)
|
|
|
|
|
|
|
|
#define INSTRID_AVOID_USERDEF
|
|
|
|
|
|
|
|
class InstrId:
|
2023-05-02 23:01:54 +00:00
|
|
|
#include "InstrIds.inc"
|
2023-04-30 21:39:05 +00:00
|
|
|
|
|
|
|
RABBITIZER_DEF_INSTR_ID(ALL, , MAX)
|
|
|
|
|
|
|
|
#undef INSTRID_AVOID_USERDEF
|
|
|
|
|
|
|
|
#undef RABBITIZER_DEF_INSTR_ID
|
|
|
|
#undef RABBITIZER_DEF_INSTR_ID_ALTNAME
|