summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorSavannah Ostrowski <savannahostrowski@gmail.com>2024-11-05 23:26:46 (GMT)
committerGitHub <noreply@github.com>2024-11-05 23:26:46 (GMT)
commitc3a12ae13ee0212a096f570064407f8ba954e6aa (patch)
tree50ac65af58a7cb77225a671f8b19f941f2afcf97 /Tools
parent478a1c09c4cdb082c84f9102e3e452e6911b84f1 (diff)
downloadcpython-c3a12ae13ee0212a096f570064407f8ba954e6aa.zip
cpython-c3a12ae13ee0212a096f570064407f8ba954e6aa.tar.gz
cpython-c3a12ae13ee0212a096f570064407f8ba954e6aa.tar.bz2
GH-125911: Rename big trampoline to "shim" (GH-126339)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/jit/_targets.py4
-rw-r--r--Tools/jit/_writer.py4
-rw-r--r--Tools/jit/shim.c (renamed from Tools/jit/trampoline.c)0
3 files changed, 4 insertions, 4 deletions
diff --git a/Tools/jit/_targets.py b/Tools/jit/_targets.py
index 634208d..d8dce0a 100644
--- a/Tools/jit/_targets.py
+++ b/Tools/jit/_targets.py
@@ -154,8 +154,8 @@ class _Target(typing.Generic[_S, _R]):
with tempfile.TemporaryDirectory() as tempdir:
work = pathlib.Path(tempdir).resolve()
async with asyncio.TaskGroup() as group:
- coro = self._compile("trampoline", TOOLS_JIT / "trampoline.c", work)
- tasks.append(group.create_task(coro, name="trampoline"))
+ coro = self._compile("shim", TOOLS_JIT / "shim.c", work)
+ tasks.append(group.create_task(coro, name="shim"))
template = TOOLS_JIT_TEMPLATE_C.read_text()
for case, opname in cases_and_opnames:
# Write out a copy of the template with *only* this case
diff --git a/Tools/jit/_writer.py b/Tools/jit/_writer.py
index f33d8ef..81a9f08 100644
--- a/Tools/jit/_writer.py
+++ b/Tools/jit/_writer.py
@@ -22,11 +22,11 @@ def _dump_footer(
yield " symbol_mask trampoline_mask;"
yield "} StencilGroup;"
yield ""
- yield f"static const StencilGroup trampoline = {groups['trampoline'].as_c('trampoline')};"
+ yield f"static const StencilGroup shim = {groups['shim'].as_c('shim')};"
yield ""
yield "static const StencilGroup stencil_groups[MAX_UOP_ID + 1] = {"
for opname, group in sorted(groups.items()):
- if opname == "trampoline":
+ if opname == "shim":
continue
yield f" [{opname}] = {group.as_c(opname)},"
yield "};"
diff --git a/Tools/jit/trampoline.c b/Tools/jit/shim.c
index f0cffa2..f0cffa2 100644
--- a/Tools/jit/trampoline.c
+++ b/Tools/jit/shim.c