Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DX86.cpp240 bool IsNegative = Name.consume_front("no-"); in getX86TargetFeatures() local
250 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
270 bool IsNegative = Name.starts_with("no-"); in getX86TargetFeatures() local
278 Args.MakeArgString((IsNegative ? "-" : "+") + Value)); in getX86TargetFeatures()
286 if (IsNegative) in getX86TargetFeatures()
288 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DNativeFormatting.cpp57 IntegerStyle Style, bool IsNegative) { in write_unsigned_impl() argument
63 if (IsNegative) in write_unsigned_impl()
80 IntegerStyle Style, bool IsNegative = false) { in write_unsigned() argument
84 IsNegative); in write_unsigned()
86 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); in write_unsigned()
H A DAPInt.cpp518 unsigned IsNegative = false; in getSufficientBitsNeeded() local
520 IsNegative = Str[0] == '-'; in getSufficientBitsNeeded()
528 return StrLen + IsNegative; in getSufficientBitsNeeded()
530 return StrLen * 3 + IsNegative; in getSufficientBitsNeeded()
532 return StrLen * 4 + IsNegative; in getSufficientBitsNeeded()
539 return (StrLen == 1 ? 4 : StrLen * 64 / 18) + IsNegative; in getSufficientBitsNeeded()
542 return (StrLen == 1 ? 7 : StrLen * 16 / 3) + IsNegative; in getSufficientBitsNeeded()
H A DAPFloat.cpp3131 bool IsNegative = str.front() == '-'; in convertFromStringSpecials() local
3132 if (IsNegative) { in convertFromStringSpecials()
3156 makeNaN(IsSignaling, IsNegative); in convertFromStringSpecials()
3182 makeNaN(IsSignaling, IsNegative, &Payload); in convertFromStringSpecials()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp939 return {Ret, IsNegative}; in demangleNumber()
947 return {Ret, IsNegative}; in demangleNumber()
961 bool IsNegative = false; in demangleUnsigned() local
964 if (IsNegative) in demangleUnsigned()
970 bool IsNegative = false; in demangleSigned() local
976 return IsNegative ? -I : I; in demangleSigned()
1319 bool IsNegative = false; in demangleStringLiteral() local
1471 bool IsNegative = false; in demangleLocallyScopedNamePiece() local
1473 assert(!IsNegative); in demangleLocallyScopedNamePiece()
2133 bool IsNegative = false; in demangleArrayType() local
[all …]
H A DMicrosoftDemangleNodes.cpp194 if (IsNegative) in output()
/freebsd-14.2/contrib/llvm-project/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
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp298 bool IsNegative) const;
792 if (IsNegative) in emitRcpIEEE1ULP()
862 bool IsNegative) { in emitRsqIEEE1ULP() argument
876 ConstantFP::get(Ty, IsNegative ? -0x1.0p+12 : 0x1.0p+12); in emitRsqIEEE1ULP()
915 bool IsNegative = false; in optimizeWithRsq() local
927 return IsNegative ? Builder.CreateFNeg(Result) : Result; in optimizeWithRsq()
930 return emitRsqIEEE1ULP(Builder, Den, IsNegative); in optimizeWithRsq()
952 bool IsNegative = false; in optimizeWithRcp() local
954 (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRcp()
959 if (IsNegative) in optimizeWithRcp()
[all …]
H A DSIISelLowering.cpp14096 bool IsNegative = false; in performFDivCombine() local
14098 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
14105 return IsNegative ? DAG.getNode(ISD::FNEG, SL, VT, Rsq, Flags) : Rsq; in performFDivCombine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp398 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument
401 if (IsNegative) in parseSingleInteger()
409 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument
414 if (IsNegative) in parseSingleFloat()
423 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument
436 if (IsNegative) in parseSpecialFloatMaybe()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h631 const bool IsNegative = (X < 0) ^ (Y < 0); in MulOverflow() local
632 Result = IsNegative ? (0 - UResult) : UResult; in MulOverflow()
641 if (IsNegative) in MulOverflow()
/freebsd-14.2/contrib/llvm-project/lldb/include/lldb/DataFormatters/
H A DFormattersHelpers.h91 bool IsNegative() const { in IsNegative() function
/freebsd-14.2/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-14.2/contrib/googletest/docs/reference/
H A Dassertions.md401 bool IsNegative(T x) {
405 EXPECT_PRED1(IsNegative<int>, -5); // Must specify type for IsNegative
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCommonArgs.cpp320 bool IsNegative = Name.starts_with("no-"); in handleTargetFeaturesGroup() local
321 if (IsNegative) in handleTargetFeaturesGroup()
324 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp930 bool IsNegative = false; in canonicalizeSaturatedSubtract() local
935 IsNegative = true; in canonicalizeSaturatedSubtract()
943 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract()
949 if (IsNegative) in canonicalizeSaturatedSubtract()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp363 MachineInstr *emitTestBit(Register TestReg, uint64_t Bit, bool IsNegative,
368 MachineInstr *emitCBZ(Register CompareReg, bool IsNegative,
1572 Register TestReg, uint64_t Bit, bool IsNegative, MachineBasicBlock *DstMBB, in emitTestBit() argument
1580 TestReg = getTestBitReg(TestReg, Bit, IsNegative, MRI); in emitTestBit()
1597 unsigned Opc = OpcTable[UseWReg][IsNegative]; in emitTestBit()
1646 bool IsNegative, in emitCBZ() argument
1660 unsigned Opc = OpcTable[IsNegative][Width == 64]; in emitCBZ()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp3043 bool IsNegative = Token.is(MIToken::minus); in parseOffset() local
3050 if (IsNegative) in parseOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp1929 bool IsNegative = parseOptionalToken(AsmToken::Minus); in parseFPImm() local
1942 if (IsNegative) in parseFPImm()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp8944 bool IsNegative) const { in expandABS()
8951 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
8959 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
8968 if (IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
8979 (!IsNegative && !isOperationLegalOrCustom(ISD::ADD, VT)) || in expandABS()
8980 (IsNegative && !isOperationLegalOrCustom(ISD::SUB, VT)) || in expandABS()
8991 if (!IsNegative) in expandABS()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1077 bool IsNegative = C && C->getAPIntValue().isNegative(); in LowerSETCC() local
1078 if (IsNegative || isSExtFree(LHS) || isSExtFree(RHS)) in LowerSETCC()
/freebsd-14.2/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc2431 bool IsNegative(T x) { in IsNegative() function
2451 EXPECT_PRED1(IsNegative<int>, -5); in TEST()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h5176 bool IsNegative = false) const;
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp2327 llvm::Value *IsNegative = CGF.Builder.CreateICmpSLT(Signed, Zero); in EmitCheckedMixedSignMultiply() local
2330 CGF.Builder.CreateSelect(IsNegative, AbsOfNegative, Signed); in EmitCheckedMixedSignMultiply()
2346 CGF.Builder.CreateZExt(IsNegative, OpTy)); in EmitCheckedMixedSignMultiply()
2354 CGF.Builder.CreateSelect(IsNegative, NegativeResult, UnsignedResult); in EmitCheckedMixedSignMultiply()
2359 IsNegative, CGF.Builder.CreateIsNotNull(UnsignedResult)); in EmitCheckedMixedSignMultiply()
2371 IsNegative, CGF.Builder.CreateNeg(UnsignedResult), UnsignedResult); in EmitCheckedMixedSignMultiply()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp3444 bool IsNegative) { in getAbsolute() argument
3446 if (IsNegative) in getAbsolute()

12