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 - 2nd attempt #102652

Merged
merged 1 commit into from
Aug 12, 2024

Commits on Aug 12, 2024

  1. [MLIR][DLTI][Transform] Introduce transform.dlti.query - 2nd attempt

    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
    `ModuleOp`s but also on any ancestor op that has an appropriate DLTI
    attribute.
    
    (The first attempt that got merged was out-of-date w.r.t. a new
     mechanism for registering dialect extensions.)
    rolfmorel committed Aug 12, 2024
    Configuration menu
    Copy the full SHA
    747eeea View commit details
    Browse the repository at this point in the history