mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-28 12:30:22 +00:00
[mlir][linalg] Fix signed/unsigned comparison warnings (NFC).
Fix signedness warnings in Utils.cpp and LinalgInterfaces.cpp.
This commit is contained in:
parent
d4c070d801
commit
07576cc4dc
@ -343,7 +343,8 @@ LogicalResult mlir::linalg::detail::verifyStructuredOpInterface(Operation *op) {
|
||||
return failure();
|
||||
|
||||
// All shaped operands must be indexed.
|
||||
if (linalgOp.indexing_maps().size() != linalgOp.getNumInputsAndOutputs())
|
||||
if (static_cast<int64_t>(linalgOp.indexing_maps().size()) !=
|
||||
linalgOp.getNumInputsAndOutputs())
|
||||
return op->emitOpError("expected the number of indexing_map (")
|
||||
<< linalgOp.indexing_maps().size()
|
||||
<< ") to be equal to the number of input/output operands ("
|
||||
|
@ -534,7 +534,8 @@ SmallVector<Value, 4> makeTiledShapes(OpBuilder &b, Location loc,
|
||||
LLVM_DEBUG(llvm::dbgs() << "size: " << subShapeSizes.back() << "\n");
|
||||
}
|
||||
|
||||
assert(valuesToTile.size() == linalgOp.getNumInputsAndOutputs() &&
|
||||
assert(static_cast<int64_t>(valuesToTile.size()) ==
|
||||
linalgOp.getNumInputsAndOutputs() &&
|
||||
"expected one value to tile for every operand");
|
||||
MLIRContext *context = b.getContext();
|
||||
SmallVector<Value, 4> tiledShapes;
|
||||
|
Loading…
x
Reference in New Issue
Block a user