[Mlir-commits] [mlir] f58e67d - [mlir][sparse] Removing unused helper function

wren romano llvmlistbot at llvm.org
Tue May 30 15:59:33 PDT 2023


Author: wren romano
Date: 2023-05-30T15:59:26-07:00
New Revision: f58e67dee9355f54a88aa866b355c298317c3272

URL: https://github.com/llvm/llvm-project/commit/f58e67dee9355f54a88aa866b355c298317c3272
DIFF: https://github.com/llvm/llvm-project/commit/f58e67dee9355f54a88aa866b355c298317c3272.diff

LOG: [mlir][sparse] Removing unused helper function

Depends On D151505

Reviewed By: aartbik, Peiming

Differential Revision: https://reviews.llvm.org/D151522

Added: 
    

Modified: 
    mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
index a1eda8968a55..7f8dcba77fc8 100644
--- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
+++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
@@ -31,17 +31,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<RankedTensorType>`.)
-template <typename T>
-static inline Dimension getDimRank(T t) {
-  return getRankedTensorType(t).getRank();
-}
-
 //===----------------------------------------------------------------------===//
 // StorageLayout
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list