Skip to content

Commit 46cee93

Browse files
Address PR comments
1 parent 5f3ec52 commit 46cee93

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Include/internal/pycore_jit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern "C" {
1111

1212
#ifdef _Py_JIT
1313

14-
typedef _Py_CODEUNIT *(*jit_func_native)(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate);
14+
typedef _Py_CODEUNIT *(*jit_func)(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate);
1515

1616
int _PyJIT_Compile(_PyExecutorObject *executor, const _PyUOpInstruction *trace, size_t length);
1717
void _PyJIT_Free(_PyExecutorObject *executor);

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ _PyFrame_SetStackPointer(frame, stack_pointer)
378378
#define GOTO_TIER_TWO(EXECUTOR) \
379379
do { \
380380
OPT_STAT_INC(traces_executed); \
381-
jit_func_native jitted = (EXECUTOR)->jit_code; \
381+
jit_func jitted = (EXECUTOR)->jit_code; \
382382
next_instr = jitted(frame, stack_pointer, tstate); \
383383
Py_DECREF(tstate->previous_executor); \
384384
tstate->previous_executor = NULL; \

Tools/jit/_targets.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ async def _compile(
140140
f"{c}",
141141
*self.args,
142142
]
143-
args_o = args + ["-o", f"{o}", f"{c}"]
144-
await _llvm.run("clang", args_o, echo=self.verbose)
143+
await _llvm.run("clang", args, echo=self.verbose)
145144
return await self._parse(o)
146145

147146
async def _build_stencils(self) -> dict[str, _stencils.StencilGroup]:

Tools/jit/jit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// To use preserve_none in JIT builds, we need to declare a separate function
22
// pointer with __attribute__((preserve_none)), since this attribute may not be
33
// supported by the compiler used to build the rest of the interpreter.
4-
typedef _Py_CODEUNIT *(*jit_func_preserve_none)(_PyInterpreterFrame *frame, _PyStackRef *stack_pointer, PyThreadState *tstate) __attribute__((preserve_none));
4+
typedef jit_func __attribute__((preserve_none)) jit_func_preserve_none;

0 commit comments

Comments
 (0)