[Mlir-commits] [mlir] e8c961f - Apply clang-tidy fixes for readability-identifier-naming in InferTypeOpInterface.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Dec 28 14:42:56 PST 2022
Author: Mehdi Amini
Date: 2022-12-28T22:42:39Z
New Revision: e8c961f53621ffc4a2cd09fae3f584938cb6b493
URL: https://github.com/llvm/llvm-project/commit/e8c961f53621ffc4a2cd09fae3f584938cb6b493
DIFF: https://github.com/llvm/llvm-project/commit/e8c961f53621ffc4a2cd09fae3f584938cb6b493.diff
LOG: Apply clang-tidy fixes for readability-identifier-naming in InferTypeOpInterface.cpp (NFC)
Added:
Modified:
mlir/lib/Interfaces/InferTypeOpInterface.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/InferTypeOpInterface.cpp b/mlir/lib/Interfaces/InferTypeOpInterface.cpp
index e7d7e774f2f6a..b76f236c3686f 100644
--- a/mlir/lib/Interfaces/InferTypeOpInterface.cpp
+++ b/mlir/lib/Interfaces/InferTypeOpInterface.cpp
@@ -188,16 +188,16 @@ LogicalResult mlir::detail::inferReturnTensorTypes(
retComponents)))
return failure();
for (const auto &shapeAndType : retComponents) {
- Type element_ty = shapeAndType.getElementType();
- assert(element_ty && "element type required to construct tensor");
+ Type elementTy = shapeAndType.getElementType();
+ assert(elementTy && "element type required to construct tensor");
Attribute attr = shapeAndType.getAttribute();
if (shapeAndType.hasRank()) {
inferredReturnTypes.push_back(
- RankedTensorType::get(shapeAndType.getDims(), element_ty, attr));
+ RankedTensorType::get(shapeAndType.getDims(), elementTy, attr));
} else {
assert(attr == nullptr && "attribute not supported");
- inferredReturnTypes.push_back(UnrankedTensorType::get(element_ty));
+ inferredReturnTypes.push_back(UnrankedTensorType::get(elementTy));
}
}
return success();
More information about the Mlir-commits
mailing list