Skip to content

Commit 8fc0e89

Browse files
committed
[MLIR][Presburger] Make PWMAFunction inheritence from space private
This patch makes inheritence from PresburgerSpace for PWMAFunction private. The reasoning for this patch is to prevent implicit conversion to PresburgerSpace from PWMAFunction and to not expose all functions exposed by PresburgerSpace in PWMAFunction. Reviewed By: arjunp Differential Revision: https://reviews.llvm.org/D123076
1 parent 973dbe2 commit 8fc0e89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/Analysis/Presburger/PWMAFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class MultiAffineFunction : protected IntegerPolyhedron {
139139
///
140140
/// Support is provided to compare equality of two such functions as well as
141141
/// finding the value of the function at a point.
142-
class PWMAFunction : public PresburgerSpace {
142+
class PWMAFunction : private PresburgerSpace {
143143
public:
144144
PWMAFunction(const PresburgerSpace &space, unsigned numOutputs)
145145
: PresburgerSpace(space), numOutputs(numOutputs) {

0 commit comments

Comments
 (0)