This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Transform] Consolidate the transform ops of get_parent_for and loop unroll from affine and scf dialects.
ClosedPublic

Authored by kaitingwang on Nov 29 2022, 9:44 PM.

Details

Summary

This patch consolidates the two transform ops from the affine dialect and the scf dialect to avoid code duplication.

This is to address the review comments from https://reviews.llvm.org/D137997.

The transform ops directory / file structure for the affine dialect is kept for the purpose of forth-coming transform ops
for affine, but get_parent_for and unroll are removed.

Diff Detail

Event Timeline

kaitingwang created this revision.Nov 29 2022, 9:44 PM
kaitingwang requested review of this revision.Nov 29 2022, 9:44 PM
nicolasvasilache accepted this revision.Nov 29 2022, 9:49 PM

Nice red diff :)

Thanks!

This revision is now accepted and ready to land.Nov 29 2022, 9:49 PM

Nice red diff :)

Thanks!

@nicolasvasilache Thank you accepting the patch. Your comments were very helpful! Looking forward to working with you on the transform dialect going forward!

mlir/lib/Dialect/SCF/TransformOps/SCFTransformOps.cpp