This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger][NFC] Cleanup PresburgerSet
ClosedPublic

Authored by Groverkss on Mar 4 2022, 2:44 PM.

Details

Summary

This patch cleans up the interface to PresburgerSet. At a high level it does
the following changes:

  • Move member functions around to have constructors at top and print/dump at end.
  • Move a private function to be a static function instead.
  • Change member functions of type "getAllIntegerPolyhedron" to "getAllPolys" instead.
  • Improve documentation for PresburgerSet.

Diff Detail

Event Timeline

Groverkss created this revision.Mar 4 2022, 2:44 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 4 2022, 2:44 PM
Groverkss requested review of this revision.Mar 4 2022, 2:44 PM
bondhugula added inline comments.Mar 4 2022, 6:47 PM
mlir/include/mlir/Analysis/Presburger/PresburgerSet.h
120

Avoid using polys as a plural term. You can spell it out.

mlir/lib/Analysis/Presburger/PresburgerSet.cpp
647

Can we emit a better name here?

Groverkss updated this revision to Diff 413289.Mar 6 2022, 2:54 AM
Groverkss marked 2 inline comments as done.
  • Address comments
arjunp added inline comments.Mar 6 2022, 6:39 AM
mlir/include/mlir/Analysis/Presburger/PresburgerSet.h
30

(another instance of "polys")

Groverkss updated this revision to Diff 413597.Mar 7 2022, 12:46 PM
Groverkss marked an inline comment as done.
  • Address Arjun's comment
arjunp accepted this revision.Mar 7 2022, 12:47 PM
This revision is now accepted and ready to land.Mar 7 2022, 12:47 PM
This revision was landed with ongoing or failed builds.Mar 7 2022, 1:32 PM
This revision was automatically updated to reflect the committed changes.