[MLIR][Presburger] Make PWMAFunction inheritence from space private
authorGroverkss <groverkss@gmail.com>
Mon, 11 Apr 2022 14:31:27 +0000 (20:01 +0530)
committerGroverkss <groverkss@gmail.com>
Mon, 11 Apr 2022 14:31:38 +0000 (20:01 +0530)
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

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

index f4bffe5..6bc028c 100644 (file)
@@ -139,7 +139,7 @@ private:
 ///
 /// Support is provided to compare equality of two such functions as well as
 /// finding the value of the function at a point.
-class PWMAFunction : public PresburgerSpace {
+class PWMAFunction : private PresburgerSpace {
 public:
   PWMAFunction(const PresburgerSpace &space, unsigned numOutputs)
       : PresburgerSpace(space), numOutputs(numOutputs) {