MLIR 22.0.0git
Transforms.h File Reference

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::bufferization

Typedefs

using mlir::bufferization::ControlBuildSubsetExtractionFn
 A function type that defines a callback to control the construction of the subset extraction of the SubsetInsertionOpInterface.

Functions

LogicalResult mlir::bufferization::eliminateEmptyTensors (RewriterBase &rewriter, Operation *op)
 Try to eliminate "tensor.empty" ops inside op.
Value mlir::bufferization::buildSubsetExtraction (RewriterBase &rewriter, SubsetInsertionOpInterface op, tensor::EmptyOp emptyTensorOp, Operation *user)
 This method builds and returns a subset extraction value for the destination tensor that the given op inserts into.
LogicalResult mlir::bufferization::eliminateEmptyTensors (RewriterBase &rewriter, Operation *op, OneShotAnalysisState &state, ControlBuildSubsetExtractionFn subsetsExtractionFn=buildSubsetExtraction)
 Try to eliminate "tensor.empty" ops inside op.
void mlir::bufferization::hoistBuffersFromLoops (Operation *op)
 Within the given operation, hoist buffers from loops where possible.
LogicalResult mlir::bufferization::insertTensorCopies (Operation *op, const OneShotBufferizationOptions &options, const BufferizationState &bufferizationState, BufferizationStatistics *statistics=nullptr)
 Resolve RaW and other conflicts by inserting bufferization.alloc_tensor ops.
LogicalResult mlir::bufferization::insertTensorCopies (Operation *op, const AnalysisState &analysisState, const BufferizationState &bufferizationState)
 Resolve RaW and other conflicts by inserting bufferization.alloc_tensor ops.
void mlir::bufferization::populateEmptyTensorToAllocTensorPattern (RewritePatternSet &patterns)
 Populate patterns to lower tensor.empty ops to bufferization.alloc_tensor ops.