This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Use IntegerPolyhedron in Simplex instead of FlatAffineConstraints
ClosedPublic

Authored by Groverkss on Dec 26 2021, 11:09 AM.

Details

Summary

This patch replaces usage of FlatAffineConstraints in Simplex with
IntegerPolyhedron. This removes dependency of Simplex on FlatAffineConstraints
and puts it on IntegerPolyhedron, which is part of Presburger library.

Diff Detail

Event Timeline

Groverkss created this revision.Dec 26 2021, 11:09 AM
Groverkss requested review of this revision.Dec 26 2021, 11:09 AM
arjunp accepted this revision.Dec 26 2021, 11:18 AM

There are still some IntegerPolyhedron objects called fac. Please change them to poly as well.

mlir/include/mlir/Analysis/Presburger/Simplex.h
9
42
This revision is now accepted and ready to land.Dec 26 2021, 11:18 AM
arjunp added inline comments.Dec 26 2021, 11:19 AM
mlir/include/mlir/Analysis/Presburger/Simplex.h
9

Or better: "on an IntegerPolyhedron"

Groverkss marked 2 inline comments as done.
  • Address Arjun's comments.
Groverkss updated this revision to Diff 396292.Dec 27 2021, 5:02 AM
Groverkss marked an inline comment as done.
  • Fix doc comment for Simplex.h
Groverkss updated this revision to Diff 396294.Dec 27 2021, 5:08 AM

Send correct commits.