diff options
author | Ken Jin <kenjin@python.org> | 2023-08-15 18:04:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-15 18:04:17 (GMT) |
commit | e28b0dc86dd1d058788b9e1eaa825cdfc2d97067 (patch) | |
tree | 0a1cb8afa1d723ce2dab38c011f75a58014a41ef /Python/optimizer_analysis.c | |
parent | 34e1917912f05e3ab5c9b1e39f678bd36388499e (diff) | |
download | cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.zip cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.tar.gz cpython-e28b0dc86dd1d058788b9e1eaa825cdfc2d97067.tar.bz2 |
gh-107557: Setup abstract interpretation (#107847)
Co-authored-by: Guido van Rossum <gvanrossum@users.noreply.github.com>
Co-authored-by: Jules <57632293+juliapoo@users.noreply.github.com>
Diffstat (limited to 'Python/optimizer_analysis.c')
-rw-r--r-- | Python/optimizer_analysis.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Python/optimizer_analysis.c b/Python/optimizer_analysis.c new file mode 100644 index 0000000..e48e018 --- /dev/null +++ b/Python/optimizer_analysis.c @@ -0,0 +1,26 @@ +#include "Python.h" +#include "opcode.h" +#include "pycore_interp.h" +#include "pycore_opcode.h" +#include "pycore_opcode_metadata.h" +#include "pycore_opcode_utils.h" +#include "pycore_pystate.h" // _PyInterpreterState_GET() +#include "pycore_uops.h" +#include "pycore_long.h" +#include "cpython/optimizer.h" +#include <stdbool.h> +#include <stdint.h> +#include <stddef.h> +#include "pycore_optimizer.h" + + +int +_Py_uop_analyze_and_optimize( + PyCodeObject *co, + _PyUOpInstruction *trace, + int trace_len, + int curr_stacklen +) +{ + return trace_len; +} |