| 1 |
#ifndef Py_INTERNAL_JIT_H |
| 2 |
#define Py_INTERNAL_JIT_H |
| 3 |
|
| 4 |
#ifdef __cplusplus |
| 5 |
extern "C" { |
| 6 |
#endif |
| 7 |
|
| 8 |
#include "pycore_interp.h" |
| 9 |
#include "pycore_optimizer.h" |
| 10 |
#include "pycore_stackref.h" |
| 11 |
|
| 12 |
#ifndef Py_BUILD_CORE |
| 13 |
# error "this header requires Py_BUILD_CORE define" |
| 14 |
#endif |
| 15 |
|
| 16 |
#ifdef _Py_JIT |
| 17 |
|
| 18 |
typedef _Py_CODEUNIT *(*jit_func)(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate); |
| 19 |
|
| 20 |
int _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction *trace, size_t length); |
| 21 |
void _PyJIT_Free(_PyExecutorObject *executor); |
| 22 |
|
| 23 |
#endif // _Py_JIT |
| 24 |
|
| 25 |
#ifdef __cplusplus |
| 26 |
} |
| 27 |
#endif |
| 28 |
|
| 29 |
#endif // !Py_INTERNAL_JIT_H |