This patch adds support for divisions in the union of two PWMAFunction. This is
now possible because of previous patches, which made divisions explicitly
stored in MultiAffineFunction (MAF). This patch also refactors the previous
implementation, moving the implementation for obtaining a set of points where a
MAF is lexicographically "better" than the other to MAF.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Why is the Compare change in this patch?
mlir/include/mlir/Analysis/Presburger/PWMAFunction.h | ||
---|---|---|
26 | maybe use Ordering to follow std::strong_ordering | |
99–102 | ||
mlir/lib/Analysis/Presburger/PWMAFunction.cpp | ||
286 | ||
356 | maybe mention in a comment that this is templated since it's passed as a a lambda. wish we had better partial application in c++! |
Comment Actions
Please add a commit summary.
mlir/include/mlir/Analysis/Presburger/PWMAFunction.h | ||
---|---|---|
26 | Compare -> ComparisonKind Please use more descriptive naming. |
Comment Actions
I used OrderingKind enum in this patch because I wanted to move the lexSet implementation to MultiAffineFunction.
maybe use Ordering to follow std::strong_ordering