[Mlir-commits] [mlir] 1c03b53 - [MLIR] Remove unused C API mlirUnrankedTensorTypeGetElementType (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Aug 27 08:08:04 PDT 2025


Author: Mehdi Amini
Date: 2025-08-27T08:07:52-07:00
New Revision: 1c03b536f908daf059010311c2d5556b14b36370

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

LOG: [MLIR] Remove unused C API mlirUnrankedTensorTypeGetElementType (NFC)

This function isn't exposed in any header and unused in the codebase.

Added: 
    

Modified: 
    mlir/lib/CAPI/IR/BuiltinTypes.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/CAPI/IR/BuiltinTypes.cpp b/mlir/lib/CAPI/IR/BuiltinTypes.cpp
index 27a0f1d8495bc..f5f4ed30219eb 100644
--- a/mlir/lib/CAPI/IR/BuiltinTypes.cpp
+++ b/mlir/lib/CAPI/IR/BuiltinTypes.cpp
@@ -465,10 +465,6 @@ MlirType mlirUnrankedTensorTypeGetChecked(MlirLocation loc,
   return wrap(UnrankedTensorType::getChecked(unwrap(loc), unwrap(elementType)));
 }
 
-static MlirType mlirUnrankedTensorTypeGetElementType(MlirType type) {
-  return wrap(llvm::cast<UnrankedTensorType>(unwrap(type)).getElementType());
-}
-
 //===----------------------------------------------------------------------===//
 // Ranked / Unranked MemRef type.
 //===----------------------------------------------------------------------===//


        


More information about the Mlir-commits mailing list