summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-06-14 23:14:22 (GMT)
committerGitHub <noreply@github.com>2023-06-14 23:14:22 (GMT)
commitd1b0297d3e1cb4f9f53070e6c0a5fd6722bdf6ee (patch)
tree5849dfa6be4e9d5432fe5c5a2771755216fc4834 /Include
parent5ab13c5f97aa5226c49052f1ad19a8c97a3d7cdf (diff)
downloadcpython-d1b0297d3e1cb4f9f53070e6c0a5fd6722bdf6ee.zip
cpython-d1b0297d3e1cb4f9f53070e6c0a5fd6722bdf6ee.tar.gz
cpython-d1b0297d3e1cb4f9f53070e6c0a5fd6722bdf6ee.tar.bz2
gh-105481: add HAS_JUMP flag to opcode metadata (#105791)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_opcode_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/internal/pycore_opcode_utils.h b/Include/internal/pycore_opcode_utils.h
index 5ab31e6..d80b3c1 100644
--- a/Include/internal/pycore_opcode_utils.h
+++ b/Include/internal/pycore_opcode_utils.h
@@ -26,11 +26,11 @@ extern "C" {
(opcode) == SETUP_CLEANUP)
#define HAS_TARGET(opcode) \
- (IS_JUMP_OPCODE(opcode) || IS_BLOCK_PUSH_OPCODE(opcode))
+ (OPCODE_HAS_JUMP(opcode) || IS_BLOCK_PUSH_OPCODE(opcode))
/* opcodes that must be last in the basicblock */
#define IS_TERMINATOR_OPCODE(opcode) \
- (IS_JUMP_OPCODE(opcode) || IS_SCOPE_EXIT_OPCODE(opcode))
+ (OPCODE_HAS_JUMP(opcode) || IS_SCOPE_EXIT_OPCODE(opcode))
/* opcodes which are not emitted in codegen stage, only by the assembler */
#define IS_ASSEMBLER_OPCODE(opcode) \