This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Turns swapId into a FlatAffineConstraints member func
ClosedPublic

Authored by kumasento on Sep 16 2020, 8:06 AM.

Details

Summary

swapId used to be a static function in AffineStructures.cpp. This diff makes it accessible from the external world by turning it into a member function of FlatAffineConstraints. This will be very helpful for other projects that need to manipulate the content of FlatAffineConstraints.

Diff Detail

Event Timeline

kumasento created this revision.Sep 16 2020, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2020, 8:06 AM
kumasento requested review of this revision.Sep 16 2020, 8:06 AM
ftynse accepted this revision.Sep 17 2020, 1:29 AM
ftynse added inline comments.
mlir/lib/Analysis/AffineStructures.cpp
1957

Please drop trivial braces while you are at it.

This revision is now accepted and ready to land.Sep 17 2020, 1:29 AM
bondhugula accepted this revision.Sep 17 2020, 2:07 AM
kumasento updated this revision to Diff 292448.Sep 17 2020, 3:17 AM

Removed trivial braces.

kumasento marked an inline comment as done.Sep 17 2020, 3:18 AM
kumasento added inline comments.
mlir/lib/Analysis/AffineStructures.cpp
1957

Sure, thank you for your comment!

This revision was landed with ongoing or failed builds.Sep 17 2020, 3:27 AM
This revision was automatically updated to reflect the committed changes.
kumasento marked an inline comment as done.