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

Mehdi Amini llvmlistbot at llvm.org
Thu Nov 10 15:34:03 PST 2022


Author: Mehdi Amini
Date: 2022-11-10T23:31:16Z
New Revision: e66d79e5154cb1a90fd34c2f0d530bf77c1c59ab

URL: https://github.com/llvm/llvm-project/commit/e66d79e5154cb1a90fd34c2f0d530bf77c1c59ab
DIFF: https://github.com/llvm/llvm-project/commit/e66d79e5154cb1a90fd34c2f0d530bf77c1c59ab.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 f9469962e2131..2164fd79cc561 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -655,7 +655,7 @@ LogicalResult tosa::TileOp::inferReturnTypeComponents(
   return success();
 }
 
-static SmallVector<int64_t> ConvertToMlirShape(ArrayRef<int64_t> shape) {
+static SmallVector<int64_t> convertToMlirShape(ArrayRef<int64_t> shape) {
   return to_vector(llvm::map_range(shape, [](int64_t dim) {
     return dim == -1 ? ShapedType::kDynamicSize : dim;
   }));
@@ -671,7 +671,7 @@ LogicalResult tosa::ReshapeOp::inferReturnTypeComponents(
   ArrayAttr newShape = adaptor.getNewShape();
   llvm::SmallVector<int64_t> newShapeValue;
   getI64Values(newShape, newShapeValue);
-  newShapeValue = ConvertToMlirShape(newShapeValue);
+  newShapeValue = convertToMlirShape(newShapeValue);
 
   // We cannot infer from the total number of elements so we must take the
   // shape attribute as exact.
@@ -1250,7 +1250,7 @@ LogicalResult TransposeConv2DOp::inferReturnTypeComponents(
   TransposeConv2DOp::Adaptor adaptor(operands.getValues(), attributes);
   llvm::SmallVector<int64_t> outputShape;
   getI64Values(adaptor.getOutShape(), outputShape);
-  outputShape = ConvertToMlirShape(outputShape);
+  outputShape = convertToMlirShape(outputShape);
 
   int64_t inputWidth = ShapedType::kDynamicSize;
   int64_t inputHeight = ShapedType::kDynamicSize;


        


More information about the Mlir-commits mailing list