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
[DT][NFC] Refactor linalg.fill/generic op lowering to interface implementation. (#22343)
The revision deletes two patterns and moves the implementation to
interface methods:
- MaterializeDPSOperation<linalg::FillOp>
- MaterializeDPSOperation<linalg::GenericOp>
The lowerGenericOpWithResolvedLayouts method is very similar to the
original lowerGenericOpWithEncoding. The new method takes the same input
arguments like `lowerOp` method with an additional
`LayoutMaterializerAttr` attribute, because it needs the packing info to
generate indexing maps. In the new implementation, it uses
`getEncodingInfoFromLayout` method directly while the method in the type
converter is just a wrapper. I.e., it reduces the dependency from the
type converter. See
https://gist.github.com/hanhanW/e89aa9e5052f8db37b2543fa368ed605 for the
diff.
It is a step towards #20160, as
the padding resolver no longer rely on "fallback" path to drop the
encodings. It has its own implementation that uses `clone`.
---------
Signed-off-by: hanhanW <[email protected]>
0 commit comments