|
MLIR 22.0.0git
|
#include "mlir/Dialect/Bufferization/IR/BufferDeallocationOpInterface.h"#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h"#include "mlir/Dialect/MemRef/IR/MemRef.h"#include "mlir/Pass/Pass.h"#include "mlir/Dialect/Bufferization/Transforms/Passes.h.inc"Go to the source code of this file.
Classes | |
| struct | mlir::bufferization::BufferResultsToOutParamsOpts |
Namespaces | |
| namespace | mlir |
| Include the generated interface declarations. | |
| namespace | mlir::func |
| namespace | mlir::bufferization |
Macros | |
| #define | GEN_PASS_DECL |
| #define | GEN_PASS_REGISTRATION |
| Generate the code for registering passes. | |
Typedefs | |
| using | mlir::bufferization::DeallocHelperMap = llvm::DenseMap<Operation *, func::FuncOp> |
| Maps from symbol table to its corresponding dealloc helper function. | |
Functions | |
| void | mlir::bufferization::populateBufferizationDeallocLoweringPattern (RewritePatternSet &patterns, const DeallocHelperMap &deallocHelperFuncMap) |
| Adds the conversion pattern of the bufferization.dealloc operation to the given pattern set for use in other transformation passes. | |
| func::FuncOp | mlir::bufferization::buildDeallocationLibraryFunction (OpBuilder &builder, Location loc, SymbolTable &symbolTable) |
| Construct the library function needed for the fully generic bufferization.dealloc lowering implemented in the LowerDeallocations pass. | |
| LogicalResult | mlir::bufferization::deallocateBuffersOwnershipBased (FunctionOpInterface op, DeallocationOptions options, SymbolTableCollection &symbolTables) |
| Run the ownership-based buffer deallocation. | |
| LogicalResult | mlir::bufferization::promoteBufferResultsToOutParams (ModuleOp module, const BufferResultsToOutParamsOpts &options) |
| Replace buffers that are returned from a function with an out parameter. | |
| LogicalResult | mlir::bufferization::dropEquivalentBufferResults (ModuleOp module) |
| Drop all memref function results that are equivalent to a function argument. | |
| std::unique_ptr< Pass > | mlir::bufferization::createPromoteBuffersToStackPass (std::function< bool(Value)> isSmallAlloc) |
| Creates a pass that promotes heap-based allocations to stack-based ones. | |