Since https://reviews.llvm.org/D142053, building mlir with clang using -Werror
fails reporting comparison of integers with different signs.
Fix this by using (unsigned) size_t instead of (signed) int64_t for comparisons
with other size_t values.
Differential D142201
[mlir][Linalg] Use unsigned return type for RelayoutOp::getSourceRank,getDestRank tblah on Jan 20 2023, 4:24 AM. Authored by
Details Since https://reviews.llvm.org/D142053, building mlir with clang using -Werror Fix this by using (unsigned) size_t instead of (signed) int64_t for comparisons
Diff Detail
Event TimelineComment Actions Agree, let's fix getSourceRank and getDestRank. The change should be simple: https://github.com/llvm/llvm-project/blob/b0d575310f2ee660dadfdaf1e06bac148a575754/mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td#L1670 Do you want to give it a try? Comment Actions Updated getSourceRank and getDestRank to return size_t to avoid comparison |