Skip to content

Replace ContextAwareDialectConversion fork with new upstream method #1828

@j2kun

Description

@j2kun

llvm/llvm-project#140434

The idea is:

  • For function declarations (no block arguments) use a custom pattern that ignores the type conversion system and manually converts types
  • For everything else (a Value exists), define the type converter to take as input a Value

In both cases, we can still use the attribute attached to the op to store the data needed for the type conversion. So this should be a minimally invasive change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions