9#ifndef MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATION_H_
10#define MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATION_H_
23#include "mlir/Dialect/Bufferization/IR/BufferizationOpsDialect.h.inc"
30#include "mlir/Dialect/Bufferization/IR/BufferizationOps.h.inc"
37namespace bufferization {
68 MLIRContext *context);
static llvm::ManagedStatic< PassManagerOptions > options
void populateDeallocOpCanonicalizationPatterns(RewritePatternSet &patterns, MLIRContext *context)
Add the canonicalization patterns for bufferization.dealloc to the given pattern set to make them ava...
FailureOr< Value > castOrReallocMemRefValue(OpBuilder &b, Value value, MemRefType type, const BufferizationOptions &options)
Try to cast the given ranked MemRef-typed value to the given ranked MemRef type.
LogicalResult foldToBufferToTensorPair(RewriterBase &rewriter, ToBufferOp toBuffer, const BufferizationOptions &options)
Try to fold to_buffer(to_tensor(x)).
void populateDynamicDimSizes(OpBuilder &b, Location loc, Value shapedValue, SmallVector< Value > &dynamicDims)
Populate dynamicDims with tensor::DimOp / memref::DimOp results for all dynamic dimensions of the giv...
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns