gh-87092: move CFG related code from compile.c to flowgraph.c (#103021)

This commit is contained in:
Irit Katriel 2023-03-31 18:17:59 +01:00 committed by GitHub
parent b0422e140d
commit 80163e17d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 2484 additions and 2399 deletions

File diff suppressed because it is too large Load diff

2160
Python/flowgraph.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@
// Python/bytecodes.c
// Do not edit!
#ifndef NEED_OPCODE_TABLES
#ifndef NEED_OPCODE_METADATA
extern int _PyOpcode_num_popped(int opcode, int oparg, bool jump);
#else
int
@ -349,7 +349,7 @@ _PyOpcode_num_popped(int opcode, int oparg, bool jump) {
}
#endif
#ifndef NEED_OPCODE_TABLES
#ifndef NEED_OPCODE_METADATA
extern int _PyOpcode_num_pushed(int opcode, int oparg, bool jump);
#else
int
@ -701,7 +701,7 @@ struct opcode_metadata {
enum InstructionFormat instr_format;
};
#ifndef NEED_OPCODE_TABLES
#ifndef NEED_OPCODE_METADATA
extern const struct opcode_metadata _PyOpcode_opcode_metadata[256];
#else
const struct opcode_metadata _PyOpcode_opcode_metadata[256] = {