[Mlir-commits] [mlir] 888894b - [MLIR][Presburger] Support PWMAFunction::dump by calling into print

Arjun P llvmlistbot at llvm.org
Mon Mar 21 09:01:45 PDT 2022


Author: Arjun P
Date: 2022-03-21T16:01:51Z
New Revision: 888894b65aea61266cdef7a329f755981c7315b0

URL: https://github.com/llvm/llvm-project/commit/888894b65aea61266cdef7a329f755981c7315b0
DIFF: https://github.com/llvm/llvm-project/commit/888894b65aea61266cdef7a329f755981c7315b0.diff

LOG: [MLIR][Presburger] Support PWMAFunction::dump by calling into print

This was declared but not defined previously.

Added: 
    

Modified: 
    mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
    mlir/lib/Analysis/Presburger/PWMAFunction.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
index 2a64ca7f3570c..66b66940fd72a 100644
--- a/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
+++ b/mlir/include/mlir/Analysis/Presburger/PWMAFunction.h
@@ -119,7 +119,6 @@ class MultiAffineFunction : protected IntegerPolyhedron {
   Optional<SmallVector<int64_t, 8>> valueAt(ArrayRef<int64_t> point) const;
 
   void print(raw_ostream &os) const;
-
   void dump() const;
 
 private:

diff  --git a/mlir/lib/Analysis/Presburger/PWMAFunction.cpp b/mlir/lib/Analysis/Presburger/PWMAFunction.cpp
index fdfeb936d6f7a..77fc3c0f8c3d5 100644
--- a/mlir/lib/Analysis/Presburger/PWMAFunction.cpp
+++ b/mlir/lib/Analysis/Presburger/PWMAFunction.cpp
@@ -181,3 +181,5 @@ void PWMAFunction::print(raw_ostream &os) const {
   for (const MultiAffineFunction &piece : pieces)
     piece.print(os);
 }
+
+void PWMAFunction::dump() const { print(llvm::errs()); }


        


More information about the Mlir-commits mailing list