MLIR  20.0.0git
Public Types | Public Attributes | List of all members
mlir::bufferization::BufferResultsToOutParamsOpts Struct Reference

#include "mlir/Dialect/Bufferization/Transforms/Passes.h"

Public Types

using MemCpyFn = std::function< LogicalResult(OpBuilder &, Location, Value, Value)>
 Memcpy function: Generate a memcpy between two memrefs. More...
 

Public Attributes

llvm::function_ref< bool(func::FuncOp *)> filterFn
 
std::optional< MemCpyFnmemCpyFn
 Memcpy function; used to create a copy between two memrefs. More...
 
bool addResultAttribute = false
 If true, the pass adds a "bufferize.result" attribute to each output parameter. More...
 
bool hoistStaticAllocs = false
 If true, the pass eliminates the memref.alloc and memcpy if the returned memref is allocated in the current function. More...
 

Detailed Description

Definition at line 159 of file Passes.h.

Member Typedef Documentation

◆ MemCpyFn

Memcpy function: Generate a memcpy between two memrefs.

Definition at line 161 of file Passes.h.

Member Data Documentation

◆ addResultAttribute

bool mlir::bufferization::BufferResultsToOutParamsOpts::addResultAttribute = false

If true, the pass adds a "bufferize.result" attribute to each output parameter.

Definition at line 176 of file Passes.h.

◆ filterFn

llvm::function_ref<bool(func::FuncOp *)> mlir::bufferization::BufferResultsToOutParamsOpts::filterFn
Initial value:
= [](func::FuncOp *func) {
return true;
}

Definition at line 166 of file Passes.h.

◆ hoistStaticAllocs

bool mlir::bufferization::BufferResultsToOutParamsOpts::hoistStaticAllocs = false

If true, the pass eliminates the memref.alloc and memcpy if the returned memref is allocated in the current function.

Definition at line 180 of file Passes.h.

◆ memCpyFn

std::optional<MemCpyFn> mlir::bufferization::BufferResultsToOutParamsOpts::memCpyFn

Memcpy function; used to create a copy between two memrefs.

If this is empty, memref.copy is used.

Definition at line 172 of file Passes.h.


The documentation for this struct was generated from the following file: