|
MLIR 22.0.0git
|
#include "mlir/Dialect/Bufferization/Transforms/Passes.h"
Public Types | |
| using | AllocationFn |
| Allocator function: Generate a memref allocation with the given type. | |
| using | MemCpyFn |
| Memcpy function: Generate a memcpy between two memrefs. | |
Public Attributes | |
| std::function< bool(func::FuncOp *)> | filterFn |
| AllocationFn | allocationFn |
| Allocation function; used to allocate a memref. | |
| MemCpyFn | memCpyFn |
| Memcpy function; used to create a copy between two memrefs. | |
| bool | addResultAttribute = false |
| If true, the pass adds a "bufferize.result" attribute to each output parameter. | |
| bool | hoistStaticAllocs = false |
| If true, the pass eliminates the memref.alloc and memcpy if the returned memref is allocated in the current function. | |
| bool | hoistDynamicAllocs = false |
| If true, the pass eliminates the memref.alloc and memcpy if the returned memref is allocated in the current function and has dynamic shape. | |
Allocator function: Generate a memref allocation with the given type.
Since promoteBufferResultsToOutParams doesn't allow dynamically shaped results, we don't allow passing a range of values for dynamic dims.
Memcpy function: Generate a memcpy between two memrefs.
| AllocationFn mlir::bufferization::BufferResultsToOutParamsOpts::allocationFn |
Allocation function; used to allocate a memref.
Default memref.alloc is used
| std::function<bool(func::FuncOp *)> mlir::bufferization::BufferResultsToOutParamsOpts::filterFn |
| MemCpyFn mlir::bufferization::BufferResultsToOutParamsOpts::memCpyFn |