This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] Adding safe comparison functions to MLIRSparseTensorRuntime.
ClosedPublic

Authored by wrengr on Nov 16 2022, 1:00 PM.

Details

Summary

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

Diff Detail

mlir/include/mlir/ExecutionEngine/SparseTensor/ArithmeticUtils.h