This patch implements range and domain composition for PresburgerRelations
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Analysis/Presburger/PresburgerRelation.h | ||
---|---|---|
99–101 | Sentences in comments should use full stops at end. |
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
---|---|---|
113–119 | I considered that but missed that I can change the space using setSpace, so resorted to creating a new relation instead. Will rewrite. | |
mlir/unittests/Analysis/Presburger/PresburgerRelationTest.cpp | ||
38 | I considered ->, but felt -> would be too close to function notation. I wanted to emphasize that these are relations, but I agree <-> makes it look like the map is surjective. Any suggestions for a more relational notation than -> ? |
LGTM. Just some style comments.
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp | ||
---|---|---|
113–115 | For a single statement, you can remove braces. | |
113–119 | Ah. Ideally, we should have an inverse in PresburgerSpace as well, which would allow this. I can do that later though. | |
116–118 | Same here, you can remove the braces since its a single statement. | |
mlir/unittests/Analysis/Presburger/PresburgerRelationTest.cpp | ||
38 | Right. MLIR and Presburger already use -> syntax so for consistency sake, it's better to use -> maybe for now. |
Sentences in comments should use full stops at end.