This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Utilize op interface instead of tensor::TrackingLister

Authored by springerm on Jun 1 2023, 6:58 AM.



Add a new interface FindPayloadReplacementOpInterface to specify ops that should be skipped when looking for payload replacement ops. Such ops are typically metadata-only ops.

With this change, we no longer need to maintain a custom TrackingListener in the tensor dialect.

Note: CastOpInterface by itself is not sufficient. Some metadata-only ops such as "tensor.reshape" are not casts, and it would be incorrect for them to implement the CastOpInterface.

Depends On: D146972

Diff Detail