Apply clang-tidy fixes for readability-identifier-naming in MathOps.cpp (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Fri, 14 Jan 2022 07:29:19 +0000 (07:29 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 14 Jan 2022 18:08:42 +0000 (18:08 +0000)
mlir/lib/Dialect/Math/IR/MathOps.cpp

index 16dd2cb..4396c32 100644 (file)
@@ -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 {};
 }