[mlir][sparse] template the memory resident coordinate scheme storage
authorAart Bik <ajcbik@google.com>
Fri, 30 Jul 2021 16:48:41 +0000 (09:48 -0700)
committerAart Bik <ajcbik@google.com>
Fri, 30 Jul 2021 18:21:05 +0000 (11:21 -0700)
commit1d77bb9e1b82fe35688416ff0987dd9f82eb2d2d
tree65bb2d5c22a61a30103a1408e076697e7c48288f
parentfe23f0c73ab774e8765d221bdef3060c59294a02
[mlir][sparse] template the memory resident coordinate scheme storage

Rationale:
External file formats always store the values as doubles, so this was
hard coded in the memory resident COO scheme used to pass data into the
final sparse storage scheme during setup. However, with alternative methods
on the horizon of setting up these temporary COO schemes, it is time to
properly template this data structure.

Reviewed By: gussmith23

Differential Revision: https://reviews.llvm.org/D107001
mlir/lib/ExecutionEngine/SparseUtils.cpp