summaryrefslogtreecommitdiff
path: root/mlir/lib/Interfaces
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-12-10 12:53:27 +0000
committerMehdi Amini <joker.eph@gmail.com>2022-12-28 22:42:39 +0000
commite8c961f53621ffc4a2cd09fae3f584938cb6b493 (patch)
tree5b8a8860f67a8780ccddeb62ca343769588cfa61 /mlir/lib/Interfaces
parentab32f5b7ef7ff203ecf2afe31b85f4ebd102d366 (diff)
downloadllvm-e8c961f53621ffc4a2cd09fae3f584938cb6b493.tar.gz
Apply clang-tidy fixes for readability-identifier-naming in InferTypeOpInterface.cpp (NFC)
Diffstat (limited to 'mlir/lib/Interfaces')
-rw-r--r--mlir/lib/Interfaces/InferTypeOpInterface.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Interfaces/InferTypeOpInterface.cpp b/mlir/lib/Interfaces/InferTypeOpInterface.cpp
index e7d7e774f2f6..b76f236c3686 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();