From f6ee78cfb7869dba4f797cbc0573bf02beac7810 Mon Sep 17 00:00:00 2001 From: Andreas Simbuerger Date: Sat, 24 May 2014 09:25:14 +0000 Subject: [PATCH] Expose diagnostic info to users llvm-svn: 209575 --- polly/include/polly/ScopDetectionDiagnostic.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h index 452e25d..d9fb1e2 100644 --- a/polly/include/polly/ScopDetectionDiagnostic.h +++ b/polly/include/polly/ScopDetectionDiagnostic.h @@ -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; -- 2.7.4