Skip to content

Commit 6aa5e85

Browse files
committed
lint
1 parent ea09052 commit 6aa5e85

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

mlir/include/mlir/Dialect/Linalg/IR/LinalgRelayoutOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def Linalg_PackOp : Linalg_RelayoutOp<"pack", [
204204
return cast<ShapedType>(getInput().getType());
205205
}
206206
ShapedType getOutputType() {
207-
return cast<ShapedType>(getDest().getType()); // getDest() 사용
207+
return cast<ShapedType>(getDest().getType());
208208
}
209209
int64_t getInputRank() {
210210
return getInputType().getRank();

mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#include "llvm/Support/MathExtras.h"
5252
#include "llvm/Support/raw_ostream.h"
5353
#include <cassert>
54+
#include <cstdint>
5455
#include <optional>
5556

5657
using namespace mlir;
@@ -4891,7 +4892,8 @@ LogicalResult PackOp::generateScalarImplementation(OpBuilder &builder,
48914892
if (failed(reifyResultShapes(builder, outputShape))) {
48924893
return getOperation()->emitOpError("failed to reify result shape");
48934894
}
4894-
if (outputShape.size() != 1 || outputShape[0].size() != getOutputRank()) {
4895+
if (outputShape.size() != 1 ||
4896+
outputShape[0].size() != static_cast<size_t>(getOutputRank())) {
48954897
return getOperation()->emitOpError(
48964898
"expected shape of one result value of rank")
48974899
<< getOutputRank();
@@ -5253,14 +5255,14 @@ void UnPackOp::getAsmResultNames(
52535255
LogicalResult UnPackOp::generateScalarImplementation(OpBuilder &builder,
52545256
Location loc,
52555257
ValueRange ivs) {
5256-
return llvm::success();
52575258
OpBuilder::InsertionGuard g(builder);
52585259
ReifiedRankedShapedTypeDims outputShape;
52595260

52605261
if (failed(reifyResultShapes(builder, outputShape))) {
52615262
return getOperation()->emitError("failed to reify result shapes");
52625263
}
5263-
if (outputShape.size() != 1 || outputShape[0].size() != getOutputRank()) {
5264+
if (outputShape.size() != 1 ||
5265+
outputShape[0].size() != static_cast<size_t>(getOutputRank())) {
52645266
return getOperation()->emitError(
52655267
"expected shape of one result value of rank")
52665268
<< getOutputRank();

0 commit comments

Comments
 (0)