[Mlir-commits] [mlir] 04b0658 - [mlir] Fix warnings
Kazu Hirata
llvmlistbot at llvm.org
Sun Aug 31 07:41:29 PDT 2025
Author: Kazu Hirata
Date: 2025-08-31T07:41:23-07:00
New Revision: 04b0658453d6e22a227c2678fe89c52049d1308d
URL: https://github.com/llvm/llvm-project/commit/04b0658453d6e22a227c2678fe89c52049d1308d
DIFF: https://github.com/llvm/llvm-project/commit/04b0658453d6e22a227c2678fe89c52049d1308d.diff
LOG: [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]
Added:
Modified:
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
index 5105ce23465e7..68584ec4fd814 100644
--- a/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
+++ b/mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
@@ -3200,21 +3200,6 @@ void PadOp::getAsmResultNames(function_ref<void(Value, StringRef)> setNameFn) {
setNameFn(getResult(), "padded");
}
-// TODO: Replace custom<InferType> directive with AllTypesMatch as soon as it
-// supports optional types.
-static void printInferType(OpAsmPrinter &printer, Operation *op,
- Value optOperand, Type typeToInfer,
- Type typeToInferFrom) {}
-
-static ParseResult
-parseInferType(OpAsmParser &parser,
- std::optional<OpAsmParser::UnresolvedOperand> optOperand,
- Type &typeToInfer, Type typeToInferFrom) {
- if (optOperand)
- typeToInfer = typeToInferFrom;
- return success();
-}
-
LogicalResult PadOp::verify() {
auto sourceType = llvm::cast<RankedTensorType>(getSource().getType());
auto resultType = llvm::cast<RankedTensorType>(getResult().getType());
More information about the Mlir-commits
mailing list