Skip to content

Transform inst(X, ...) to op(X, ...) plus macro(X) = X in code generator #109287

Description

@gvanrossum

This should make it easier for all further passes in the code generator -- they can just look at macros, ignoring the singleton instructions. @markshannon tried this in #108997 but got stuck, I hope I can get it unstuck.

It's possible that the synthetic uop will be named __X instead of _X, since the latter would create some name conflicts. (I don't think that this causes issues with __X being treated as "private" in Python, since we won't have Python-level variables named after uops.) (UPDATE: The synthetic uop and macro will both be called X.)

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions