MLIR  19.0.0git
Public Types | Public Attributes | List of all members
mlir::linalg::BufferizeToAllocationOptions Struct Reference

#include "mlir/Dialect/Linalg/Transforms/Transforms.h"

Public Types

enum class  AllocOp { MemrefAlloc = 0 , MemrefAlloca = 1 }
 
enum class  MemcpyOp { MaterializeInDestination = 0 , MemrefCopy = 1 , LinalgCopy = 2 }
 

Public Attributes

AllocOp allocOp = AllocOp::MemrefAlloc
 
MemcpyOp memcpyOp = MemcpyOp::MaterializeInDestination
 
bool bufferizeDestinationOnly = false
 If set to "true", only the destination tensor operands are bufferized to a new allocation (and wrapped in "bufferization.to_tensor"), but not the targeted op itself. More...
 
bool emitDealloc = false
 If set to "true", a memref.dealloc operation will be emitted for each allocated buffer. More...
 

Detailed Description

Definition at line 51 of file Transforms.h.

Member Enumeration Documentation

◆ AllocOp

Enumerator
MemrefAlloc 
MemrefAlloca 

Definition at line 52 of file Transforms.h.

◆ MemcpyOp

Enumerator
MaterializeInDestination 
MemrefCopy 
LinalgCopy 

Definition at line 55 of file Transforms.h.

Member Data Documentation

◆ allocOp

AllocOp mlir::linalg::BufferizeToAllocationOptions::allocOp = AllocOp::MemrefAlloc

Definition at line 53 of file Transforms.h.

◆ bufferizeDestinationOnly

bool mlir::linalg::BufferizeToAllocationOptions::bufferizeDestinationOnly = false

If set to "true", only the destination tensor operands are bufferized to a new allocation (and wrapped in "bufferization.to_tensor"), but not the targeted op itself.

Definition at line 65 of file Transforms.h.

◆ emitDealloc

bool mlir::linalg::BufferizeToAllocationOptions::emitDealloc = false

If set to "true", a memref.dealloc operation will be emitted for each allocated buffer.

Otherwise, the memory is leaked, which is useful if the buffer deallocation pipeline should be run after bufferization is done.

Definition at line 71 of file Transforms.h.

◆ memcpyOp

MemcpyOp mlir::linalg::BufferizeToAllocationOptions::memcpyOp = MemcpyOp::MaterializeInDestination

Definition at line 60 of file Transforms.h.


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