2024-01-28 15:16:11 +00:00
|
|
|
/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */
|
2022-12-18 18:15:39 +00:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
|
|
|
|
#define HASH #
|
|
|
|
#define HASH_EXPANSION(x) x
|
|
|
|
#define SPECIAL_RS_TAG(...) HASH_EXPANSION(HASH)[__VA_ARGS__]
|
|
|
|
|
|
|
|
#define RAB_DEF_INSTRSUFFIX(prefix, name) prefix##_##name,
|
|
|
|
|
|
|
|
SPECIAL_RS_TAG(repr(u32))
|
|
|
|
SPECIAL_RS_TAG(derive(Debug, Copy, Clone, Hash, PartialEq, Eq))
|
|
|
|
SPECIAL_RS_TAG(allow(non_camel_case_types))
|
|
|
|
pub enum InstrSuffix {
|
|
|
|
RAB_DEF_INSTRSUFFIX(ALL, NONE)
|
|
|
|
|
2023-05-02 23:01:54 +00:00
|
|
|
#include "InstrSuffix.inc"
|
2022-12-18 18:15:39 +00:00
|
|
|
|
|
|
|
RAB_DEF_INSTRSUFFIX(ALL, MAX)
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef RAB_DEF_INSTRSUFFIX
|