Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MLIR][DLTI][Transform] Introduce transform.dlti.query #101561

Merged
merged 1 commit into from
Aug 9, 2024

Commits on Aug 9, 2024

  1. [MLIR][DLTI][Transform] Introduce transform.dlti.query

    This transform op makes it possible to query attributes associated to
    IR by means of the DLTI dialect.
    
    The op takes both a `key` and a target `op` to perform the query at. Facility
    functions automatically find the closest ancestor op which defines the
    appropriate DLTI interface or has an attribute implementing a DLTI interface.
    By default the lookup uses the data layout interfaces of DLTI. If the optional
    `device` parameter is provided, the lookup happens with respect to the
    interfaces for TargetSystemSpec and TargetDeviceSpec.
    
    This op uses new free-standing functions in the `dlti` namespace to not
    only look up specifications via the DataLayoutSpecOpInterface and on ModuleOps
    but also on any ancestor op that has an appropriate DLTI attribute.
    rolfmorel committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    7491f66 View commit details
    Browse the repository at this point in the history