Expose diagnostic info to users
authorAndreas Simbuerger <simbuerg@fim.uni-passau.de>
Sat, 24 May 2014 09:25:14 +0000 (09:25 +0000)
committerAndreas Simbuerger <simbuerg@fim.uni-passau.de>
Sat, 24 May 2014 09:25:14 +0000 (09:25 +0000)
llvm-svn: 209575

polly/include/polly/ScopDetectionDiagnostic.h

index 452e25d..d9fb1e2 100644 (file)
@@ -201,6 +201,9 @@ public:
   ReportNonAffBranch(BasicBlock *BB, const SCEV *LHS, const SCEV *RHS)
       : BB(BB), LHS(LHS), RHS(RHS) {}
 
+  const SCEV *lhs() { return LHS; }
+  const SCEV *rhs() { return RHS; }
+
   /// @name RejectReason interface
   //@{
   virtual std::string getMessage() const;
@@ -258,6 +261,8 @@ public:
   ReportNonAffineAccess(const SCEV *AccessFunction)
       : AccessFunction(AccessFunction) {}
 
+  const SCEV *get() { return AccessFunction; }
+
   /// @name RejectReason interface
   //@{
   virtual std::string getMessage() const;
@@ -353,6 +358,8 @@ class ReportLoopBound : public RejectReason {
 public:
   ReportLoopBound(Loop *L, const SCEV *LoopCount);
 
+  const SCEV *loopCount() { return LoopCount; }
+
   /// @name RejectReason interface
   //@{
   virtual std::string getMessage() const;