[Mlir-commits] [mlir] [mlir][vector] Remove hooks deprecated pre Release/21 branch (PR #157806)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Wed Sep 10 00:45:42 PDT 2025
https://github.com/banach-space created https://github.com/llvm/llvm-project/pull/157806
As "promised" on Discourse, I am removing these deprecated Vector hooks
"around" Release/21 branch creation:
* https://discourse.llvm.org/t/psa-vector-standardise-operand-naming
Release/21 branch was created on July 15th, so ~2 months ago:
* https://discourse.llvm.org/t/llvm-21-x-release-information-and-branching
>From 2bbbc95408c434f3b32272507638921b2280c611 Mon Sep 17 00:00:00 2001
From: Andrzej Warzynski <andrzej.warzynski at arm.com>
Date: Wed, 10 Sep 2025 07:32:00 +0000
Subject: [PATCH] [mlir][vector] Remove hooks deprecated pre Release/21 branch
As "promised" on Discourse, I am removing these deprecated Vector hooks
"around" Release/21 branch creation:
* https://discourse.llvm.org/t/psa-vector-standardise-operand-naming
Release/21 branch was created on July 15th, so ~2 months ago:
* https://discourse.llvm.org/t/llvm-21-x-release-information-and-branching
---
mlir/include/mlir/Dialect/Vector/IR/VectorOps.td | 12 ------------
mlir/include/mlir/Interfaces/VectorInterfaces.td | 6 ------
2 files changed, 18 deletions(-)
diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
index 77e26cca1607f..65ba7e0ad549f 100644
--- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
+++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td
@@ -972,10 +972,6 @@ def Vector_ScalableInsertOp :
VectorType getDestVectorType() {
return ::llvm::cast<VectorType>(getDest().getType());
}
- /// Wrapper for getResult, which replaced getRes.
- [[deprecated("Use getResult instead!")]] ::mlir::Value getRes() {
- return getResult();
- }
}];
}
@@ -1027,10 +1023,6 @@ def Vector_ScalableExtractOp :
VectorType getResultVectorType() {
return ::llvm::cast<VectorType>(getResult().getType());
}
- /// Wrapper for getResult, which replaced getRes.
- [[deprecated("Use getResult instead!")]] ::mlir::Value getRes() {
- return getResult();
- }
}];
}
@@ -1085,10 +1077,6 @@ def Vector_InsertStridedSliceOp :
return ::llvm::cast<IntegerAttr>(attr).getInt() != 1;
});
}
- /// Wrapper for getResult, which replaced getRes.
- [[deprecated("Use getResult instead!")]] ::mlir::Value getRes() {
- return getResult();
- }
}];
let hasFolder = 1;
diff --git a/mlir/include/mlir/Interfaces/VectorInterfaces.td b/mlir/include/mlir/Interfaces/VectorInterfaces.td
index c72ca58cedafd..6838c16fdf0fe 100644
--- a/mlir/include/mlir/Interfaces/VectorInterfaces.td
+++ b/mlir/include/mlir/Interfaces/VectorInterfaces.td
@@ -187,12 +187,6 @@ def VectorTransferOpInterface : OpInterface<"VectorTransferOpInterface"> {
return inBounds;
}
- /// Wrapper for getBase, which replaced getSource.
- [[deprecated("Use getBase instead!")]]
- ::mlir::Value getSource() {
- return $_op.getBase();
- }
-
/// Return the number of leading shaped dimensions (of the "source" operand)
/// that do not participate in the permutation map.
unsigned getLeadingShapedRank() {
More information about the Mlir-commits
mailing list