This patch implements findSymbolicIntegerLexMin/Max for PresburgerRelation
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
|---|---|---|
| 208–209 | Can't you just do getSpace() ? | |
| 223–237 | These functions are almost the same. Can you make a static function with a boolean flag and call it from both? | |
| mlir/unittests/Analysis/Presburger/PresburgerRelationTest.cpp | ||
| 194–228 | I think some more tests would be nice for this. Maybe something with more dimension variables. | |
| mlir/include/mlir/Analysis/Presburger/PresburgerRelation.h | ||
|---|---|---|
| 121–123 | Sorry for being unclear, I did not mean a static class function. I meant a static function as a local function inside the implementation. | |
| mlir/unittests/Analysis/Presburger/PresburgerRelationTest.cpp | ||
| 256–258 | nit: Can you format these such that each new expression is on a new line? | |
| 281 | Please remove debug statements. | |
| 286–297 | It's better if these checks are near the definitions. | |
LGTM, one small change.
| mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
|---|---|---|
| 216 | Why not use result.lexopt directly instead? | |
| mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
|---|---|---|
| 216 | Maybe you can just do SymbolicLexOpt &s = result.lexopt and PresburgerSet &unboundedDomain = result.unboundedDomain. | |
Sorry for being unclear, I did not mean a static class function. I meant a static function as a local function inside the implementation.