MLIR 22.0.0git
mlir::SliceOptions Struct Reference

#include "mlir/Analysis/SliceAnalysis.h"

Inheritance diagram for mlir::SliceOptions:

Public Types

using TransitiveFilter = std::function<bool(Operation *)>
 Type of the condition to limit the propagation of transitive use-defs.

Public Member Functions

 SliceOptions ()
 SliceOptions (TransitiveFilter filter)

Public Attributes

TransitiveFilter filter = nullptr
bool inclusive = false
 Include the top level op in the slice.

Detailed Description

Definition at line 23 of file SliceAnalysis.h.

Member Typedef Documentation

◆ TransitiveFilter

Type of the condition to limit the propagation of transitive use-defs.

This can be used in particular to limit the propagation to a given Scope or to avoid passing through certain types of operation in a configurable manner.

Definition at line 28 of file SliceAnalysis.h.

Constructor & Destructor Documentation

◆ SliceOptions() [1/2]

mlir::SliceOptions::SliceOptions ( )
inline

Definition at line 35 of file SliceAnalysis.h.

◆ SliceOptions() [2/2]

mlir::SliceOptions::SliceOptions ( TransitiveFilter filter)
inline

Definition at line 36 of file SliceAnalysis.h.

References filter.

Member Data Documentation

◆ filter

TransitiveFilter mlir::SliceOptions::filter = nullptr

◆ inclusive

bool mlir::SliceOptions::inclusive = false

Include the top level op in the slice.

Definition at line 32 of file SliceAnalysis.h.

Referenced by computeBackwardSlice().


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