This is an archive of the discontinued LLVM Phabricator instance.

[mlir][scf] NFC - refactor the implementation of outlineIfOp
ClosedPublic

Authored by nicolasvasilache on Jan 4 2022, 3:37 AM.

Details

Summary

This revision refactors the implementation of outlineIfOp to expose
a finer-grain functionality outlineSingleBlockRegion that will be
reused in other contexts.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Jan 4 2022, 3:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2022, 3:37 AM
mehdi_amini added inline comments.Jan 4 2022, 12:49 PM
mlir/include/mlir/Dialect/SCF/Utils.h
61

Please document that this can't be done in a FunctionPass

Also document that it is the responsibility of the caller to ensure that the name will be unique in the module.

mlir/test/lib/Dialect/SCF/TestSCFUtils.cpp
68

This should be a module Pass I think.

Address comment and rebase.

nicolasvasilache marked 2 inline comments as done.Jan 5 2022, 1:59 AM
gysit accepted this revision.Jan 5 2022, 2:01 AM
This revision is now accepted and ready to land.Jan 5 2022, 2:01 AM
This revision was landed with ongoing or failed builds.Jan 5 2022, 2:02 AM
This revision was automatically updated to reflect the committed changes.