File tree Expand file tree Collapse file tree 12 files changed +1229
-5
lines changed Expand file tree Collapse file tree 12 files changed +1229
-5
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ Programs/test_frozenmain.h generated
87
87
Python /Python-ast.c generated
88
88
Python /executor_cases.c.h generated
89
89
Python /generated_cases.c.h generated
90
+ Python /abstract_interp_cases.c.h generated
90
91
Python /opcode_targets.h generated
91
92
Python /stdlib_module_names.h generated
92
93
Tools /peg_generator /pegen /grammar_parser.py generated
Original file line number Diff line number Diff line change
1
+ #ifndef Py_INTERNAL_OPTIMIZER_H
2
+ #define Py_INTERNAL_OPTIMIZER_H
3
+ #ifdef __cplusplus
4
+ extern "C" {
5
+ #endif
6
+
7
+ #ifndef Py_BUILD_CORE
8
+ # error "this header requires Py_BUILD_CORE define"
9
+ #endif
10
+
11
+ extern int uop_analyze_and_optimize (struct _PyUOpInstruction * trace , int trace_len );
12
+
13
+ #ifdef __cplusplus
14
+ }
15
+ #endif
16
+ #endif /* !Py_INTERNAL_OPTIMIZER_H */
Original file line number Diff line number Diff line change @@ -405,6 +405,7 @@ PYTHON_OBJS= \
405
405
Python/mysnprintf.o \
406
406
Python/mystrtoul.o \
407
407
Python/optimizer.o \
408
+ Python/optimizer_analysis.o \
408
409
Python/pathconfig.o \
409
410
Python/preconfig.o \
410
411
Python/pyarena.o \
@@ -1562,6 +1563,7 @@ Python/ceval.o: \
1562
1563
1563
1564
Python/executor.o: \
1564
1565
$(srcdir)/Include/internal/pycore_opcode_metadata.h \
1566
+ $(srcdir)/Include/internal/pycore_optimizer.h \
1565
1567
$(srcdir)/Python/ceval_macros.h \
1566
1568
$(srcdir)/Python/executor_cases.c.h
1567
1569
@@ -1570,7 +1572,12 @@ Python/flowgraph.o: \
1570
1572
1571
1573
Python/optimizer.o: \
1572
1574
$(srcdir)/Python/executor_cases.c.h \
1573
- $(srcdir)/Include/internal/pycore_opcode_metadata.h
1575
+ $(srcdir)/Include/internal/pycore_opcode_metadata.h \
1576
+ $(srcdir)/Include/internal/pycore_optimizer.h
1577
+
1578
+ Python/optimizer_analysis.o: \
1579
+ $(srcdir)/Include/internal/pycore_opcode_metadata.h \
1580
+ $(srcdir)/Include/internal/pycore_optimizer.h
1574
1581
1575
1582
Python/frozen.o: $(FROZEN_FILES_OUT)
1576
1583
Original file line number Diff line number Diff line change 218
218
<ClCompile Include =" ..\Python\mysnprintf.c" />
219
219
<ClCompile Include =" ..\Python\mystrtoul.c" />
220
220
<ClCompile Include =" ..\Python\optimizer.c" />
221
+ <ClCompile Include =" ..\Python\optimizer_analysis.c" />
221
222
<ClCompile Include =" ..\Python\pathconfig.c" />
222
223
<ClCompile Include =" ..\Python\perf_trampoline.c" />
223
224
<ClCompile Include =" ..\Python\preconfig.c" />
Original file line number Diff line number Diff line change 283
283
<ClCompile Include =" ..\Python\optimizer.c" >
284
284
<Filter >Source Files</Filter >
285
285
</ClCompile >
286
+ <ClCompile Include =" ..\Python\optimizer_analysis.c" >
287
+ <Filter >Source Files</Filter >
288
+ </ClCompile >
286
289
<ClCompile Include =" ..\Parser\parser.c" >
287
290
<Filter >Source Files</Filter >
288
291
</ClCompile >
Original file line number Diff line number Diff line change 248
248
<ClInclude Include =" ..\Include\internal\pycore_object_state.h" />
249
249
<ClInclude Include =" ..\Include\internal\pycore_obmalloc.h" />
250
250
<ClInclude Include =" ..\Include\internal\pycore_obmalloc_init.h" />
251
+ <ClInclude Include =" ..\Include\internal\pycore_optimizer.h" />
251
252
<ClInclude Include =" ..\Include\internal\pycore_pathconfig.h" />
252
253
<ClInclude Include =" ..\Include\internal\pycore_pyarena.h" />
253
254
<ClInclude Include =" ..\Include\internal\pycore_pyerrors.h" />
279
280
<ClInclude Include =" ..\Include\internal\pycore_unionobject.h" />
280
281
<ClInclude Include =" ..\Include\internal\pycore_unicodeobject.h" />
281
282
<ClInclude Include =" ..\Include\internal\pycore_unicodeobject_generated.h" />
283
+ <ClInclude Include =" ..\Include\internal\pycore_uops.h" />
282
284
<ClInclude Include =" ..\Include\internal\pycore_warnings.h" />
283
285
<ClInclude Include =" ..\Include\internal\pycore_weakref.h" />
284
286
<ClInclude Include =" ..\Include\interpreteridobject.h" />
548
550
<ClCompile Include =" ..\Python\mysnprintf.c" />
549
551
<ClCompile Include =" ..\Python\mystrtoul.c" />
550
552
<ClCompile Include =" ..\Python\optimizer.c" />
553
+ <ClCompile Include =" ..\Python\optimizer_analysis.c" />
551
554
<ClCompile Include =" ..\Python\pathconfig.c" />
552
555
<ClCompile Include =" ..\Python\perf_trampoline.c" />
553
556
<ClCompile Include =" ..\Python\preconfig.c" />
Original file line number Diff line number Diff line change 648
648
<ClInclude Include =" ..\Include\internal\pycore_obmalloc_init.h" >
649
649
<Filter >Include\internal</Filter >
650
650
</ClInclude >
651
+ <ClInclude Include =" ..\Include\internal\pycore_optimizer.h" >
652
+ <Filter >Include\internal</Filter >
653
+ </ClInclude >
651
654
<ClInclude Include =" ..\Include\internal\pycore_pathconfig.h" >
652
655
<Filter >Include\internal</Filter >
653
656
</ClInclude >
732
735
<ClInclude Include =" ..\Include\internal\pycore_unionobject.h" >
733
736
<Filter >Include\internal</Filter >
734
737
</ClInclude >
738
+ <ClInclude Include =" ..\Include\internal\pycore_uops.h" >
739
+ <Filter >Include\internal</Filter >
740
+ </ClInclude >
735
741
<ClInclude Include =" $(zlibDir)\crc32.h" >
736
742
<Filter >Modules\zlib</Filter >
737
743
</ClInclude >
1223
1229
<ClCompile Include =" ..\Python\optimizer.c" >
1224
1230
<Filter >Python</Filter >
1225
1231
</ClCompile >
1232
+ <ClCompile Include =" ..\Python\optimizer_analysis.c" >
1233
+ <Filter >Python</Filter >
1234
+ </ClCompile >
1226
1235
<ClCompile Include =" ..\Python\pathconfig.c" >
1227
1236
<Filter >Python</Filter >
1228
1237
</ClCompile >
You can’t perform that action at this time.
0 commit comments