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

Mehdi Amini llvmlistbot at llvm.org
Fri Jan 14 10:08:59 PST 2022


Author: Mehdi Amini
Date: 2022-01-14T18:08:42Z
New Revision: 1c173c9442cf699ea8b8df9fde2d4bd8a6932253

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

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Math/IR/MathOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Math/IR/MathOps.cpp b/mlir/lib/Dialect/Math/IR/MathOps.cpp
index 16dd2cb17e03c..4396c32eb3378 100644
--- a/mlir/lib/Dialect/Math/IR/MathOps.cpp
+++ b/mlir/lib/Dialect/Math/IR/MathOps.cpp
@@ -52,18 +52,18 @@ OpFoldResult math::Log2Op::fold(ArrayRef<Attribute> operands) {
   if (!attr)
     return {};
 
-  auto FT = getType().cast<FloatType>();
+  auto ft = getType().cast<FloatType>();
 
-  APFloat APF = attr.getValue();
+  APFloat apf = attr.getValue();
 
-  if (APF.isNegative())
+  if (apf.isNegative())
     return {};
 
-  if (FT.getWidth() == 64)
-    return FloatAttr::get(getType(), log2(APF.convertToDouble()));
+  if (ft.getWidth() == 64)
+    return FloatAttr::get(getType(), log2(apf.convertToDouble()));
 
-  if (FT.getWidth() == 32)
-    return FloatAttr::get(getType(), log2f(APF.convertToDouble()));
+  if (ft.getWidth() == 32)
+    return FloatAttr::get(getType(), log2f(apf.convertToDouble()));
 
   return {};
 }


        


More information about the Mlir-commits mailing list