aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorBixia Zheng <bixia@google.com>2021-09-24 23:19:07 -0700
committerBixia Zheng <bixia@google.com>2021-09-27 09:47:29 -0700
commitfbd5821c6f2c516a64602839745ddc6f9566f710 (patch)
treebebfa751f81d6f5f8586b39a1128e6d5d9d5bc93 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent5357a98c823a5262814e269db265b5d8e1f2c4f2 (diff)
downloadllvm-fbd5821c6f2c516a64602839745ddc6f9566f710.zip
llvm-fbd5821c6f2c516a64602839745ddc6f9566f710.tar.gz
llvm-fbd5821c6f2c516a64602839745ddc6f9566f710.tar.bz2
Implement the conversion from sparse constant to sparse tensors.
The sparse constant provides a constant tensor in coordinate format. We first split the sparse constant into a constant tensor for indices and a constant tensor for values. We then generate a loop to fill a sparse tensor in coordinate format using the tensors for the indices and the values. Finally, we convert the sparse tensor in coordinate format to the destination sparse tensor format. Add tests. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D110373
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions