MLIR  19.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...
 

Detailed Description

Definition at line 151 of file Passes.h.

Member Typedef Documentation

◆ MemCpyFn

Memcpy function: Generate a memcpy between two memrefs.

Definition at line 153 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 168 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 158 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 164 of file Passes.h.


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