aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorwren romano <2998727+wrengr@users.noreply.github.com>2022-12-01 18:18:33 -0800
committerwren romano <2998727+wrengr@users.noreply.github.com>2022-12-02 11:10:57 -0800
commit2af2e4dbb790daafd3cbbf6189a7a27145cf4c12 (patch)
treec549b58347ebd2adf9b2554129cd2b7f34039e41 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parentca23b7ca476fb66771d1c6d02c6837938fde6c7e (diff)
downloadllvm-2af2e4dbb790daafd3cbbf6189a7a27145cf4c12.zip
llvm-2af2e4dbb790daafd3cbbf6189a7a27145cf4c12.tar.gz
llvm-2af2e4dbb790daafd3cbbf6189a7a27145cf4c12.tar.bz2
[mlir][sparse] Breaking up openSparseTensor to better support non-permutations
This commit updates how the `SparseTensorConversion` pass handles `NewOp`. It breaks up the underlying `openSparseTensor` function into two parts (`SparseTensorReader::create` and `SparseTensorReader::readSparseTensor`) so that the pass can inject code for constructing `lvlSizes` between those two parts. Migrating the construction of `lvlSizes` out of the runtime and into the pass is a necessary first step toward fully supporting non-permutations. (The alternative would be for the pass to generate a `FuncOp` for performing the construction and then passing that to the runtime; which doesn't seem to have any benefits over the design of this commit.) And since the pass now generates the code to call these two functions, this change also removes the `Action::kFromFile` value from the enum used by `_mlir_ciface_newSparseTensor`. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138363
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions