Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DX86.cpp238 bool IsNegative = Name.consume_front("no-"); in getX86TargetFeatures() local
248 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
268 bool IsNegative = Name.starts_with("no-"); in getX86TargetFeatures() local
277 Args.MakeArgString((IsNegative ? "-" : "+") + Value)); in getX86TargetFeatures()
285 if (IsNegative) in getX86TargetFeatures()
287 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in getX86TargetFeatures()
/freebsd/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.cpp3162 bool IsNegative = str.front() == '-'; in convertFromStringSpecials() local
3163 if (IsNegative) { in convertFromStringSpecials()
3187 makeNaN(IsSignaling, IsNegative); in convertFromStringSpecials()
3213 makeNaN(IsSignaling, IsNegative, &Payload); in convertFromStringSpecials()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp947 bool IsNegative = consumeFront(MangledName, '?'); in demangleNumber() local
952 return {Ret, IsNegative}; in demangleNumber()
960 return {Ret, IsNegative}; in demangleNumber()
974 bool IsNegative = false; in demangleUnsigned() local
976 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleUnsigned()
977 if (IsNegative) in demangleUnsigned()
983 bool IsNegative = false; in demangleSigned() local
985 std::tie(Number, IsNegative) = demangleNumber(MangledName); in demangleSigned()
989 return IsNegative ? -I : I; in demangleSigned()
1332 bool IsNegative = false; in demangleStringLiteral() local
[all …]
H A DMicrosoftDemangleNodes.cpp194 if (IsNegative) in output()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp299 bool IsNegative) const;
791 bool IsNegative) const { in emitRcpIEEE1ULP()
794 if (IsNegative) in emitRcpIEEE1ULP()
864 bool IsNegative) { in emitRsqIEEE1ULP() argument
878 ConstantFP::get(Ty, IsNegative ? -0x1.0p+12 : 0x1.0p+12); in emitRsqIEEE1ULP()
885 NeedScale, OutputScale, IsNegative ? ConstantFP::get(Ty, -1.0) : One); in emitRsqIEEE1ULP()
917 bool IsNegative = false; in optimizeWithRsq() local
920 if (CLHS->isExactlyValue(1.0) || (IsNegative = CLHS->isExactlyValue(-1.0))) { in optimizeWithRsq()
929 return IsNegative ? Builder.CreateFNeg(Result) : Result; in optimizeWithRsq()
932 return emitRsqIEEE1ULP(Builder, Den, IsNegative); in optimizeWithRsq()
[all …]
H A DSIISelLowering.cpp14411 bool IsNegative = false; in performFDivCombine() local
14413 (IsNegative = CLHS->isExactlyValue(-1.0))) { in performFDivCombine()
14420 return IsNegative ? DAG.getNode(ISD::FNEG, SL, VT, Rsq, Flags) : Rsq; in performFDivCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/AsmParser/
H A DWebAssemblyAsmParser.cpp385 void parseSingleInteger(bool IsNegative, OperandVector &Operands) { in parseSingleInteger() argument
388 if (IsNegative) in parseSingleInteger()
396 bool parseSingleFloat(bool IsNegative, OperandVector &Operands) { in parseSingleFloat() argument
401 if (IsNegative) in parseSingleFloat()
410 bool parseSpecialFloatMaybe(bool IsNegative, OperandVector &Operands) { in parseSpecialFloatMaybe() argument
423 if (IsNegative) in parseSpecialFloatMaybe()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h756 const bool IsNegative = (X < 0) ^ (Y < 0); in MulOverflow()
757 Result = IsNegative ? (0 - UResult) : UResult; in MulOverflow()
766 if (IsNegative) in MulOverflow()
/freebsd/contrib/llvm-project/lldb/include/lldb/DataFormatters/
H A DFormattersHelpers.h91 bool IsNegative() const { in IsNegative() function
/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.md401 bool IsNegative(T x) {
405 EXPECT_PRED1(IsNegative<int>, -5); // Must specify type for IsNegative
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp946 bool IsNegative = false; in canonicalizeSaturatedSubtract() local
951 IsNegative = true; in canonicalizeSaturatedSubtract()
959 if (IsNegative && !TrueVal->hasOneUse() && !ICI->hasOneUse()) in canonicalizeSaturatedSubtract()
965 if (IsNegative) in canonicalizeSaturatedSubtract()
/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,
1588 Register TestReg, uint64_t Bit, bool IsNegative, MachineBasicBlock *DstMBB, in emitTestBit() argument
1596 TestReg = getTestBitReg(TestReg, Bit, IsNegative, MRI); in emitTestBit()
1613 unsigned Opc = OpcTable[UseWReg][IsNegative]; in emitTestBit()
1662 bool IsNegative, in emitCBZ() argument
1676 unsigned Opc = OpcTable[IsNegative][Width == 64]; in emitCBZ()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DCommonArgs.cpp371 bool IsNegative = Name.consume_front("no-"); in handleTargetFeaturesGroup() local
373 Features.push_back(Args.MakeArgString((IsNegative ? "-" : "+") + Name)); in handleTargetFeaturesGroup()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/AsmParser/
H A DRISCVAsmParser.cpp1974 bool IsNegative = parseOptionalToken(AsmToken::Minus); in parseFPImm() local
1987 if (IsNegative) in parseFPImm()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/MIRParser/
H A DMIParser.cpp3019 bool IsNegative = Token.is(MIToken::minus); in parseOffset() local
3026 if (IsNegative) in parseOffset()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp9203 bool IsNegative) const { in expandABS()
9209 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9218 if (!IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9227 if (IsNegative && isOperationLegal(ISD::SUB, VT) && in expandABS()
9238 (!IsNegative && !isOperationLegalOrCustom(ISD::ADD, VT)) || in expandABS()
9239 (IsNegative && !isOperationLegalOrCustom(ISD::SUB, VT)) || in expandABS()
9250 if (!IsNegative) in expandABS()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp1096 bool IsNegative = C && C->getAPIntValue().isNegative(); in LowerSETCC() local
1097 if (IsNegative || isSExtFree(LHS) || isSExtFree(RHS)) in LowerSETCC()
/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/include/llvm/CodeGen/
H A DTargetLowering.h5351 bool IsNegative = false) const;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuiltin.cpp2337 llvm::Value *IsNegative = CGF.Builder.CreateICmpSLT(Signed, Zero); in EmitCheckedMixedSignMultiply() local
2340 CGF.Builder.CreateSelect(IsNegative, AbsOfNegative, Signed); in EmitCheckedMixedSignMultiply()
2356 CGF.Builder.CreateZExt(IsNegative, OpTy)); in EmitCheckedMixedSignMultiply()
2364 CGF.Builder.CreateSelect(IsNegative, NegativeResult, UnsignedResult); in EmitCheckedMixedSignMultiply()
2369 IsNegative, CGF.Builder.CreateIsNotNull(UnsignedResult)); in EmitCheckedMixedSignMultiply()
2381 IsNegative, CGF.Builder.CreateNeg(UnsignedResult), UnsignedResult); in EmitCheckedMixedSignMultiply()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp3467 bool IsNegative) { in getAbsolute() argument
3469 if (IsNegative) in getAbsolute()

12