9 #ifndef MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATION_H_ 10 #define MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATION_H_ 21 #include "mlir/Dialect/Bufferization/IR/BufferizationOpsDialect.h.inc" 27 #define GET_OP_CLASSES 28 #include "mlir/Dialect/Bufferization/IR/BufferizationOps.h.inc" 35 namespace bufferization {
39 SmallVector<Value> &dynamicDims);
63 #endif // MLIR_DIALECT_BUFFERIZATION_IR_BUFFERIZATION_H_ Include the generated interface declarations.
static constexpr const bool value
LogicalResult foldToMemrefToTensorPair(RewriterBase &rewriter, ToMemrefOp toMemref)
Try to fold to_memref(to_tensor(x)).
FailureOr< Value > castOrReallocMemRefValue(OpBuilder &b, Value value, MemRefType type)
Try to cast the given ranked MemRef-typed value to the given ranked MemRef type.
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...