llvm-project/mlir/lib/ExecutionEngine
wren romano a3e4888350 [mlir][sparse] Macros to clean up StridedMemRefType in the SparseTensorRuntime
In particular, this silences warnings from [-Wsign-compare].

This is a revised version of D137735, which got reverted due to a sign-comparison warning on LLVM's Windows buildbot (which was not on MLIR's Windows buildbot).  Differences vs the previous differential:

* `vectorToMemref` now uses `detail::checkOverflowCast` to silence the warning that caused the the previous differential to get reverted.
* `MEMREF_GET_USIZE` now uses `detail::checkOverflowCast` rather than `static_cast`
* `ASSERT_USIZE_EQ` added to abbreviate another common idiom, and to ensure that we use `detail::safelyEQ` everywhere (to silence a few other warnings)
* A couple for-loops now use `index_type` for the induction variable, since their upper bound uses that typedef too. (Namely `_mlir_ciface_getSparseTensorReaderDimSizes` and `_mlir_ciface_outSparseTensorWriterNext`)

Depends on D138149

Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D137998
2022-11-16 16:40:13 -08:00
..
SparseTensor [mlir][sparse] Making way for SparseTensorRuntime to support non-permutations 2022-11-14 13:48:41 -08:00
AsyncRuntime.cpp [async] Get the number of worker threads from the runtime. 2022-01-31 12:06:01 -08:00
CMakeLists.txt [mlir][sparse] Factoring out SparseTensorEnums library 2022-10-18 14:20:33 -07:00
CRunnerUtils.cpp Apply clang-tidy fixes for readability-identifier-naming in CRunnerUtils.cpp (NFC) 2022-09-08 00:05:22 +00:00
CudaRuntimeWrappers.cpp Revert "Fix CUDA runtime wrapper for GPU mem alloc/free to async" 2022-04-12 06:50:27 +00:00
ExecutionEngine.cpp Apply clang-tidy fixes for readability-container-size-empty in ExecutionEngine.cpp (NFC) 2022-11-12 23:47:38 +00:00
Float16bits.cpp [mlir][sparse] refactoring SparseTensorUtils: (1 of 4) file-splitting 2022-09-29 14:35:27 -07:00
JitRunner.cpp [MLIR] Move JitRunner Options to header, pass to mlirTransformer 2022-11-13 18:55:48 +00:00
OptUtils.cpp [mlir] Use the same pipeline tuning options as clang for execution engine 2022-11-02 15:07:01 +01:00
RocmRuntimeWrappers.cpp [mlir][ExecutionEngine] Remove ScopedContext from ROCm wrappers 2022-09-27 16:56:12 +00:00
RunnerUtils.cpp Revert "[MLIR] Generic 'malloc', 'aligned_alloc' and 'free' functions" 2022-07-18 18:07:36 +00:00
SparseTensorRuntime.cpp [mlir][sparse] Macros to clean up StridedMemRefType in the SparseTensorRuntime 2022-11-16 16:40:13 -08:00