MLIR  19.0.0git
Public Types | Public Member Functions | Public Attributes | List of all members
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. More...
 

Public Member Functions

 SliceOptions ()
 
 SliceOptions (TransitiveFilter filter)
 

Public Attributes

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

Detailed Description

Definition at line 24 of file SliceAnalysis.h.

Member Typedef Documentation

◆ TransitiveFilter

using mlir::SliceOptions::TransitiveFilter = std::function<bool(Operation *)>

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 29 of file SliceAnalysis.h.

Constructor & Destructor Documentation

◆ SliceOptions() [1/2]

mlir::SliceOptions::SliceOptions ( )
inline

Definition at line 36 of file SliceAnalysis.h.

◆ SliceOptions() [2/2]

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

Definition at line 37 of file SliceAnalysis.h.

Member Data Documentation

◆ filter

TransitiveFilter mlir::SliceOptions::filter = nullptr

Definition at line 30 of file SliceAnalysis.h.

Referenced by computeBackwardSlice(), and dependsOnCarriedVals().

◆ inclusive

bool mlir::SliceOptions::inclusive = false

Include the top level op in the slice.

Definition at line 33 of file SliceAnalysis.h.


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