diff options
author | Mark Shannon <mark@hotpy.org> | 2024-02-27 10:51:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 10:51:26 (GMT) |
commit | 10fbcd6c5dc25bfe14e02fd93ef93498a393860c (patch) | |
tree | 408fd5d2857188a57f2fbefb5661dd0067b3d7e0 /Tools | |
parent | af5f9d682c20c951b90e3c020eeccac386c9bbb0 (diff) | |
download | cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.zip cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.tar.gz cpython-10fbcd6c5dc25bfe14e02fd93ef93498a393860c.tar.bz2 |
GH-115816: Make tier2 optimizer symbols testable, and add a few tests. (GH-115953)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/c-analyzer/cpython/ignored.tsv | 2 | ||||
-rw-r--r-- | Tools/cases_generator/optimizer_generator.py | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Tools/c-analyzer/cpython/ignored.tsv b/Tools/c-analyzer/cpython/ignored.tsv index e9b81cf..0f212ec 100644 --- a/Tools/c-analyzer/cpython/ignored.tsv +++ b/Tools/c-analyzer/cpython/ignored.tsv @@ -740,6 +740,4 @@ Modules/expat/xmlrole.c - error - ## other Modules/_io/_iomodule.c - _PyIO_Module - Modules/_sqlite/module.c - _sqlite3module - -Python/optimizer_analysis.c - _Py_UOpsAbstractFrame_Type - -Python/optimizer_analysis.c - _Py_UOpsAbstractInterpContext_Type - Modules/clinic/md5module.c.h _md5_md5 _keywords - diff --git a/Tools/cases_generator/optimizer_generator.py b/Tools/cases_generator/optimizer_generator.py index aa3f4ec..f110a74 100644 --- a/Tools/cases_generator/optimizer_generator.py +++ b/Tools/cases_generator/optimizer_generator.py @@ -87,14 +87,14 @@ def emit_default(out: CWriter, uop: Uop) -> None: if var.name != "unused" and not var.peek: if var.is_array(): out.emit(f"for (int _i = {var.size}; --_i >= 0;) {{\n") - out.emit(f"{var.name}[_i] = sym_new_unknown(ctx);\n") + out.emit(f"{var.name}[_i] = _Py_uop_sym_new_unknown(ctx);\n") out.emit(f"if ({var.name}[_i] == NULL) goto out_of_space;\n") out.emit("}\n") elif var.name == "null": - out.emit(f"{var.name} = sym_new_null(ctx);\n") + out.emit(f"{var.name} = _Py_uop_sym_new_null(ctx);\n") out.emit(f"if ({var.name} == NULL) goto out_of_space;\n") else: - out.emit(f"{var.name} = sym_new_unknown(ctx);\n") + out.emit(f"{var.name} = _Py_uop_sym_new_unknown(ctx);\n") out.emit(f"if ({var.name} == NULL) goto out_of_space;\n") |