cpython/Include/internal/pycore_opcode_utils.h

#ifndef Py_INTERNAL_OPCODE_UTILS_H
#define Py_INTERNAL_OPCODE_UTILS_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#include "opcode_ids.h"

#define MAX_REAL_OPCODE

#define IS_WITHIN_OPCODE_RANGE(opcode)

#define IS_BLOCK_PUSH_OPCODE(opcode)

#define HAS_TARGET(opcode)

/* opcodes that must be last in the basicblock */
#define IS_TERMINATOR_OPCODE(opcode)

/* opcodes which are not emitted in codegen stage, only by the assembler */
#define IS_ASSEMBLER_OPCODE(opcode)

#define IS_BACKWARDS_JUMP_OPCODE(opcode)

#define IS_UNCONDITIONAL_JUMP_OPCODE(opcode)

#define IS_SCOPE_EXIT_OPCODE(opcode)


/* Flags used in the oparg for MAKE_FUNCTION */
#define MAKE_FUNCTION_DEFAULTS
#define MAKE_FUNCTION_KWDEFAULTS
#define MAKE_FUNCTION_ANNOTATIONS
#define MAKE_FUNCTION_CLOSURE
#define MAKE_FUNCTION_ANNOTATE

/* Values used as the oparg for LOAD_COMMON_CONSTANT */
#define CONSTANT_ASSERTIONERROR
#define CONSTANT_NOTIMPLEMENTEDERROR
#define NUM_COMMON_CONSTANTS

/* Values used in the oparg for RESUME */
#define RESUME_AT_FUNC_START
#define RESUME_AFTER_YIELD
#define RESUME_AFTER_YIELD_FROM
#define RESUME_AFTER_AWAIT

#define RESUME_OPARG_LOCATION_MASK
#define RESUME_OPARG_DEPTH1_MASK

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_OPCODE_UTILS_H */