From 737119c93e427609c1043e9c64479be1df501619 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Thu, 21 Aug 2025 11:18:32 -0700 Subject: [PATCH] [MLIR] Apply clang-tidy fixes for readability-identifier-naming in Serializer.cpp (NFC) --- mlir/lib/Target/SPIRV/Serialization/Serializer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mlir/lib/Target/SPIRV/Serialization/Serializer.cpp b/mlir/lib/Target/SPIRV/Serialization/Serializer.cpp index 7fc779587f4f1..fca686accd96f 100644 --- a/mlir/lib/Target/SPIRV/Serialization/Serializer.cpp +++ b/mlir/lib/Target/SPIRV/Serialization/Serializer.cpp @@ -818,8 +818,8 @@ LogicalResult Serializer::prepareBasicType( bool shaped = llvm::all_of(dims, [](const auto &dim) { return dim > 0; }); if (rank > 0 && shaped) { - auto I32Type = IntegerType::get(type.getContext(), 32); - auto shapeType = ArrayType::get(I32Type, rank); + auto i32Type = IntegerType::get(type.getContext(), 32); + auto shapeType = ArrayType::get(i32Type, rank); if (rank == 1) { SmallVector index(rank); shapeID = prepareDenseElementsConstant( @@ -1368,8 +1368,8 @@ LogicalResult Serializer::emitPhiForBlockArguments(Block *block) { } LLVM_DEBUG({ llvm::dbgs() << " block arguments:\n"; - for (Value v : predecessors.back().second) - llvm::dbgs() << " " << v << "\n"; + for (Value V : predecessors.back().second) + llvm::dbgs() << " " << V << "\n"; }); }