|
MLIR
22.0.0git
|
#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... | |
Definition at line 52 of file Transforms.h.
| Enumerator | |
|---|---|
| MemrefAlloc | |
| MemrefAlloca | |
Definition at line 53 of file Transforms.h.
| Enumerator | |
|---|---|
| MaterializeInDestination | |
| MemrefCopy | |
| LinalgCopy | |
Definition at line 56 of file Transforms.h.
| AllocOp mlir::linalg::BufferizeToAllocationOptions::allocOp = AllocOp::MemrefAlloc |
Definition at line 54 of file Transforms.h.
| 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 66 of file Transforms.h.
| 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 72 of file Transforms.h.
| MemcpyOp mlir::linalg::BufferizeToAllocationOptions::memcpyOp = MemcpyOp::MaterializeInDestination |
Definition at line 61 of file Transforms.h.