[Mlir-commits] [mlir] d2f0676 - Apply clang-tidy fixes for readability-identifier-naming in TosaOps.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Tue Feb 13 20:57:40 PST 2024


Author: Mehdi Amini
Date: 2024-02-13T20:56:05-08:00
New Revision: d2f067693becb25e4479712c8290d321bf83d4bd

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

LOG: Apply clang-tidy fixes for readability-identifier-naming in TosaOps.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Tosa/IR/TosaOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
index 729116da45e47d..950ee597b891b5 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -108,7 +108,7 @@ struct TosaDialectBytecodeInterface : public BytecodeDialectInterface {
   }
 
   LogicalResult upgradeFromVersion(Operation *topLevelOp,
-                                   const DialectVersion &version_) const final {
+                                   const DialectVersion &version) const final {
     return success();
   }
 };
@@ -454,12 +454,12 @@ static void
 buildAvgPool2dOpWithQuantInfo(OpBuilder &builder, OperationState &result,
                               Type outputType, Value input,
                               DenseArrayAttr kernel, DenseArrayAttr stride,
-                              DenseArrayAttr pad, TypeAttr acc_type) {
+                              DenseArrayAttr pad, TypeAttr accType) {
   result.addOperands(input);
   result.addAttribute("kernel", kernel);
   result.addAttribute("stride", stride);
   result.addAttribute("pad", pad);
-  result.addAttribute("acc_type", acc_type);
+  result.addAttribute("acc_type", accType);
   auto quantAttr = buildUnaryOpQuantizationAttr(builder, input, outputType);
   if (quantAttr)
     result.addAttribute("quantization_info", quantAttr);


        


More information about the Mlir-commits mailing list