From: Groverkss Date: Mon, 11 Apr 2022 14:31:27 +0000 (+0530) Subject: [MLIR][Presburger] Make PWMAFunction inheritence from space private X-Git-Tag: upstream/15.0.7~10830 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fc0e89d0b9319034978c2a1df2bd20df89e247d;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h index f4bffe5..6bc028c 100644 --- a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h +++ b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h @@ -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) {