MMatthias Springer[mlir][transform] Add TransformRewriter
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[mlir][transform] Add TransformRewriter All apply functions now have a TransformRewriter & parameter. This rewriter should be used to modify the IR. It has a TrackingListener attached and updates the internal handle-payload mappings based on rewrites. Implementations no longer need to create their own TrackingListener and IRRewriter. Error checking is integrated into applyTransform. Tracking listener errors are reported only for ops with the ReportTrackingListenerFailuresOpTrait trait attached, allowing for a gradual migration. Furthermore, errors can be silenced with an op attribute. Additional API will be added to TransformRewriter in subsequent revisions. This revision just adds an "empty" TransformRewriter class and updates all apply implementations. Differential Revision: https://reviews.llvm.org/D152427 | 3 年前 | |
[mlir] don't hardcode PDL_Operation in Transform dialect extensions Update operations in Transform dialect extensions defined in the Affine, GPU, MemRef and Tensor dialects to use the more generic TransformHandleTypeInterface type constraint instead of hardcoding PDL_Operation. See https://discourse.llvm.org/t/rfc-type-system-for-the-transform-dialect/65702 for motivation. Remove the dependency on PDLDialect from these extensions. Update tests to use !transform.any_op instead of !pdl.operation. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D150781 | 3 年前 |