Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DX86.cpp237 bool IsNegative = Name.consume_front("no-"); in getX86TargetFeatures() local
245 if (IsNegative) in getX86TargetFeatures()
259 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
280 bool IsNegative = Name.starts_with("no-"); in getX86TargetFeatures() local
297 if (Not64Bit && !IsNegative) in getX86TargetFeatures()
310 Args.MakeArgString((IsNegative ? "-" : "+") + Value)); in getX86TargetFeatures()
314 if (IsNegative) in getX86TargetFeatures()
316 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DNativeFormatting.cpp56 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
62 if (IsNegative) in write_unsigned_impl()
79 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
83 IsNegative); in write_unsigned()
85 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
H A DAPInt.cpp549 unsigned IsNegative = false; in getSufficientBitsNeeded() local
551 IsNegative = Str[0] == '-'; in getSufficientBitsNeeded()
559 return StrLen + IsNegative; in getSufficientBitsNeeded()
561 return StrLen * 3 + IsNegative; in getSufficientBitsNeeded()
563 return StrLen * 4 + IsNegative; in getSufficientBitsNeeded()
570 return (StrLen == 1 ? 4 : StrLen * 64 / 18) + IsNegative; in getSufficientBitsNeeded()
573 return (StrLen == 1 ? 7 : StrLen * 16 / 3) + IsNegative; in getSufficientBitsNeeded()
H A DAPFloat.cpp3266 bool IsNegative = str.consume_front("-"); in convertFromStringSpecials() local
3267 if (IsNegative) { in convertFromStringSpecials()
3287 makeNaN(IsSignaling, IsNegative); in convertFromStringSpecials()
3314 makeNaN(IsSignaling, IsNegative, &Payload); in convertFromStringSpecials()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp948 bool IsNegative = consumeFront(MangledName, '?'); in demangleNumber() local
953 return {Ret, IsNegative}; in demangleNumber()
961 return {Ret, IsNegative}; in demangleNumber()
975 bool IsNegative = false; in demangleUnsigned() local
977 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleUnsigned()
978 if (IsNegative) in demangleUnsigned()
984 bool IsNegative = false; in demangleSigned() local
986 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleSigned()
990 return IsNegative ? -I : I; in demangleSigned()
1333 bool IsNegative = false; in demangleStringLiteral() local
[all …]
H A DMicrosoftDemangleNodes.cpp196 if (IsNegative) in output()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp311 bool IsNegative) const;
795 bool IsNegative) const { in emitRcpIEEE1ULP()
798 if (IsNegative) in emitRcpIEEE1ULP()
868 bool IsNegative) { in emitRsqIEEE1ULP() argument
882 ConstantFP::get(Ty, IsNegative ? -0x1.0p+12 : 0x1.0p+12); in emitRsqIEEE1ULP()
889 NeedScale, OutputScale, IsNegative ? ConstantFP::get(Ty, -1.0) : One); in emitRsqIEEE1ULP()
921 bool IsNegative = false; in optimizeWithRsq() local
924 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
933 return IsNegative ? Builder.CreateFNeg(Result) : Result; in optimizeWithRsq()
936 return emitRsqIEEE1ULP(Builder, Den, IsNegative); in optimizeWithRsq()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h658 IntegerLiteralNode(uint64_t Value, bool IsNegative) in IntegerLiteralNode()
659 : Node(NodeKind::IntegerLiteral), Value(Value), IsNegative(IsNegative) {} in IntegerLiteralNode()
668 bool IsNegative = false; member
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp432 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument
435 if (IsNegative) in parseSingleInteger()
442 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument
447 if (IsNegative) in parseSingleFloat()
455 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument
468 if (IsNegative) in parseSpecialFloatMaybe()
/freebsd/contrib/llvm-project/lldb/include/lldb/DataFormatters/
H A DFormattersHelpers.h98 bool IsNegative() const { in IsNegative() function
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h773 const bool IsNegative = (X < 0) ^ (Y < 0); in MulOverflow()
774 Result = IsNegative ? (0 - UResult) : UResult; in MulOverflow()
783 if (IsNegative) in MulOverflow()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h56 Value *IsNegative = B.CreateICmpSLT(Result, Zero); in Convert() local
60 Result = B.CreateSelect(IsNegative, Rounded, Result); in Convert()
/freebsd/contrib/googletest/docs/reference/
H A Dassertions.md408 bool IsNegative(T x) {
412 EXPECT_PRED1(IsNegative<int>, -5); // Must specify type for IsNegative
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp968 bool IsNegative = false; in canonicalizeSaturatedSubtract() local
973 IsNegative = true; in canonicalizeSaturatedSubtract()
981 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract()
987 if (IsNegative) in canonicalizeSaturatedSubtract()
H A DInstCombineCompares.cpp5297 bool IsNegative) -> bool { in foldICmpBinOp() argument
5303 if (IsNegative ? OffsetC->isAllOnes() : OffsetC->isOne()) in foldICmpBinOp()
5307 if (IsNegative) in foldICmpBinOp()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp365 MachineInstr *emitTestBit(Register TestReg, uint64_t Bit, bool IsNegative,
370 MachineInstr *emitCBZ(Register CompareReg, bool IsNegative,
1596 Register TestReg, uint64_t Bit, bool IsNegative, MachineBasicBlock *DstMBB, in emitTestBit() argument
1604 TestReg = getTestBitReg(TestReg, Bit, IsNegative, MRI); in emitTestBit()
1621 unsigned Opc = OpcTable[UseWReg][IsNegative]; in emitTestBit()
1670 bool IsNegative, in emitCBZ() argument
1684 unsigned Opc = OpcTable[IsNegative][Width == 64]; in emitCBZ()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp2375 llvm::Value *IsNegative = CGF.Builder.CreateICmpSLT(Signed, Zero); in EmitCheckedMixedSignMultiply() local
2378 CGF.Builder.CreateSelect(IsNegative, AbsOfNegative, Signed); in EmitCheckedMixedSignMultiply()
2394 CGF.Builder.CreateZExt(IsNegative, OpTy)); in EmitCheckedMixedSignMultiply()
2402 CGF.Builder.CreateSelect(IsNegative, NegativeResult, UnsignedResult); in EmitCheckedMixedSignMultiply()
2407 IsNegative, CGF.Builder.CreateIsNotNull(UnsignedResult)); in EmitCheckedMixedSignMultiply()
2419 IsNegative, CGF.Builder.CreateNeg(UnsignedResult), UnsignedResult); in EmitCheckedMixedSignMultiply()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp3052 bool IsNegative = Token.is(MIToken::minus); in parseOffset() local
3059 if (IsNegative) in parseOffset()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCommonArgs.cpp379 bool IsNegative = Name.consume_front("no-"); in handleTargetFeaturesGroup() local
381 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp2041 bool IsNegative = parseOptionalToken(AsmToken::Minus); in parseFPImm() local
2054 if (IsNegative) in parseFPImm()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp9646 bool IsNegative) const { in expandABS()
9652 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9661 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9670 if (IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9681 (!IsNegative && !isOperationLegalOrCustom(ISD::ADD, VT)) || in expandABS()
9682 (IsNegative && !isOperationLegalOrCustom(ISD::SUB, VT)) || in expandABS()
9693 if (!IsNegative) in expandABS()
/freebsd/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc2435 bool IsNegative(T x) { in IsNegative() function
2455 EXPECT_PRED1(IsNegative<int>, -5); in TEST()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1165 bool IsNegative = C && C->getAPIntValue().isNegative(); in LowerSETCC() local
1166 if (IsNegative || isSExtFree(LHS) || isSExtFree(RHS)) in LowerSETCC()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h5540 bool IsNegative = false) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp8640 bool IsNegative = parseOptionalToken(AsmToken::Minus); in tryParseAdjImm0_63() local
8650 if (IsNegative) in tryParseAdjImm0_63()

12