aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMehdi Amini <joker.eph@gmail.com>2022-01-02 22:01:07 +0000
committerMehdi Amini <joker.eph@gmail.com>2022-01-02 22:14:48 +0000
commit5caee2176ae79fb923de174bf229d9b75eb37add (patch)
tree5ad915a059aa4d3219ca1262b0670755443bd525
parentb50fea47b6c454581fce89af359f3afe5154986c (diff)
downloadllvm-5caee2176ae79fb923de174bf229d9b75eb37add.zip
llvm-5caee2176ae79fb923de174bf229d9b75eb37add.tar.gz
llvm-5caee2176ae79fb923de174bf229d9b75eb37add.tar.bz2
Apply clang-tidy fixes for bugprone-argument-comment to MLIR ArithmeticOps.cpp (NFC)
-rw-r--r--mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
index 98f6170..91cbf4bd 100644
--- a/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
+++ b/mlir/lib/Dialect/Arithmetic/IR/ArithmeticOps.cpp
@@ -905,7 +905,7 @@ OpFoldResult arith::UIToFPOp::fold(ArrayRef<Attribute> operands) {
FloatType floatTy = getType().cast<FloatType>();
APFloat apf(floatTy.getFloatSemantics(),
APInt::getZero(floatTy.getWidth()));
- apf.convertFromAPInt(api, /*signed=*/false, APFloat::rmNearestTiesToEven);
+ apf.convertFromAPInt(api, /*IsSigned=*/false, APFloat::rmNearestTiesToEven);
return FloatAttr::get(floatTy, apf);
}
return {};
@@ -925,7 +925,7 @@ OpFoldResult arith::SIToFPOp::fold(ArrayRef<Attribute> operands) {
FloatType floatTy = getType().cast<FloatType>();
APFloat apf(floatTy.getFloatSemantics(),
APInt::getZero(floatTy.getWidth()));
- apf.convertFromAPInt(api, /*signed=*/true, APFloat::rmNearestTiesToEven);
+ apf.convertFromAPInt(api, /*IsSigned=*/true, APFloat::rmNearestTiesToEven);
return FloatAttr::get(floatTy, apf);
}
return {};
@@ -943,7 +943,7 @@ OpFoldResult arith::FPToUIOp::fold(ArrayRef<Attribute> operands) {
const APFloat &apf = lhs.getValue();
IntegerType intTy = getType().cast<IntegerType>();
bool ignored;
- APSInt api(intTy.getWidth(), /*unsigned=*/true);
+ APSInt api(intTy.getWidth(), /*isUnsigned=*/true);
if (APFloat::opInvalidOp ==
apf.convertToInteger(api, APFloat::rmTowardZero, &ignored)) {
// Undefined behavior invoked - the destination type can't represent
@@ -969,7 +969,7 @@ OpFoldResult arith::FPToSIOp::fold(ArrayRef<Attribute> operands) {
const APFloat &apf = lhs.getValue();
IntegerType intTy = getType().cast<IntegerType>();
bool ignored;
- APSInt api(intTy.getWidth(), /*unsigned=*/false);
+ APSInt api(intTy.getWidth(), /*isUnsigned=*/false);
if (APFloat::opInvalidOp ==
apf.convertToInteger(api, APFloat::rmTowardZero, &ignored)) {
// Undefined behavior invoked - the destination type can't represent