| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | integer.h | 305 if (that.IsNegative()) { in ConvertSigned() 334 if (IsNegative()) { in SignedDecimal() 375 constexpr bool IsNegative() const { in IsNegative() function 380 if (IsNegative()) { in CompareToZeroSigned() 459 bool isNegative{IsNegative()}; in CompareSigned() 519 if (IsNegative()) { in ABS() 676 } else if (IsNegative()) { in SHIFTA() 772 bool isNegative{IsNegative()}; in AddSigned() 780 bool isNegative{IsNegative()}; in SubtractSigned() 807 return SIGN(sign.IsNegative()); in SIGN() [all …]
|
| H A D | real.h | 68 constexpr bool IsNegative() const { in IsNegative() function 227 bool isNegative{n.IsNegative()}; 287 if (IsSignBitSet() != result.value.IsNegative()) { 307 bool isNegative{x.IsNegative()};
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | real.cpp | 35 bool isNegative{IsNegative()}; in Compare() 67 bool isNegative{IsNegative()}; in Add() 68 bool yIsNegative{y.IsNegative()}; in Add() 146 bool isNegative{IsNegative() != y.IsNegative()}; in Multiply() 206 bool isNegative{IsNegative() != y.IsNegative()}; in Divide() 272 } else if (IsNegative()) { in SQRT() 338 bool isNegative{IsNegative()}; in NEAREST() 414 if (IsNegative()) { in MOD() 437 if (y.IsNegative()) { in MODULO() 644 } else if (IsNegative()) { in DumpHexadecimal() [all …]
|
| H A D | int-power.h | 31 bool negativePower{power.IsNegative()};
|
| H A D | formatting.cpp | 222 if (n->IsNegative()) { in ToPrecedence() 237 return n->IsNegative(); in IsNegatedScalarConstant()
|
| H A D | fold-logical.cpp | 169 return Scalar<T>{x.IsNegative()}; in FoldIntrinsicFunction()
|
| H A D | fold-real.cpp | 208 auto result{x.NEAREST(!s.IsNegative())}; in FoldIntrinsicFunction()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | NativeFormatting.cpp | 55 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument 64 if (IsNegative) in write_unsigned_impl() 81 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument 85 IsNegative); in write_unsigned() 87 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
|
| H A D | APInt.cpp | 510 unsigned IsNegative = false; in getSufficientBitsNeeded() local 512 IsNegative = Str[0] == '-'; in getSufficientBitsNeeded() 520 return StrLen + IsNegative; in getSufficientBitsNeeded() 522 return StrLen * 3 + IsNegative; in getSufficientBitsNeeded() 524 return StrLen * 4 + IsNegative; in getSufficientBitsNeeded() 531 return (StrLen == 1 ? 4 : StrLen * 64 / 18) + IsNegative; in getSufficientBitsNeeded() 534 return (StrLen == 1 ? 7 : StrLen * 16 / 3) + IsNegative; in getSufficientBitsNeeded()
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | real.cpp | 55 TEST(!zero.IsNegative())(desc); in basicTests() 66 TEST(minusZero.IsNegative())(desc); in basicTests() 85 TEST(!nan.IsNegative())(desc); in basicTests() 99 TEST(!inf.IsNegative())(desc); in basicTests() 110 TEST(negInf.IsNegative())(desc); in basicTests() 134 TEST(!ix.IsNegative())(ldesc); in basicTests() 137 TEST(!vr.value.IsNegative())(ldesc); in basicTests() 168 TEST(ix.IsNegative())(ldesc); in basicTests() 174 TEST(vr.value.IsNegative())(ldesc); in basicTests() 237 inline bool IsNegative(std::uint64_t x) { in IsNegative() function [all …]
|
| H A D | integer.cpp | 101 TEST(a.IsNegative())("%s, x=0x%llx", desc, x); in exhaustiveTesting() 106 TEST(!a.IsNegative())("%s, x=0x%llx", desc, x); in exhaustiveTesting() 163 ("%s, x=0x%llx %lld %d, y=0x%llx %lld %d", desc, x, sx, a.IsNegative(), y, in exhaustiveTesting() 164 sy, b.IsNegative()); in exhaustiveTesting()
|
| /llvm-project-15.0.7/llvm/lib/Demangle/ |
| H A D | MicrosoftDemangle.cpp | 903 return {Ret, IsNegative}; in demangleNumber() 911 return {Ret, IsNegative}; in demangleNumber() 925 bool IsNegative = false; in demangleUnsigned() local 928 if (IsNegative) in demangleUnsigned() 934 bool IsNegative = false; in demangleSigned() local 940 return IsNegative ? -I : I; in demangleSigned() 1281 bool IsNegative = false; in demangleStringLiteral() local 1435 bool IsNegative = false; in demangleLocallyScopedNamePiece() local 1437 assert(!IsNegative); in demangleLocallyScopedNamePiece() 2076 bool IsNegative = false; in demangleArrayType() local [all …]
|
| H A D | MicrosoftDemangleNodes.cpp | 195 if (IsNegative) in output()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/Arch/ |
| H A D | X86.cpp | 244 bool IsNegative = Name.startswith("no-"); in getX86TargetFeatures() local 245 if (IsNegative) in getX86TargetFeatures() 247 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
|
| /llvm-project-15.0.7/llvm/include/llvm/Demangle/ |
| H A D | MicrosoftDemangleNodes.h | 554 IntegerLiteralNode(uint64_t Value, bool IsNegative) in IntegerLiteralNode() 555 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode() 560 bool IsNegative = false; member
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/google/ |
| H A D | objc-function-naming.rst | 20 bool IsNegative(int i) { return i < 0; }
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/ |
| H A D | WebAssemblyAsmParser.cpp | 386 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument 389 if (IsNegative) in parseSingleInteger() 397 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument 402 if (IsNegative) in parseSingleFloat() 411 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument 424 if (IsNegative) in parseSpecialFloatMaybe()
|
| /llvm-project-15.0.7/flang/include/flang/Decimal/ |
| H A D | binary-floating-point.h | 91 constexpr bool IsNegative() const { return ((raw_ >> (bits - 1)) & 1) != 0; } in IsNegative() function
|
| /llvm-project-15.0.7/flang/lib/Decimal/ |
| H A D | binary-to-decimal.cpp | 21 bool negative{x.IsNegative()}; 287 if (x.IsNegative()) { in ConvertToDecimal()
|
| /llvm-project-15.0.7/lldb/include/lldb/DataFormatters/ |
| H A D | FormattersHelpers.h | 93 bool IsNegative() const { in IsNegative() function
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | MathExtras.h | 984 const bool IsNegative = (X < 0) ^ (Y < 0); 985 Result = IsNegative ? (0 - UResult) : UResult; 994 if (IsNegative)
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 54 Value *IsNegative = B.CreateICmpSLT(Result, Zero); in Convert() local 58 Result = B.CreateSelect(IsNegative, Rounded, Result); in Convert()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APFixedPointTest.cpp | 370 bool IsNegative = ScaledVal < 0; in CheckUnsaturatedConversion() local 371 if (IsNegative) in CheckUnsaturatedConversion() 380 if (IsNegative) in CheckUnsaturatedConversion()
|
| /llvm-project-15.0.7/clang/lib/Driver/ToolChains/ |
| H A D | CommonArgs.cpp | 140 bool IsNegative = Name.startswith("no-"); in handleTargetFeaturesGroup() local 141 if (IsNegative) in handleTargetFeaturesGroup() 143 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineSelect.cpp | 808 bool IsNegative = false; in canonicalizeSaturatedSubtract() local 813 IsNegative = true; in canonicalizeSaturatedSubtract() 821 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract() 827 if (IsNegative) in canonicalizeSaturatedSubtract()
|