From 8fc0e89d0b9319034978c2a1df2bd20df89e247d Mon Sep 17 00:00:00 2001 From: Groverkss Date: Mon, 11 Apr 2022 20:01:27 +0530 Subject: [PATCH] [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 --- mlir/include/mlir/Analysis/Presburger/PWMAFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.7.4