Skip to content
/ cpython Public
  • Sponsor python/cpython

  • Notifications You must be signed in to change notification settings
  • Fork 32.3k

Refactor compiler so that the low level code generation functions operate on a basicblock* #93008

Closed
@iritkatriel

Description

@iritkatriel

The compiler's functions that add instructions (compiler_addop, etc) take a struct compiler * arg, so they cannot be reused by the optimiser/assembler. They should be refactored so that they only take a basicblock*.

While I'm at it, I will roll compiler_check_if_end_of_block into the subsequent compiler_use_new_implicit_block_if_needed (which can look at the last instruction in the block).

Metadata

Metadata

Assignees

Labels

interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Refactor compiler so that the low level code generation functions operate on a basicblock* · Issue #93008 · python/cpython