This patch implements findSymbolicIntegerLexMax for IntegerRelation
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/include/mlir/Analysis/Presburger/IntegerRelation.h | ||
|---|---|---|
| 672–693 | nit: I think you can just share the documentation of lexmin and lexmax functions. Just easier to maintain. | |
| mlir/include/mlir/Analysis/Presburger/Simplex.h | ||
| 532 | ||
| 538 | ||
| 542–544 | Please change the documentation to reflect lexmin -> lexopt | |
| mlir/lib/Analysis/Presburger/IntegerRelation.cpp | ||
| 257 | Can you write a doc comment explaining the flipping stratergy we use? | |
| mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp | ||
| 141 | I think a few more tests would be nice. | |
| mlir/include/mlir/Analysis/Presburger/IntegerRelation.h | ||
|---|---|---|
| 672–693 | I am unsure how to do this, do you suggest the lexmax function documentation be moved to lexmin or just scrapped altogether? | |
LGTM.
| mlir/include/mlir/Analysis/Presburger/IntegerRelation.h | ||
|---|---|---|
| 672–693 | Just add a "Same as findSymbolicIntegerLexMin but produces lexmax instead of lexmin" comment and it should be fine. | |
| mlir/lib/Analysis/Presburger/IntegerRelation.cpp | ||
| 259–260 | "With the sign of each dimension variable in range flipped" is better. | |
nit: I think you can just share the documentation of lexmin and lexmax functions. Just easier to maintain.