rabbitizer/include/instructions/RabbitizerInstrId.h

33 lines
554 B
C
Raw Normal View History

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