MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
mlir::WalkResult Class Reference

A utility result that is used to signal how to proceed with an ongoing walk: More...

#include "mlir/IR/Visitors.h"

Public Member Functions

 WalkResult (ResultEnum result=Advance)
 
 WalkResult (LogicalResult result)
 Allow LogicalResult to interrupt the walk on failure. More...
 
 WalkResult (Diagnostic &&)
 Allow diagnostics to interrupt the walk. More...
 
 WalkResult (InFlightDiagnostic &&)
 
bool operator== (const WalkResult &rhs) const
 
bool operator!= (const WalkResult &rhs) const
 
bool wasInterrupted () const
 Returns true if the walk was interrupted. More...
 
bool wasSkipped () const
 Returns true if the walk was skipped. More...
 

Static Public Member Functions

static WalkResult interrupt ()
 
static WalkResult advance ()
 
static WalkResult skip ()
 

Detailed Description

A utility result that is used to signal how to proceed with an ongoing walk:

Definition at line 33 of file Visitors.h.

Constructor & Destructor Documentation

◆ WalkResult() [1/4]

mlir::WalkResult::WalkResult ( ResultEnum  result = Advance)
inline

Definition at line 37 of file Visitors.h.

◆ WalkResult() [2/4]

mlir::WalkResult::WalkResult ( LogicalResult  result)
inline

Allow LogicalResult to interrupt the walk on failure.

Definition at line 40 of file Visitors.h.

◆ WalkResult() [3/4]

mlir::WalkResult::WalkResult ( Diagnostic &&  )
inline

Allow diagnostics to interrupt the walk.

Definition at line 44 of file Visitors.h.

◆ WalkResult() [4/4]

mlir::WalkResult::WalkResult ( InFlightDiagnostic &&  )
inline

Definition at line 45 of file Visitors.h.

Member Function Documentation

◆ advance()

static WalkResult mlir::WalkResult::advance ( )
inlinestatic

◆ interrupt()

static WalkResult mlir::WalkResult::interrupt ( )
inlinestatic

◆ operator!=()

bool mlir::WalkResult::operator!= ( const WalkResult rhs) const
inline

Definition at line 48 of file Visitors.h.

◆ operator==()

bool mlir::WalkResult::operator== ( const WalkResult rhs) const
inline

Definition at line 47 of file Visitors.h.

◆ skip()

static WalkResult mlir::WalkResult::skip ( )
inlinestatic

◆ wasInterrupted()

bool mlir::WalkResult::wasInterrupted ( ) const
inline

◆ wasSkipped()

bool mlir::WalkResult::wasSkipped ( ) const
inline

Returns true if the walk was skipped.

Definition at line 58 of file Visitors.h.

Referenced by replaceElementImpl().


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