You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[mlir] Add the TransformsInterfaces for configuring transformations
This patch adds the `ConversionPatternsAttrInterface` and
`OpWithTransformAttrsOpInterface` interfaces. It also modifies the
`convert-to-llvm` pass to use these interfaces when available.
The `ConversionPatternsAttrInterface` allows attributes to configure the dialect
conversion infrastructure, including the conversion target, type converter, and
populating conversion patterns. See the `NVVMTargetAttr` implementation of this
interface for an example of how this interface can be used to configure dialect
conversion.
The `OpWithTransformAttrsOpInterface` allows interacting with transforms
attributes. These attributes allow configuring transformations like dialect
conversion with information present in the IR.
Finally, the `convert-to-llvm` pass was modified to use these interfaces when
available. This allows applying `convert-to-llvm` to GPU modules and letting the
`NVVMTargetAttr` decide which patterns to populate.
0 commit comments