From: Mehdi Amini Date: Thu, 3 Nov 2022 20:44:53 +0000 (+0000) Subject: Apply clang-tidy fixes for readability-identifier-naming in TosaOps.cpp (NFC) X-Git-Tag: upstream/17.0.6~27982 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e66d79e5154cb1a90fd34c2f0d530bf77c1c59ab;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for readability-identifier-naming in TosaOps.cpp (NFC) --- diff --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp index f946996..2164fd7 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 ConvertToMlirShape(ArrayRef shape) { +static SmallVector convertToMlirShape(ArrayRef 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 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 outputShape; getI64Values(adaptor.getOutShape(), outputShape); - outputShape = ConvertToMlirShape(outputShape); + outputShape = convertToMlirShape(outputShape); int64_t inputWidth = ShapedType::kDynamicSize; int64_t inputHeight = ShapedType::kDynamicSize;