mirror of https://github.com/python/cpython
gh-105481: move Python/opcode_metadata.h to Include/internal/pycore_opcode_metadata.h (#106673)
This commit is contained in:
parent
42bc485a24
commit
2ca008e2b7
|
@ -87,7 +87,7 @@ Programs/test_frozenmain.h generated
|
|||
Python/Python-ast.c generated
|
||||
Python/executor_cases.c.h generated
|
||||
Python/generated_cases.c.h generated
|
||||
Python/opcode_metadata.h generated
|
||||
Include/internal/pycore_opcode_metadata.h generated
|
||||
Python/opcode_targets.h generated
|
||||
Python/stdlib_module_names.h generated
|
||||
Tools/peg_generator/pegen/grammar_parser.py generated
|
||||
|
|
|
@ -1548,30 +1548,30 @@ regen-cases:
|
|||
$(srcdir)/Tools/cases_generator/generate_cases.py \
|
||||
--emit-line-directives \
|
||||
-o $(srcdir)/Python/generated_cases.c.h.new \
|
||||
-m $(srcdir)/Python/opcode_metadata.h.new \
|
||||
-m $(srcdir)/Include/internal/pycore_opcode_metadata.h.new \
|
||||
-e $(srcdir)/Python/executor_cases.c.h.new \
|
||||
-p $(srcdir)/Lib/_opcode_metadata.py.new \
|
||||
$(srcdir)/Python/bytecodes.c
|
||||
$(UPDATE_FILE) $(srcdir)/Python/generated_cases.c.h $(srcdir)/Python/generated_cases.c.h.new
|
||||
$(UPDATE_FILE) $(srcdir)/Python/opcode_metadata.h $(srcdir)/Python/opcode_metadata.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)/Lib/_opcode_metadata.py $(srcdir)/Lib/_opcode_metadata.py.new
|
||||
|
||||
Python/compile.o: $(srcdir)/Python/opcode_metadata.h
|
||||
Python/compile.o: $(srcdir)/Include/internal/pycore_opcode_metadata.h
|
||||
|
||||
Python/ceval.o: \
|
||||
$(srcdir)/Python/ceval_macros.h \
|
||||
$(srcdir)/Python/condvar.h \
|
||||
$(srcdir)/Python/generated_cases.c.h \
|
||||
$(srcdir)/Python/opcode_metadata.h \
|
||||
$(srcdir)/Include/internal/pycore_opcode_metadata.h \
|
||||
$(srcdir)/Python/opcode_targets.h
|
||||
|
||||
Python/flowgraph.o: \
|
||||
$(srcdir)/Python/opcode_metadata.h
|
||||
$(srcdir)/Include/internal/pycore_opcode_metadata.h
|
||||
|
||||
Python/optimizer.o: \
|
||||
$(srcdir)/Python/executor_cases.c.h \
|
||||
$(srcdir)/Python/opcode_metadata.h
|
||||
$(srcdir)/Include/internal/pycore_opcode_metadata.h
|
||||
|
||||
Python/frozen.o: $(FROZEN_FILES_OUT)
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_code.h" // write_location_entry_start()
|
||||
#include "pycore_code.h" // write_location_entry_start()
|
||||
#include "pycore_compile.h"
|
||||
#include "pycore_opcode.h" // _PyOpcode_Caches[] and opcode category macros
|
||||
#include "pycore_opcode_utils.h" // IS_BACKWARDS_JUMP_OPCODE
|
||||
#include "opcode_metadata.h" // IS_PSEUDO_INSTR
|
||||
#include "pycore_opcode.h" // _PyOpcode_Caches[] and opcode category macros
|
||||
#include "pycore_opcode_utils.h" // IS_BACKWARDS_JUMP_OPCODE
|
||||
#include "pycore_opcode_metadata.h" // IS_PSEUDO_INSTR
|
||||
|
||||
|
||||
#define DEFAULT_CODE_SIZE 128
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
#include "pycore_object.h" // _PyObject_GC_TRACK()
|
||||
#include "pycore_moduleobject.h" // PyModuleObject
|
||||
#include "pycore_opcode.h" // EXTRA_CASES
|
||||
#include "pycore_opcode_metadata.h"
|
||||
#include "pycore_opcode_utils.h" // MAKE_FUNCTION_*
|
||||
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
|
@ -30,7 +31,6 @@
|
|||
#include "pycore_frame.h"
|
||||
#include "frameobject.h" // _PyInterpreterFrame_GetLine
|
||||
#include "opcode.h"
|
||||
#include "opcode_metadata.h"
|
||||
#include "pydtrace.h"
|
||||
#include "setobject.h"
|
||||
#include "structmember.h" // struct PyMemberDef, T_OFFSET_EX
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include "pycore_pystate.h" // _Py_GetConfig()
|
||||
#include "pycore_symtable.h" // PySTEntryObject, _PyFuture_FromAST()
|
||||
|
||||
#include "opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
|
||||
#include "pycore_opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
|
||||
|
||||
#define COMP_GENEXP 0
|
||||
#define COMP_LISTCOMP 1
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "pycore_opcode_utils.h"
|
||||
#define NEED_OPCODE_METADATA
|
||||
#include "opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
|
||||
#include "pycore_opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
|
||||
#undef NEED_OPCODE_METADATA
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "opcode.h"
|
||||
#include "pycore_interp.h"
|
||||
#include "pycore_opcode.h"
|
||||
#include "opcode_metadata.h"
|
||||
#include "pycore_opcode_metadata.h"
|
||||
#include "pycore_opcode_utils.h"
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
#include "pycore_uops.h"
|
||||
|
|
|
@ -24,7 +24,7 @@ THIS = os.path.relpath(__file__, ROOT).replace(os.path.sep, posixpath.sep)
|
|||
DEFAULT_INPUT = os.path.relpath(os.path.join(ROOT, "Python/bytecodes.c"))
|
||||
DEFAULT_OUTPUT = os.path.relpath(os.path.join(ROOT, "Python/generated_cases.c.h"))
|
||||
DEFAULT_METADATA_OUTPUT = os.path.relpath(
|
||||
os.path.join(ROOT, "Python/opcode_metadata.h")
|
||||
os.path.join(ROOT, "Include/internal/pycore_opcode_metadata.h")
|
||||
)
|
||||
DEFAULT_PYMETADATA_OUTPUT = os.path.relpath(
|
||||
os.path.join(ROOT, "Lib/_opcode_metadata.py")
|
||||
|
|
Loading…
Reference in New Issue