[mlir][sparse] Adding safe comparison functions to MLIRSparseTensorRuntime.
authorwren romano <2998727+wrengr@users.noreply.github.com>
Wed, 16 Nov 2022 20:59:54 +0000 (12:59 -0800)
committerwren romano <2998727+wrengr@users.noreply.github.com>
Thu, 17 Nov 2022 00:16:46 +0000 (16:16 -0800)
commit9d862992d1bafc0a0d9ebe5941ddb8d3fef39b0b
tree085315cee185361a1cace24e83e66f4d44b8e3ea
parentd62d2783f7f6d8e18648732fd65a03bc414a4578
[mlir][sparse] Adding safe comparison functions to MLIRSparseTensorRuntime.

Different platforms use different signedness for `StridedMemRefType::sizes` and `std::vector::size_type`, and this has been causing a lot of portability issues re [-Wsign-compare] warnings.  These new functions ensure that we need never worry about those signedness warnings ever again.

Also merging CheckedMul.h into ArithmeticUtils.h

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D138149
mlir/include/mlir/ExecutionEngine/SparseTensor/ArithmeticUtils.h [new file with mode: 0644]
mlir/include/mlir/ExecutionEngine/SparseTensor/CheckedMul.h [deleted file]
mlir/include/mlir/ExecutionEngine/SparseTensor/Storage.h
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel