summaryrefslogtreecommitdiffstats
path: root/Tools/jit/jit.h
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-10-30 19:03:31 (GMT)
committerGitHub <noreply@github.com>2024-10-30 19:03:31 (GMT)
commitc29bbe21018dc1602ea70f34621de67cce782ed2 (patch)
tree9c1b63c366e2d16db7c208b0bf91b576131f8e0d /Tools/jit/jit.h
parent597d814334742dde386a4d2979b9418aee6fcaba (diff)
downloadcpython-c29bbe21018dc1602ea70f34621de67cce782ed2.zip
cpython-c29bbe21018dc1602ea70f34621de67cce782ed2.tar.gz
cpython-c29bbe21018dc1602ea70f34621de67cce782ed2.tar.bz2
GH-125498: Update JIT builds to use LLVM 19 and preserve_none (GH-125499)
Diffstat (limited to 'Tools/jit/jit.h')
-rw-r--r--Tools/jit/jit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/jit/jit.h b/Tools/jit/jit.h
new file mode 100644
index 0000000..47da64c
--- /dev/null
+++ b/Tools/jit/jit.h
@@ -0,0 +1,4 @@
+// To use preserve_none in JIT builds, we need to declare a separate function
+// pointer with __attribute__((preserve_none)), since this attribute may not be
+// supported by the compiler used to build the rest of the interpreter.
+typedef jit_func __attribute__((preserve_none)) jit_func_preserve_none;