Home
last modified time | relevance | path

Searched refs:IsNegative (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dinteger.h305 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 Dreal.h68 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 Dreal.cpp35 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 Dint-power.h31 bool negativePower{power.IsNegative()};
H A Dformatting.cpp222 if (n->IsNegative()) { in ToPrecedence()
237 return n->IsNegative(); in IsNegatedScalarConstant()
H A Dfold-logical.cpp169 return Scalar<T>{x.IsNegative()}; in FoldIntrinsicFunction()
H A Dfold-real.cpp208 auto result{x.NEAREST(!s.IsNegative())}; in FoldIntrinsicFunction()
/llvm-project-15.0.7/llvm/lib/Support/
H A DNativeFormatting.cpp55 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 DAPInt.cpp510 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 Dreal.cpp55 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 Dinteger.cpp101 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 DMicrosoftDemangle.cpp903 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 DMicrosoftDemangleNodes.cpp195 if (IsNegative) in output()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/Arch/
H A DX86.cpp244 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 DMicrosoftDemangleNodes.h554 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 Dobjc-function-naming.rst20 bool IsNegative(int i) { return i < 0; }
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp386 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 Dbinary-floating-point.h91 constexpr bool IsNegative() const { return ((raw_ >> (bits - 1)) & 1) != 0; } in IsNegative() function
/llvm-project-15.0.7/flang/lib/Decimal/
H A Dbinary-to-decimal.cpp21 bool negative{x.IsNegative()};
287 if (x.IsNegative()) { in ConvertToDecimal()
/llvm-project-15.0.7/lldb/include/lldb/DataFormatters/
H A DFormattersHelpers.h93 bool IsNegative() const { in IsNegative() function
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMathExtras.h984 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 DFixedPointBuilder.h54 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 DAPFixedPointTest.cpp370 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 DCommonArgs.cpp140 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 DInstCombineSelect.cpp808 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()

12