This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Simplex: split some basic functionality out into a SimplexBase class
ClosedPublic

Authored by arjunp on Dec 15 2021, 2:27 PM.

Details

Summary

This is a purely mechanical patch moving some functionality out from the
Simplex class out into a SimplexBase class. This pavees the way for
a future patch adding support for lexicographic optimization with a class
LexSimplex, which will inherit from SimplexBase. Inheriting directly
from Simplex would bring many additional functions that would not work in
LexSimplex because it operates slighty differently from Simplex. So We
split out only the basic functionality it needs to inherit into SimplexBase.

Diff Detail

Event Timeline

arjunp created this revision.Dec 15 2021, 2:27 PM
arjunp requested review of this revision.Dec 15 2021, 2:27 PM
Groverkss added inline comments.Dec 16 2021, 4:17 AM
mlir/include/mlir/Analysis/Presburger/Simplex.h
32–42

Since this documentation is now file specific instead of specific to Simplex class, should we change the "this class implements" specific things?

arjunp updated this revision to Diff 394828.Dec 16 2021, 4:50 AM
arjunp marked an inline comment as done.

Addressed Kunwar's comments.

This revision is now accepted and ready to land.Dec 16 2021, 4:59 AM