Polly 23.0.0git
polly::RejectLog Class Referencefinal

Stores all errors that occurred during the detection. More...

#include <ScopDetectionDiagnostic.h>

Public Types

using iterator = SmallVector<RejectReasonPtr, 1>::const_iterator

Public Member Functions

 RejectLog (Region *R)
iterator begin () const
iterator end () const
size_t size () const
bool hasErrors () const
 Returns true, if we store at least one error.
void print (raw_ostream &OS, int level=0) const
const Region * region () const
void report (RejectReasonPtr Reject)

Private Attributes

Region * R
SmallVector< RejectReasonPtr, 1 > ErrorReports

Detailed Description

Stores all errors that occurred during the detection.

Definition at line 168 of file ScopDetectionDiagnostic.h.

Member Typedef Documentation

◆ iterator

using polly::RejectLog::iterator = SmallVector<RejectReasonPtr, 1>::const_iterator

Definition at line 175 of file ScopDetectionDiagnostic.h.

Constructor & Destructor Documentation

◆ RejectLog()

polly::RejectLog::RejectLog ( Region * R)
inlineexplicit

Definition at line 173 of file ScopDetectionDiagnostic.h.

References R.

Member Function Documentation

◆ begin()

iterator polly::RejectLog::begin ( ) const
inline

Definition at line 177 of file ScopDetectionDiagnostic.h.

References ErrorReports.

◆ end()

iterator polly::RejectLog::end ( ) const
inline

Definition at line 178 of file ScopDetectionDiagnostic.h.

References ErrorReports.

◆ hasErrors()

bool polly::RejectLog::hasErrors ( ) const
inline

Returns true, if we store at least one error.

Returns
true, if we store at least one error.

Definition at line 184 of file ScopDetectionDiagnostic.h.

References size().

Referenced by polly::ScopDetection::detect(), polly::ScopDetection::emitMissedRemarks(), polly::ScopDetection::expandRegion(), and polly::ScopDetection::findScops().

◆ print()

void polly::RejectLog::print ( raw_ostream & OS,
int level = 0 ) const

Definition at line 182 of file ScopDetectionDiagnostic.cpp.

References ErrorReports.

◆ region()

const Region * polly::RejectLog::region ( ) const
inline

Definition at line 188 of file ScopDetectionDiagnostic.h.

References R.

◆ report()

void polly::RejectLog::report ( RejectReasonPtr Reject)
inline

Definition at line 189 of file ScopDetectionDiagnostic.h.

References ErrorReports.

Referenced by polly::ScopDetection::invalid().

◆ size()

size_t polly::RejectLog::size ( ) const
inline

Definition at line 179 of file ScopDetectionDiagnostic.h.

References ErrorReports.

Referenced by polly::ScopDetection::canUseISLTripCount(), and hasErrors().

Member Data Documentation

◆ ErrorReports

SmallVector<RejectReasonPtr, 1> polly::RejectLog::ErrorReports
private

Definition at line 170 of file ScopDetectionDiagnostic.h.

Referenced by begin(), end(), print(), report(), and size().

◆ R

Region* polly::RejectLog::R
private

Definition at line 169 of file ScopDetectionDiagnostic.h.

Referenced by region(), and RejectLog().


The documentation for this class was generated from the following files: