This patch factors out various checks for dimension compatibility to
PresburgerSpace::isEqual and PresburgerLocalSpace::isEqual (for local
identifiers).
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Analysis/Presburger/PWMAFunction.h | ||
---|---|---|
100 | inline keyword is redundant here | |
100 | If I pass a PresburgerLocalSpace to this, it will return true even if their locals aren't equal. that seems misleading | |
mlir/lib/Analysis/Presburger/PWMAFunction.cpp | ||
161 | Just use PresburgerSpace:: isEqual? That also makes it immediately clear we're checking if they're equal as PresburgerSpaces here, i.e., ignoring the locals. |
- Address Arjun's comments
mlir/lib/Analysis/Presburger/PWMAFunction.cpp | ||
---|---|---|
161 | MultiAffineFunction is protected inheritance from IntegerPolyhedron so I cannot use that. |
mlir/lib/Analysis/Presburger/PWMAFunction.cpp | ||
---|---|---|
161 | Good point. |
inline keyword is redundant here