Kazu Hirata
91682b2631
Remove redundant initialization of std::optional (NFC)
2023-01-14 14:06:18 -08:00
Kazu Hirata
0a81ace004
[mlir] Use std::optional instead of llvm::Optional (NFC)
...
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to remove #include "llvm/ADT/Optional.h".
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-14 01:25:58 -08:00
Kazu Hirata
a1fe1f5f77
[mlir] Add #include <optional> (NFC)
...
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-13 21:05:06 -08:00
bixia1
52028c1a48
[mlir][sparse] Generate AOS subviews on-demand.
...
Previously, we generate AOS subviews for indices buffers when constructing an
immutable sparse tensor descriptor. We now only generate such subviews when
getIdxMemRefOrView is requested.
Reviewed By: Peiming
Differential Revision: https://reviews.llvm.org/D141325
2023-01-11 08:57:01 -08:00
bixia1
3fdd85da06
[mlir][sparse] Add AOS optimization.
...
Use an array of structures to represent the indices for the tailing COO region
of a sparse tensor.
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D140870
2023-01-04 18:16:04 -08:00
Aart Bik
e568d0016e
[mlir][sparse] minor code layout edits
...
Reviewed By: bixia
Differential Revision: https://reviews.llvm.org/D140934
2023-01-04 09:56:16 -08:00
Peiming Liu
988733c600
[mlir][sparse] use sparse_tensor::StorageSpecifier to store dim/memSizes
...
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D140130
2022-12-23 00:47:36 +00:00
Peiming Liu
083ddffe47
[mlir][sparse] introduce sparse_tensor::StorageSpecifierToLLVM pass
...
Reviewed By: aartbik
Differential Revision: https://reviews.llvm.org/D140122
2022-12-22 22:45:15 +00:00