MLIR  19.0.0git
Classes | Namespaces | Typedefs | Functions
SliceAnalysis.h File Reference
#include <functional>
#include <vector>
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/SetVector.h"

Go to the source code of this file.

Classes

struct  mlir::SliceOptions
 
struct  mlir::BackwardSliceOptions
 

Namespaces

 mlir
 Include the generated interface declarations.
 

Typedefs

using mlir::TransitiveFilter = SliceOptions::TransitiveFilter
 
using mlir::ForwardSliceOptions = SliceOptions
 

Functions

void mlir::getForwardSlice (Operation *op, SetVector< Operation * > *forwardSlice, const ForwardSliceOptions &options={})
 Fills forwardSlice with the computed forward slice (i.e. More...
 
void mlir::getForwardSlice (Value root, SetVector< Operation * > *forwardSlice, const ForwardSliceOptions &options={})
 Value-rooted version of getForwardSlice. More...
 
void mlir::getBackwardSlice (Operation *op, SetVector< Operation * > *backwardSlice, const BackwardSliceOptions &options={})
 Fills backwardSlice with the computed backward slice (i.e. More...
 
void mlir::getBackwardSlice (Value root, SetVector< Operation * > *backwardSlice, const BackwardSliceOptions &options={})
 Value-rooted version of getBackwardSlice. More...
 
SetVector< Operation * > mlir::getSlice (Operation *op, const BackwardSliceOptions &backwardSliceOptions={}, const ForwardSliceOptions &forwardSliceOptions={})
 Iteratively computes backward slices and forward slices until a fixed point is reached. More...
 
SetVector< Operation * > mlir::topologicalSort (const SetVector< Operation * > &toSort)
 Multi-root DAG topological sort. More...
 
Value mlir::matchReduction (ArrayRef< BlockArgument > iterCarriedArgs, unsigned redPos, SmallVectorImpl< Operation * > &combinerOps)
 Utility to match a generic reduction given a list of iteration-carried arguments, iterCarriedArgs and the position of the potential reduction argument within the list, redPos. More...