MLIR
20.0.0git
|
A class to signal how to proceed with the walk of the backward slice: More...
#include "mlir/Analysis/SliceWalk.h"
Public Types | |
enum class | WalkAction { Interrupt , AdvanceTo , Skip } |
Public Member Functions | |
WalkContinuation (WalkAction action, mlir::ValueRange nextValues) | |
WalkContinuation (mlir::Diagnostic &&) | |
Allows diagnostics to interrupt the walk. More... | |
WalkContinuation (mlir::InFlightDiagnostic &&) | |
Allows diagnostics to interrupt the walk. More... | |
bool | wasInterrupted () const |
Returns true if the walk was interrupted. More... | |
bool | wasSkipped () const |
Returns true if the walk was skipped. More... | |
bool | wasAdvancedTo () const |
Returns true if the walk was advanced to user-specified values. More... | |
mlir::ArrayRef< mlir::Value > | getNextValues () const |
Returns the next values to continue the walk with. More... | |
Static Public Member Functions | |
static WalkContinuation | interrupt () |
Creates a continuation that interrupts the walk. More... | |
static WalkContinuation | advanceTo (mlir::ValueRange nextValues) |
Creates a continuation that adds the user-specified nextValues to the work list and advances the walk. More... | |
static WalkContinuation | skip () |
Creates a continuation that advances the walk without adding any predecessor values to the work list. More... | |
A class to signal how to proceed with the walk of the backward slice:
Definition at line 20 of file SliceWalk.h.
|
strong |
Enumerator | |
---|---|
Interrupt | Stops the walk. |
AdvanceTo | Continues the walk to user-specified values. |
Skip | Continues the walk, but skips the predecessors of the current value. |
Definition at line 22 of file SliceWalk.h.
|
inline |
Definition at line 31 of file SliceWalk.h.
Referenced by advanceTo(), interrupt(), and skip().
|
inlineexplicit |
Allows diagnostics to interrupt the walk.
Definition at line 35 of file SliceWalk.h.
|
inlineexplicit |
Allows diagnostics to interrupt the walk.
Definition at line 39 of file SliceWalk.h.
|
inlinestatic |
Creates a continuation that adds the user-specified nextValues
to the work list and advances the walk.
Definition at line 49 of file SliceWalk.h.
References AdvanceTo, and WalkContinuation().
Referenced by getUnderlyingObjectSet().
|
inline |
Returns the next values to continue the walk with.
Definition at line 69 of file SliceWalk.h.
Referenced by mlir::walkSlice().
|
inlinestatic |
Creates a continuation that interrupts the walk.
Definition at line 43 of file SliceWalk.h.
References Interrupt, and WalkContinuation().
Referenced by getUnderlyingObjectSet().
|
inlinestatic |
Creates a continuation that advances the walk without adding any predecessor values to the work list.
Definition at line 55 of file SliceWalk.h.
References Skip, and WalkContinuation().
Referenced by getUnderlyingObjectSet(), and mlir::walkSlice().
|
inline |
Returns true if the walk was advanced to user-specified values.
Definition at line 66 of file SliceWalk.h.
References AdvanceTo.
Referenced by mlir::walkSlice().
|
inline |
Returns true if the walk was interrupted.
Definition at line 60 of file SliceWalk.h.
References Interrupt.
Referenced by getUnderlyingObjectSet(), and mlir::walkSlice().
|
inline |
Returns true if the walk was skipped.
Definition at line 63 of file SliceWalk.h.
References Skip.
Referenced by mlir::walkSlice().