This patch refactors existing implementations of division representation storage
into a new class, DivisionRepr. This refactoring is done so that the common
division utilities can be shared in an upcoming patch.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Analysis/Presburger/Utils.h | ||
---|---|---|
107–114 | Please differentiate betwen local vars and divisions (locals that have div reprs) in this comment. | |
108–109 | Do you mean the coefficients of the dividends? | |
mlir/lib/Analysis/Presburger/IntegerRelation.cpp | ||
921–922 | localOffset | |
933–935 | Can you make a clearRepr function? | |
mlir/lib/Analysis/Presburger/Matrix.cpp | ||
96 | ||
mlir/lib/Analysis/Presburger/Utils.cpp | ||
219 | please add an assert for dividend size |
mlir/include/mlir/Analysis/Presburger/Utils.h | ||
---|---|---|
108 | ||
109 | I don't understand what this ordering means. Like, won't it be in the same order as that ordering of the vars in the original constraint set? That set might have locals with no div reprs in between locals with div reprs. | |
129–133 | Isn't DivRepr redundant here, we can just write Repr I think | |
mlir/lib/Analysis/Presburger/IntegerRelation.cpp | ||
929–936 | nit |