diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td --- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td +++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationBase.td @@ -17,10 +17,12 @@ let description = [{ Bufferization in MLIR is the process of converting the `tensor` type to the `memref` type. - The `bufferization` dialect is intended to collect operations/interfaces - specific to the bufferization passes. + Simply put, bufferization is the process of converting computations on the + mathematical tensor construct to computations on physical memory buffers. + The `bufferization` dialect contains operations/interfaces specific to the + bufferization passes. - Overview of the bufferization infrastructure and important conceptual + An overview of the bufferization infrastructure and important conceptual details related to using the MLIR dialect conversion infrastructure can be found in [bufferization](/docs/Bufferization/) and [buffer deallocation](/docs/BufferDeallocationInternals/). diff --git a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td --- a/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td +++ b/mlir/include/mlir/Dialect/Bufferization/IR/BufferizationOps.td @@ -26,7 +26,7 @@ def Bufferization_AllocTensorOp : Bufferization_Op<"alloc_tensor", [AttrSizedOperandSegments, BufferizableOpInterface, DeclareOpInterfaceMethods]> { - let summary = "buffer allocation in tensor land"; + let summary = "allocate buffer for a tensor"; let description = [{ `bufferization.alloc_tensor` materializes an uninitialized tensor with a @@ -172,6 +172,7 @@ return build($_builder, $_state, value.getType(), value); }]>]; + let summary = "clone a memref"; let description = [{ Clones the data in the input view into an implicitly defined output view. @@ -207,7 +208,7 @@ def Bufferization_DeallocTensorOp : Bufferization_Op<"dealloc_tensor", [BufferizableOpInterface]> { - string summary = "Releases underlying sparse storage format of given tensor"; + string summary = "release underlying storage format of given tensor"; string description = [{ `bufferization.dealloc_tensor` is a buffer deallocation in tensor land. This op can be used for manual buffer deallocation. Some bufferizations (such as @@ -270,7 +271,7 @@ "memref", "result", "memref::getTensorTypeFromMemRefType($_self)"> ]> { - let summary = "memref to tensor operation"; + let summary = "create a tensor from a `memref`"; let description = [{ An operation that creates a tensor from a `memref`. The result value is a tensor whose shape and element type match the memref operand. @@ -369,7 +370,7 @@ "memref", "tensor", "memref::getTensorTypeFromMemRefType($_self)"> ]> { - let summary = "tensor to memref cast operation"; + let summary = "cast a tensor to memref"; let description = [{ An operation that returns the future buffer of a `tensor`.