diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-27 13:25:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 13:25:02 (GMT) |
commit | 6ecfcfe8946cf701c6c7018e30ae54d8b7a7ac2a (patch) | |
tree | 866ef77e88de4f69c85fda6d61a43bc17f1ccd2f /Tools/cases_generator | |
parent | 10fbcd6c5dc25bfe14e02fd93ef93498a393860c (diff) | |
download | cpython-6ecfcfe8946cf701c6c7018e30ae54d8b7a7ac2a.zip cpython-6ecfcfe8946cf701c6c7018e30ae54d8b7a7ac2a.tar.gz cpython-6ecfcfe8946cf701c6c7018e30ae54d8b7a7ac2a.tar.bz2 |
GH-115816: Assorted naming and formatting changes to improve maintainability. (GH-115987)
* Rename _Py_UOpsAbstractInterpContext to _Py_UOpsContext and _Py_UOpsSymType to _Py_UopsSymbol.
* #define shortened form of _Py_uop_... names for improved readability.
Diffstat (limited to 'Tools/cases_generator')
-rw-r--r-- | Tools/cases_generator/optimizer_generator.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tools/cases_generator/optimizer_generator.py b/Tools/cases_generator/optimizer_generator.py index f110a74..e933fee 100644 --- a/Tools/cases_generator/optimizer_generator.py +++ b/Tools/cases_generator/optimizer_generator.py @@ -41,10 +41,10 @@ def validate_uop(override: Uop, uop: Uop) -> None: def type_name(var: StackItem) -> str: if var.is_array(): - return f"_Py_UOpsSymType **" + return f"_Py_UopsSymbol **" if var.type: return var.type - return f"_Py_UOpsSymType *" + return f"_Py_UopsSymbol *" def declare_variables(uop: Uop, out: CWriter, skip_inputs: bool) -> None: @@ -148,7 +148,7 @@ def write_uop( if not var.peek or is_override: out.emit(stack.push(var)) out.start_line() - stack.flush(out, cast_type="_Py_UOpsSymType *") + stack.flush(out, cast_type="_Py_UopsSymbol *") except SizeMismatch as ex: raise analysis_error(ex.args[0], uop.body[0]) |