Skip to content

flowgraph: extend cfg to support whole fn item rather than just a block #15020

Closed
@pnkfelix

Description

@pnkfelix

There's a fixme that landed in the dataflow-atop-cfg work:
75340f4#diff-158b34791d327b238be103c2d1867e71R195

In summary: right now there is a bit of a hack in the dataflow code to introduce definitions for all of the patterns bound by the fn_decl for the fn item being analyzed.

It might be much cleaner to just fold all those formals into the graph structure itself, by extending the cfg code so that, in addition to accepting a block as it does today, it also accepts a whole fn item, and then does the right thing for the bindings introduced by the fn_decl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-cleanupCategory: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions