This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] add Simplex:addDivisionVariable
ClosedPublic

Authored by arjunp on Mar 21 2022, 10:33 AM.

Details

Summary

This is a convenience function for adding new divisions to the Simplex given the numerator and denominator.

This will be needed for symbolic integer lexmin support.

Diff Detail

Event Timeline

arjunp created this revision.Mar 21 2022, 10:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 10:33 AM
arjunp requested review of this revision.Mar 21 2022, 10:33 AM
Groverkss added inline comments.Mar 21 2022, 3:32 PM
mlir/lib/Analysis/Presburger/Simplex.cpp
821–825
826

An assert to check if denom == 0 would be useful.

Groverkss requested changes to this revision.Mar 21 2022, 4:20 PM
This revision now requires changes to proceed.Mar 21 2022, 4:20 PM
arjunp updated this revision to Diff 417274.Mar 22 2022, 6:22 AM

Address Kunwar's comments

This revision is now accepted and ready to land.Mar 23 2022, 3:01 AM
This revision was automatically updated to reflect the committed changes.