[Mlir-commits] [mlir] 8fc0e89 - [MLIR][Presburger] Make PWMAFunction inheritence from space private
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Apr 11 07:35:06 PDT 2022
Author: Groverkss
Date: 2022-04-11T20:01:38+05:30
New Revision: 8fc0e89d0b9319034978c2a1df2bd20df89e247d
URL: https://github.com/llvm/llvm-project/commit/8fc0e89d0b9319034978c2a1df2bd20df89e247d
DIFF: https://github.com/llvm/llvm-project/commit/8fc0e89d0b9319034978c2a1df2bd20df89e247d.diff
LOG: [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
Added:
Modified:
mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
index f4bffe5b4e7a4..6bc028c21872e 100644
--- a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
+++ b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
@@ -139,7 +139,7 @@ class MultiAffineFunction : protected IntegerPolyhedron {
///
/// 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) {
More information about the Mlir-commits
mailing list