[mlir][sparse] refined doc of sparse tensor ops

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D133086
This commit is contained in:
Aart Bik 2022-08-31 20:31:24 -07:00
parent 1be09496bf
commit f981121a66
1 changed files with 9 additions and 9 deletions

View File

@ -100,8 +100,8 @@ def SparseTensor_ToPointersOp : SparseTensor_Op<"pointers", [NoSideEffect]>,
`bufferization.to_memref` operation in the sense that it provides a bridge `bufferization.to_memref` operation in the sense that it provides a bridge
between a tensor world view and a bufferized world view. Unlike the between a tensor world view and a bufferized world view. Unlike the
`bufferization.to_memref` operation, however, this sparse operation actually `bufferization.to_memref` operation, however, this sparse operation actually
lowers into a call into a support library to obtain access to the lowers into code that extracts the pointers array from the sparse storage
pointers array. scheme (either by calling a support library or through direct code).
Example: Example:
@ -125,8 +125,8 @@ def SparseTensor_ToIndicesOp : SparseTensor_Op<"indices", [NoSideEffect]>,
`bufferization.to_memref` operation in the sense that it provides a bridge `bufferization.to_memref` operation in the sense that it provides a bridge
between a tensor world view and a bufferized world view. Unlike the between a tensor world view and a bufferized world view. Unlike the
`bufferization.to_memref` operation, however, this sparse operation actually `bufferization.to_memref` operation, however, this sparse operation actually
lowers into a call into a support library to obtain access to the lowers into code that extracts the indices array from the sparse storage
indices array. scheme (either by calling a support library or through direct code).
Example: Example:
@ -150,8 +150,8 @@ def SparseTensor_ToValuesOp : SparseTensor_Op<"values", [NoSideEffect]>,
the `bufferization.to_memref` operation in the sense that it provides a bridge the `bufferization.to_memref` operation in the sense that it provides a bridge
between a tensor world view and a bufferized world view. Unlike the between a tensor world view and a bufferized world view. Unlike the
`bufferization.to_memref` operation, however, this sparse operation actually `bufferization.to_memref` operation, however, this sparse operation actually
lowers into a call into a support library to obtain access to the lowers into code that extracts the values array from the sparse storage
values array. scheme (either by calling a support library or through direct code).
Example: Example:
@ -195,8 +195,9 @@ def SparseTensor_ConcatenateOp : SparseTensor_Op<"concatenate", []>,
// Sparse Tensor Management Operations. These operations are "impure" in the // Sparse Tensor Management Operations. These operations are "impure" in the
// sense that they do not properly operate on SSA values. Instead, the behavior // sense that they do not properly operate on SSA values. Instead, the behavior
// is solely defined by side-effects. These operations provide a bridge between // is solely defined by side-effects. These operations provide a bridge between
// the code generator and the support library. The semantics of these operations // "sparsification" on one hand and a support library or actual code generation
// may be refined over time as our sparse abstractions evolve. // on the other hand. The semantics of these operations may be refined over time
// as our sparse abstractions evolve.
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
def SparseTensor_LexInsertOp : SparseTensor_Op<"lex_insert", []>, def SparseTensor_LexInsertOp : SparseTensor_Op<"lex_insert", []>,
@ -675,5 +676,4 @@ def SparseTensor_StorageSetOp : SparseTensor_Op<"storage_set", []>,
let hasVerifier = 1; let hasVerifier = 1;
} }
#endif // SPARSETENSOR_OPS #endif // SPARSETENSOR_OPS