This is an archive of the discontinued LLVM Phabricator instance.

[mlir] add transform dialect entry point
ClosedPublic

Authored by ftynse on Oct 11 2022, 8:26 AM.

Details

Summary

Introduce transform::applyTransforms as a top-level entry point to the
Transform dialect-driven transformation infrastructure, by analogy with
applyFull/PartialConversion. Clients are expected to use this function
and no longer need to maintain the transformation state. Make the
constructor of the TransformState private for that purpose.

Diff Detail

Event Timeline

ftynse created this revision.Oct 11 2022, 8:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 8:26 AM
ftynse requested review of this revision.Oct 11 2022, 8:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2022, 8:26 AM
springerm accepted this revision.Oct 11 2022, 10:54 PM
springerm added inline comments.
mlir/lib/Dialect/Transform/IR/TransformInterfaces.cpp
461

nit: Can be written as getNumOperands != 0

This revision is now accepted and ready to land.Oct 11 2022, 10:54 PM
This revision was automatically updated to reflect the committed changes.