summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/include/polly/ScopDetectionDiagnostic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/polly/include/polly/ScopDetectionDiagnostic.h b/polly/include/polly/ScopDetectionDiagnostic.h
index 452e25da230..d9fb1e2912a 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;
OpenPOWER on IntegriCloud