Skip to content

Commit 04b0658

Browse files
[mlir] Fix warnings
This patch fixes: mlir/lib/Dialect/Tensor/IR/TensorOps.cpp:3205:13: error: unused function 'printInferType' [-Werror,-Wunused-function] mlir/lib/Dialect/Tensor/IR/TensorOps.cpp:3210:1: error: unused function 'parseInferType' [-Werror,-Wunused-function]
1 parent 0aac227 commit 04b0658

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

mlir/lib/Dialect/Tensor/IR/TensorOps.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3200,21 +3200,6 @@ void PadOp::getAsmResultNames(function_ref<void(Value, StringRef)> setNameFn) {
32003200
setNameFn(getResult(), "padded");
32013201
}
32023202

3203-
// TODO: Replace custom<InferType> directive with AllTypesMatch as soon as it
3204-
// supports optional types.
3205-
static void printInferType(OpAsmPrinter &printer, Operation *op,
3206-
Value optOperand, Type typeToInfer,
3207-
Type typeToInferFrom) {}
3208-
3209-
static ParseResult
3210-
parseInferType(OpAsmParser &parser,
3211-
std::optional<OpAsmParser::UnresolvedOperand> optOperand,
3212-
Type &typeToInfer, Type typeToInferFrom) {
3213-
if (optOperand)
3214-
typeToInfer = typeToInferFrom;
3215-
return success();
3216-
}
3217-
32183203
LogicalResult PadOp::verify() {
32193204
auto sourceType = llvm::cast<RankedTensorType>(getSource().getType());
32203205
auto resultType = llvm::cast<RankedTensorType>(getResult().getType());

0 commit comments

Comments
 (0)