MLIR  16.0.0git
Classes | Namespaces | Macros | Functions
Passes.h File Reference
#include "mlir/Pass/Pass.h"
#include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"
+ Include dependency graph for Passes.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mlir::bufferization::BufferResultsToOutParamsOptions
 

Namespaces

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

Macros

#define GEN_PASS_DECL
 
#define GEN_PASS_REGISTRATION
 Generate the code for registering passes. More...
 

Functions

std::unique_ptr< Passmlir::bufferization::createBufferDeallocationPass ()
 Creates an instance of the BufferDeallocation pass to free all allocated buffers. More...
 
LogicalResult mlir::bufferization::deallocateBuffers (Operation *op)
 Run buffer deallocation. More...
 
std::unique_ptr< Passmlir::bufferization::createBufferHoistingPass ()
 Creates a pass that moves allocations upwards to reduce the number of required copies that are inserted during the BufferDeallocation pass. More...
 
std::unique_ptr< Passmlir::bufferization::createBufferLoopHoistingPass ()
 Creates a pass that moves allocations upwards out of loops. More...
 
std::unique_ptr< Passmlir::bufferization::createBufferResultsToOutParamsPass (const BufferResultsToOutParamsOptions &options={})
 Creates a pass that converts memref function results to out-params. More...
 
LogicalResult mlir::bufferization::promoteBufferResultsToOutParams (ModuleOp module, const BufferResultsToOutParamsOptions &options)
 Replace buffers that are returned from a function with an out parameter. More...
 
std::unique_ptr< Passmlir::bufferization::createDropEquivalentBufferResultsPass ()
 Creates a pass that drops memref function results that are equivalent to a function argument. More...
 
std::unique_ptr< Passmlir::bufferization::createEmptyTensorToAllocTensorPass ()
 Create a pass that rewrites tensor.empty to bufferization.alloc_tensor. More...
 
LogicalResult mlir::bufferization::dropEquivalentBufferResults (ModuleOp module)
 Drop all memref function results that are equivalent to a function argument. More...
 
std::unique_ptr< OperationPass< func::FuncOp > > mlir::bufferization::createFinalizingBufferizePass ()
 Creates a pass that finalizes a partial bufferization by removing remaining bufferization.to_tensor and bufferization.to_memref operations. More...
 
std::unique_ptr< Passmlir::bufferization::createOneShotBufferizePass ()
 Create a pass that bufferizes all ops that implement BufferizableOpInterface with One-Shot Bufferize. More...
 
std::unique_ptr< Passmlir::bufferization::createOneShotBufferizePass (const OneShotBufferizationOptions &options)
 Create a pass that bufferizes all ops that implement BufferizableOpInterface with One-Shot Bufferize and the specified bufferization options. More...
 
std::unique_ptr< Passmlir::bufferization::createPromoteBuffersToStackPass (unsigned maxAllocSizeInBytes=1024, unsigned maxRankOfAllocatedMemRef=1)
 Creates a pass that promotes heap-based allocations to stack-based ones. More...
 
std::unique_ptr< Passmlir::bufferization::createPromoteBuffersToStackPass (std::function< bool(Value)> isSmallAlloc)
 Creates a pass that promotes heap-based allocations to stack-based ones. More...
 
std::unique_ptr< Passmlir::bufferization::createEmptyTensorEliminationPass ()
 Create a pass that tries to eliminate tensor.empty ops that are anchored on insert_slice ops. More...
 
std::unique_ptr< Passmlir::bufferization::createBufferizationBufferizePass ()
 Create a pass that bufferizes ops from the bufferization dialect. More...
 
std::unique_ptr< Passmlir::bufferization::createTensorCopyInsertionPass ()
 Create a pass that resolves out-of-place tensor OpOperands with copies. More...
 
std::unique_ptr< Passmlir::bufferization::createTensorCopyInsertionPass (const OneShotBufferizationOptions &options)
 
void mlir::bufferization::registerAllocationOpInterfaceExternalModels (DialectRegistry &registry)
 Register external models for AllocationOpInterface. More...
 

Macro Definition Documentation

◆ GEN_PASS_DECL

#define GEN_PASS_DECL

Definition at line 20 of file Passes.h.

◆ GEN_PASS_REGISTRATION

#define GEN_PASS_REGISTRATION

Generate the code for registering passes.

Definition at line 113 of file Passes.h.