MLIR  15.0.0git
Classes | Namespaces | Enumerations | Functions
BufferizableOpInterface.h File Reference
#include "mlir/IR/Operation.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Support/LLVM.h"
#include "llvm/ADT/SetVector.h"
#include "mlir/Dialect/Bufferization/IR/BufferizableOpInterface.h.inc"
+ Include dependency graph for BufferizableOpInterface.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  mlir::bufferization::OpFilter
 
struct  mlir::bufferization::OpFilter::Entry
 An op filter entry. More...
 
struct  mlir::bufferization::BufferizationOptions
 Options for BufferizableOpInterface-based bufferization. More...
 
struct  mlir::bufferization::DialectAnalysisState
 Dialect-specific analysis state. More...
 
class  mlir::bufferization::AnalysisState
 AnalysisState provides a variety of helper functions for dealing with tensor values. More...
 
struct  mlir::bufferization::BufferizationState
 BufferizationState provides helper functions for performing bufferization rewrites and handling memref buffers. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::bufferization
 

Enumerations

enum  mlir::bufferization::BufferRelation { mlir::bufferization::BufferRelation::None, mlir::bufferization::BufferRelation::Equivalent }
 Specify fine-grain relationship between buffers to enable more analysis. More...
 

Functions

bool mlir::bufferization::isFunctionArgument (Value value)
 Return true if the given value is a BlockArgument of a func::FuncOp. More...
 
void mlir::bufferization::replaceOpWithBufferizedValues (RewriterBase &rewriter, Operation *op, ValueRange values)
 Replace an op with replacement values. More...
 
Value mlir::bufferization::lookupBuffer (RewriterBase &rewriter, Value tensor, const BufferizationOptions &options)
 Lookup the buffer for the given value. More...
 
template<typename OpTy , typename... Args>
OpTy mlir::bufferization::replaceOpWithNewBufferizedOp (RewriterBase &rewriter, Operation *op, Args &&...args)
 Replace an op with a new op. More...
 
BaseMemRefType mlir::bufferization::getMemRefType (TensorType tensorType, const BufferizationOptions &options, MemRefLayoutAttrInterface layout={}, Attribute memorySpace={})
 Return a MemRefType to which the tensorType can be bufferized. More...
 
BaseMemRefType mlir::bufferization::getMemRefTypeWithFullyDynamicLayout (TensorType tensorType, Attribute memorySpace={})
 Return a MemRef type with fully dynamic layout. More...
 
BaseMemRefType mlir::bufferization::getMemRefTypeWithStaticIdentityLayout (TensorType tensorType, Attribute memorySpace={})
 Return a MemRef type with a static identity layout (i.e., no layout map). More...
 
LogicalResult mlir::bufferization::createAllocDeallocOps (Operation *op, const BufferizationOptions &options, bool onlyLeakingAllocs=false, bool *changed=nullptr)
 Create alloc/dealloc ops as specified in the bufferization options. More...