From: wren romano <2998727+wrengr@users.noreply.github.com> Date: Tue, 30 May 2023 20:47:22 +0000 (-0700) Subject: [mlir][sparse] Removing unused helper function X-Git-Tag: upstream/17.0.6~6742 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f58e67dee9355f54a88aa866b355c298317c3272;p=platform%2Fupstream%2Fllvm.git [mlir][sparse] Removing unused helper function Depends On D151505 Reviewed By: aartbik, Peiming Differential Revision: https://reviews.llvm.org/D151522 --- diff --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp index a1eda89..7f8dcba 100644 --- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp +++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp @@ -32,17 +32,6 @@ using namespace mlir; using namespace mlir::sparse_tensor; //===----------------------------------------------------------------------===// -// Additional convenience methods. -//===----------------------------------------------------------------------===// - -/// Gets the dimension-rank of the type of some `T`. (In particular -/// this is only used for `Value` and `TypedValue`.) -template -static inline Dimension getDimRank(T t) { - return getRankedTensorType(t).getRank(); -} - -//===----------------------------------------------------------------------===// // StorageLayout //===----------------------------------------------------------------------===//