[MLIR][Presburger] Move PresburgerLocalSpace::isEqual from protected to public
authorGroverkss <groverkss@gmail.com>
Tue, 8 Mar 2022 08:50:52 +0000 (14:20 +0530)
committerGroverkss <groverkss@gmail.com>
Tue, 8 Mar 2022 08:52:35 +0000 (14:22 +0530)
This change is done to match the interface of PresburgerSpace, which has
PresburgerSpace::isEqual as public.

mlir/include/mlir/Analysis/Presburger/PresburgerSpace.h

index deb90e6..5aac0fb 100644 (file)
@@ -184,6 +184,10 @@ public:
   /// Removes identifiers in the column range [idStart, idLimit).
   void removeIdRange(unsigned idStart, unsigned idLimit) override;
 
+  /// Returns true if both the spaces are equal i.e. if both spaces have the
+  /// same number of identifiers of each kind.
+  bool isEqual(const PresburgerLocalSpace &other) const;
+
   void print(llvm::raw_ostream &os) const;
   void dump() const;
 
@@ -197,10 +201,6 @@ protected:
   PresburgerLocalSpace(unsigned numDims, unsigned numSymbols,
                        unsigned numLocals)
       : PresburgerSpace(Set, /*numDomain=*/0, numDims, numSymbols, numLocals) {}
-
-  /// Returns true if both the spaces are equal i.e. if both spaces have the
-  /// same number of identifiers of each kind.
-  bool isEqual(const PresburgerLocalSpace &other) const;
 };
 
 } // namespace presburger