Tools/jit/jit.h
raw| 1 | // To use preserve_none in JIT builds, we need to declare a separate function |
| 2 | // pointer with __attribute__((preserve_none)), since this attribute may not be |
| 3 | // supported by the compiler used to build the rest of the interpreter. |
| 4 | typedef jit_func __attribute__((preserve_none)) jit_func_preserve_none; |
| 5 | |
| 6 | #define PATCH_VALUE(TYPE, NAME, ALIAS) \ |
| 7 | PyAPI_DATA(void) ALIAS; \ |
| 8 | TYPE NAME = (TYPE)(uintptr_t)&ALIAS; |