Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-107557: Setup abstract interpretation#107847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
d20fbb82aeea511a728ab17fccbca1da69db458e17f81f88800203201f93072dac63e3e62e015a7f654cf4040b8ec581454292767fdcca905110fb99f443a27632ed10d0c4c44c8953e3bd36fa229097fca0fab768c684f46c5777b839ee46ecf3d2b6eeb25d5cceb98c0d65f95db9091e05ef8d7d8b524d7abc73d76f9ae81def29a5a3f7df490d01e4fc946de77a7a11fc80c61015b56c62eb3c08ebed5f16be1e61c496c24b492be404d29e255d3c44117b758b4780c7f186a2b204File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #ifndef Py_INTERNAL_OPTIMIZER_H | ||
| #define Py_INTERNAL_OPTIMIZER_H | ||
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
| #ifndef Py_BUILD_CORE | ||
| # error "this header requires Py_BUILD_CORE define" | ||
| #endif | ||
| #include "pycore_uops.h" | ||
| int _Py_uop_analyze_and_optimize(PyCodeObject *code, | ||
| _PyUOpInstruction *trace, int trace_len, int curr_stackentries); | ||
| #ifdef __cplusplus | ||
| } | ||
| #endif | ||
| #endif /* !Py_INTERNAL_OPTIMIZER_H */ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -405,6 +405,7 @@ PYTHON_OBJS=\ | ||
| Python/mysnprintf.o \ | ||
| Python/mystrtoul.o \ | ||
| Python/optimizer.o \ | ||
| Python/optimizer_analysis.o \ | ||
| Python/pathconfig.o \ | ||
| Python/preconfig.o \ | ||
| Python/pyarena.o \ | ||
| @@ -1552,10 +1553,12 @@ regen-cases: | ||
| -m $(srcdir)/Include/internal/pycore_opcode_metadata.h.new \ | ||
| -e $(srcdir)/Python/executor_cases.c.h.new \ | ||
| -p $(srcdir)/Lib/_opcode_metadata.py.new \ | ||
| -a $(srcdir)/Python/abstract_interp_cases.c.h.new \ | ||
| $(srcdir)/Python/bytecodes.c | ||
| $(UPDATE_FILE) $(srcdir)/Python/generated_cases.c.h $(srcdir)/Python/generated_cases.c.h.new | ||
| $(UPDATE_FILE) $(srcdir)/Include/internal/pycore_opcode_metadata.h $(srcdir)/Include/internal/pycore_opcode_metadata.h.new | ||
| $(UPDATE_FILE) $(srcdir)/Python/executor_cases.c.h $(srcdir)/Python/executor_cases.c.h.new | ||
| $(UPDATE_FILE) $(srcdir)/Python/abstract_interp_cases.c.h $(srcdir)/Python/abstract_interp_cases.c.h.new | ||
| $(UPDATE_FILE) $(srcdir)/Lib/_opcode_metadata.py $(srcdir)/Lib/_opcode_metadata.py.new | ||
| Python/compile.o: $(srcdir)/Include/internal/pycore_opcode_metadata.h | ||
| @@ -1568,6 +1571,7 @@ Python/ceval.o: \ | ||
| Python/executor.o: \ | ||
| $(srcdir)/Include/internal/pycore_opcode_metadata.h \ | ||
| $(srcdir)/Include/internal/pycore_optimizer.h \ | ||
| $(srcdir)/Python/ceval_macros.h \ | ||
| $(srcdir)/Python/executor_cases.c.h | ||
| @@ -1576,7 +1580,12 @@ Python/flowgraph.o: \ | ||
| Python/optimizer.o: \ | ||
| $(srcdir)/Python/executor_cases.c.h \ | ||
| $(srcdir)/Include/internal/pycore_opcode_metadata.h \ | ||
| $(srcdir)/Include/internal/pycore_optimizer.h | ||
| Python/optimizer_analysis.o: \ | ||
Fidget-Spinner marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| $(srcdir)/Include/internal/pycore_opcode_metadata.h \ | ||
| $(srcdir)/Include/internal/pycore_optimizer.h | ||
| Python/frozen.o: $(FROZEN_FILES_OUT) | ||
| @@ -1786,6 +1795,7 @@ PYTHON_HEADERS= \ | ||
| $(srcdir)/Include/internal/pycore_obmalloc_init.h \ | ||
| $(srcdir)/Include/internal/pycore_opcode.h \ | ||
| $(srcdir)/Include/internal/pycore_opcode_utils.h \ | ||
| $(srcdir)/Include/internal/pycore_optimizer.h \ | ||
| $(srcdir)/Include/internal/pycore_pathconfig.h \ | ||
| $(srcdir)/Include/internal/pycore_pyarena.h \ | ||
| $(srcdir)/Include/internal/pycore_pyerrors.h \ | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Generate the cases needed for the barebones tier 2 abstract interpreter for optimization passes in CPython. |
Uh oh!
There was an error while loading.Please reload this page.