MLIR 22.0.0git
SliceAnalysis.h File Reference
#include <functional>
#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

namespace  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.
void mlir::getForwardSlice (Value root, SetVector< Operation * > *forwardSlice, const ForwardSliceOptions &options={})
 Value-rooted version of getForwardSlice.
LogicalResult mlir::getBackwardSlice (Operation *op, SetVector< Operation * > *backwardSlice, const BackwardSliceOptions &options={})
 Fills backwardSlice with the computed backward slice (i.e.
LogicalResult mlir::getBackwardSlice (Value root, SetVector< Operation * > *backwardSlice, const BackwardSliceOptions &options={})
 Value-rooted version of getBackwardSlice.
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.
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.