summaryrefslogtreecommitdiffstats
path: root/Tools/jit
Commit message (Collapse)AuthorAgeFilesLines
* GH-121723: Skip test_config_queue_handler_multiprocessing_context in ↵Bénédikt Tran2024-08-131-0/+1
| | | | emulated JIT CI (#122969)
* GH-118943: Handle races when moving jit_stencils.h (GH-120690)Miro Hrončok2024-08-051-1/+6
| | | Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
* Add note about PYTHON_JIT environment variable to JIT README (GH-121635)Savannah Ostrowski2024-07-171-2/+6
|
* GH-119726: Emit AArch64 trampolines out-of-line (GH-121280)Diego Russo2024-07-031-8/+6
|
* GH-119726: Use LDR for AArch64 trampolines (GH-121001)Diego Russo2024-07-011-22/+9
|
* GH-116017: Get rid of _COLD_EXITs (GH-120960)Brandt Bucher2024-07-012-11/+0
|
* gh-117139: Convert the evaluation stack to stack refs (#118450)Ken Jin2024-06-262-2/+3
| | | | | | | | | | | | | | | | | This PR sets up tagged pointers for CPython. The general idea is to create a separate struct _PyStackRef for everything on the evaluation stack to store the bits. This forces the C compiler to warn us if we try to cast things or pull things out of the struct directly. Only for free threading: We tag the low bit if something is deferred - that means we skip incref and decref operations on it. This behavior may change in the future if Mark's plans to defer all objects in the interpreter loop pans out. This implies a strict stack reference discipline is required. ALL incref and decref operations on stackrefs must use the stackref variants. It is unsafe to untag something then do normal incref/decref ops on it. The new incref and decref variants are called dup and close. They mimic a "handle" API operating on these stackrefs. Please read Include/internal/pycore_stackref.h for more information! --------- Co-authored-by: Mark Shannon <9448417+markshannon@users.noreply.github.com>
* GH-120982: Add stack check assertions to generated interpreter code (GH-120992)Mark Shannon2024-06-251-0/+3
|
* GH-117062: Make _JUMP_TO_TOP a general absolute jump (GH-120854)Brandt Bucher2024-06-242-6/+0
|
* GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120604)Xarblu2024-06-201-1/+1
|
* GH-119726: Deduplicate JIT trampolines for out-of-range jumps (GH-120250)Diego Russo2024-06-191-4/+16
|
* Ignore some failing tests in emulated JIT CI (GH-120375)Diego Russo2024-06-191-1/+4
|
* gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an ↵Kirill Podoprigora2024-06-171-0/+6
| | | | alternative option (#120434)
* GH-118943: Fix a race condition when generating jit_stencils.h (GH-118957)Brandt Bucher2024-05-161-7/+12
|
* Explain how to install LLVM on Fedora (GH-118983)Miro Hrončok2024-05-161-0/+6
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* GH-118836: Fix JIT build error when SHT_NOTE section is present (GH-119000)Michał Górny2024-05-131-0/+1
|
* GH-113464: Generate a more efficient JIT (GH-118512)Brandt Bucher2024-05-032-81/+142
|
* GH-118251: Skip fewer test in emulated JIT CI (GH-118536)Savannah Ostrowski2024-05-031-0/+79
|
* GH-118487: Add Black to `.pre-commit-config.yaml` for JIT files (GH-118537)Savannah Ostrowski2024-05-031-2/+9
|
* GH-117442: Check eval-breaker at start (rather than end) of tier 2 loops ↵Mark Shannon2024-05-021-1/+0
| | | | (GH-118482)
* GH-113464: Display a warning when building the JIT (GH-118481)Brandt Bucher2024-05-016-26/+38
|
* GH-115802: Use the GHC calling convention in JIT code (GH-118287)Brandt Bucher2024-05-014-11/+76
|
* gh-118335: Configure Tier 2 interpreter at build time (#118339)Guido van Rossum2024-05-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | The code for Tier 2 is now only compiled when configured with `--enable-experimental-jit[=yes|interpreter]`. We drop support for `PYTHON_UOPS` and -`Xuops`, but you can disable the interpreter or JIT at runtime by setting `PYTHON_JIT=0`. You can also build it without enabling it by default using `--enable-experimental-jit=yes-off`; enable with `PYTHON_JIT=1`. On Windows, the `build.bat` script supports `--experimental-jit`, `--experimental-jit-off`, `--experimental-interpreter`. In the C code, `_Py_JIT` is defined as before when the JIT is enabled; the new variable `_Py_TIER2` is defined when the JIT *or* the interpreter is enabled. It is actually a bitmask: 1: JIT; 2: default-off; 4: interpreter.
* GH-118306: Update JIT to use LLVM 18 (GH-118307)Savannah Ostrowski2024-04-295-34/+43
|
* GH-118095: Add dynamic exit support and FOR_ITER_GEN support to tier 2 ↵Mark Shannon2024-04-261-0/+4
| | | | (GH-118279)
* gh-116818: Make `sys.settrace`, `sys.setprofile`, and monitoring thread-safe ↵Dino Viehland2024-04-191-0/+1
| | | | | | | (#116775) Makes sys.settrace, sys.setprofile, and monitoring generally thread-safe. Mostly uses a stop-the-world approach and synchronization around the code object's _co_instrumentation_version. There may be a little bit of extra synchronization around the monitoring data that's required to be TSAN clean.
* GH-117512: Allow 64-bit JIT operands on 32-bit platforms (GH-117527)Brandt Bucher2024-04-063-3/+13
|
* GH-117457: Correct pystats uop "miss" counts (GH-117477)Michael Droettboom2024-04-041-6/+4
|
* gh-116968: Reimplement Tier 2 counters (#117144)Guido van Rossum2024-04-041-0/+1
| | | | | | | | | | | | Introduce a unified 16-bit backoff counter type (``_Py_BackoffCounter``), shared between the Tier 1 adaptive specializer and the Tier 2 optimizer. The API used for adaptive specialization counters is changed but the behavior is (supposed to be) identical. The behavior of the Tier 2 counters is changed: - There are no longer dynamic thresholds (we never varied these). - All counters now use the same exponential backoff. - The counter for ``JUMP_BACKWARD`` starts counting down from 16. - The ``temperature`` in side exits starts counting down from 64.
* gh-117323: Make `cell` thread-safe in free-threaded builds (#117330)Sam Gross2024-03-291-0/+1
| | | Use critical sections to lock around accesses to cell contents. The critical sections are no-ops in the default (with GIL) build.
* GH-117121: Add pystats to JIT builds (GH-117346)Michael Droettboom2024-03-281-0/+7
|
* GH-116422: Tier2 hot/cold splitting (GH-116813)Mark Shannon2024-03-262-17/+20
| | | | | Splits the "cold" path, deopts and exits, from the "hot" path, reducing the size of most jitted instructions, at the cost of slower exits.
* GH-116017: Put JIT code and data on the same page (GH-116845)Brandt Bucher2024-03-192-5/+4
|
* gh-116381: Remove bad specializations, add fail stats (GH-116464)Ken Jin2024-03-071-0/+1
| | | * Remove bad specializations, add fail stats
* GH-116134: JIT aarch64-pc-windows-msvc (GH-116130)Brandt Bucher2024-03-042-0/+20
|
* GH-115802: Don't JIT zero-length jumps (GH-116177)Brandt Bucher2024-03-041-17/+68
|
* GH-115802: JIT "small" code for Windows (GH-115964)Brandt Bucher2024-02-294-19/+46
|
* GH-115802: JIT "small" code for macOS and Linux (GH-115826)Brandt Bucher2024-02-262-13/+65
|
* GH-113464: Clean up JIT stencil generation (GH-115800)Brandt Bucher2024-02-221-6/+5
|
* GH-112354: Initial implementation of warm up on exits and trace-stitching ↵Mark Shannon2024-02-201-5/+25
| | | | (GH-114142)
* GH-113464: Add a JIT backend for tier 2 (GH-113465)Brandt Bucher2024-01-299-0/+1084
Add an option (--enable-experimental-jit for configure-based builds or --experimental-jit for PCbuild-based ones) to build an *experimental* just-in-time compiler, based on copy-and-patch (https://fredrikbk.com/publications/copy-and-patch.pdf). See Tools/jit/README.md for more information on how to install the required build-time tooling.