diff options
author | Aart Bik <ajcbik@google.com> | 2021-10-19 21:43:03 -0700 |
---|---|---|
committer | Aart Bik <ajcbik@google.com> | 2021-10-20 12:46:31 -0700 |
commit | bd5494d127a39f619b7d0e5e967f190e0e61d6e7 (patch) | |
tree | 08987178a88fa71ef80025e801ac23c55b415e61 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 35037ae1971a92b07783339ee9d7a5da50a2ab4b (diff) | |
download | llvm-bd5494d127a39f619b7d0e5e967f190e0e61d6e7.zip llvm-bd5494d127a39f619b7d0e5e967f190e0e61d6e7.tar.gz llvm-bd5494d127a39f619b7d0e5e967f190e0e61d6e7.tar.bz2 |
[mlir][sparse] make index type explicit in public API of support library
The current implementation used explicit index->int64_t casts for some, but
not all instances of passing values of type "index" in and from the sparse
support library. This revision makes the situation more consistent by
using new "index_t" type at all such places (which allows for less trivial
casting in the generated MLIR code). Note that the current revision still
assumes that "index" is 64-bit wide. If we want to support targets with
alternative "index" bit widths, we need to build the support library different.
But the current revision is a step forward by making this requirement explicit
and more visible.
Reviewed By: wrengr
Differential Revision: https://reviews.llvm.org/D112122
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions