rabbitizer/include/instructions/RabbitizerInstrId.h

33 lines
563 B
C
Raw Normal View History

2024-01-28 15:16:11 +00:00
/* SPDX-FileCopyrightText: © 2022-2024 Decompollaborate */
2022-06-03 17:46:51 +00:00
/* SPDX-License-Identifier: MIT */
#ifndef RABBITIZER_INSTRID_H
#define RABBITIZER_INSTRID_H
#pragma once
2022-12-15 19:06:48 +00:00
#include <stdbool.h>
2022-07-09 23:19:53 +00:00
#include "common/Utils.h"
2022-10-04 11:31:02 +00:00
#ifdef __cplusplus
extern "C" {
#endif
#include "generated/InstrId_enum.h"
2022-06-03 21:33:10 +00:00
extern const char *RabbitizerInstrId_Names[];
2022-06-05 16:25:57 +00:00
2022-12-15 19:06:48 +00:00
CONST NODISCARD
bool RabbitizerInstrId_isValid(RabbitizerInstrId uniqueId);
2022-07-09 23:19:53 +00:00
CONST NODISCARD RETURNS_NON_NULL
2022-06-05 17:19:45 +00:00
const char *RabbitizerInstrId_getOpcodeName(RabbitizerInstrId uniqueId);
2022-06-05 16:25:57 +00:00
2022-10-04 11:31:02 +00:00
#ifdef __cplusplus
}
#endif
2022-06-03 17:46:51 +00:00
#endif