Home
last modified time | relevance | path

Searched refs:isNegative (Results 1 – 25 of 61) sorted by relevance

123

/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDAPSIntType.cpp21 Value.isSigned() && Value.isNegative()) in testInRange()
45 if (Value.isSigned() && Value.isNegative()) in testInRange()
HDBasicValueFactory.cpp179 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
197 if (V2.isSigned() && V2.isNegative()) in evalAPSInt()
/NextBSD/contrib/llvm/include/llvm/ADT/
HDAPInt.h319 bool isNegative() const { return (*this)[BitWidth - 1]; } in isNegative() function
324 bool isNonNegative() const { return !isNegative(); } in isNonNegative()
354 return !isNegative() && countPopulation() == BitWidth - 1; in isMaxSignedValue()
368 return isNegative() && isPowerOf2(); in isMinSignedValue()
1060 return getMinSignedBits() > 64 ? isNegative() : getSExtValue() < RHS; in slt()
1128 return getMinSignedBits() > 64 ? !isNegative() : getSExtValue() > RHS; in sgt()
1317 if (isNegative()) in getMinSignedBits()
1382 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1572 if (isNegative()) in abs()
HDAPFloat.h399 bool isNegative() const { return sign; } in isNegative() function
438 bool isPosZero() const { return isZero() && !isNegative(); } in isPosZero()
439 bool isNegZero() const { return isZero() && isNegative(); } in isNegZero()
HDAPSInt.h309 if (I1.isNegative()) in compareValues()
313 if (I2.isNegative()) in compareValues()
/NextBSD/contrib/llvm/lib/Support/
HDAPInt.cpp562 bool lhsNeg = isNegative(); in slt()
563 bool rhsNeg = rhs.isNegative(); in slt()
625 unsigned isNegative = *p == '-'; in getBitsNeeded() local
635 return slen + isNegative; in getBitsNeeded()
637 return slen * 3 + isNegative; in getBitsNeeded()
639 return slen * 4 + isNegative; in getBitsNeeded()
662 return isNegative + 1; in getBitsNeeded()
664 return isNegative + log + 1; in getBitsNeeded()
1072 if (isNegative()) in ashr()
1096 if (isNegative()) in ashr()
[all …]
HDAPFloat.cpp121 bool isNegative; in readExponent() local
128 isNegative = (*p == '-'); in readExponent()
154 if (isNegative) in readExponent()
1875 bool inputSign = isNegative(); in roundToIntegral()
1884 if (inputSign != isNegative()) in roundToIntegral()
2280 if (isSigned && api.isNegative()) { in convertFromAPInt()
3556 if (isNegative()) in toString()
3564 if (isNegative()) in toString()
3577 if (isNegative()) in toString()
3808 if (!isNegative()) in next()
[all …]
/NextBSD/contrib/llvm/lib/Analysis/
HDValueTracking.cpp218 if (!CLHS->getValue().isNegative()) { in computeKnownBitsAddSub()
274 if (!Known.isNegative()) { in computeKnownBitsAddSub()
278 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in computeKnownBitsAddSub()
282 else if (LHSKnownOne.isNegative() && KnownOne2.isNegative()) in computeKnownBitsAddSub()
305 bool isKnownNonNegativeOp1 = KnownZero.isNegative(); in computeKnownBitsMul()
306 bool isKnownNonNegativeOp0 = KnownZero2.isNegative(); in computeKnownBitsMul()
307 bool isKnownNegativeOp1 = KnownOne.isNegative(); in computeKnownBitsMul()
308 bool isKnownNegativeOp0 = KnownOne2.isNegative(); in computeKnownBitsMul()
343 if (isKnownNonNegative && !KnownOne.isNegative()) in computeKnownBitsMul()
345 else if (isKnownNegative && !KnownZero.isNegative()) in computeKnownBitsMul()
[all …]
HDInstructionSimplify.cpp2052 if (!LHSOffsetValue.isNegative() && in computePointerICmp()
2053 !RHSOffsetValue.isNegative() && in computePointerICmp()
2313 if (CI2->isNegative()) { in SimplifyICmpInst()
2348 if (CI2->isNegative()) { in SimplifyICmpInst()
2445 return CI->getValue().isNegative() ? in SimplifyICmpInst()
2451 return CI->getValue().isNegative() ? in SimplifyICmpInst()
2497 return CI->getValue().isNegative() ? in SimplifyICmpInst()
2502 return CI->getValue().isNegative() ? in SimplifyICmpInst()
3107 if (CFP->getValueAPF().isNegative()) { in SimplifyFCmpInst()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineCompares.cpp53 if (In2->isNegative()) in HasAddOverflow()
87 if (In2->isNegative()) in HasSubOverflow()
194 if (UnknownBits.isNegative()) { // Sign bit is unknown in ComputeSignedMinMaxValuesFromKnownBits()
874 } else if (DivRHS->isNegative()) { // Divisor is < 0. in FoldICmpDivCst()
1063 if (AP2.isNegative() != AP1.isNegative()) in FoldICmpCstShrCst()
1080 if (IsAShr && AP1.isNegative()) in FoldICmpCstShrCst()
1177 if (!XorCst->isNegative()) { in visitICmpInstWithInstAndIntCst()
1247 (!AndCst->isNegative() && RHSV.isNonNegative())) { in visitICmpInstWithInstAndIntCst()
1300 if (!ICI.isSigned() || (!AndCst->isNegative() && !RHS->isNegative())) in visitICmpInstWithInstAndIntCst()
1316 if (!ShiftedAndCst->isNegative() && !ShiftedRHSCst->isNegative()) in visitICmpInstWithInstAndIntCst()
[all …]
HDInstCombineMulDivRem.cpp243 if (Val.isNegative() && PosVal.isPowerOf2()) { in visitMul()
1009 if (C->getValue().isNegative()) { in visitUDivOperand()
1424 if (match(Op1, m_APInt(Y)) && Y->isNegative() && !Y->isMinSignedValue()) { in visitSRem()
1457 if (RHS->isNegative()) in visitSRem()
1466 if (RHS->isNegative()) in visitSRem()
HDInstCombineSimplifyDemanded.cpp711 if (DemandedMask.isNegative() && KnownZero.isNonNegative()) { in SimplifyDemandedUseBits()
716 if (LHSKnownZero.isNegative()) in SimplifyDemandedUseBits()
/NextBSD/contrib/compiler-rt/lib/ubsan/
HDubsan_value.h187 bool isNegative() const { in isNegative() function
HDubsan_handlers.cc189 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
195 else if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
HDCastSizeChecker.cpp82 if (Left.isNegative()) in evenFlexibleArraySize()
/NextBSD/contrib/llvm/include/llvm/IR/
HDConstants.h156 bool isNegative() const { return Val.isNegative(); } in isNegative() function
276 bool isNegative() const { return Val.isNegative(); } in isNegative() function
/NextBSD/contrib/llvm/tools/clang/lib/Lex/
HDPPExpressions.cpp254 if (!Literal.isUnsigned && Result.Val.isNegative()) { in EvaluateValue()
551 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
556 if (!RHS.isUnsigned() && RHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDRecordLayout.h279 return !CXXInfo->VBPtrOffset.isNegative(); in hasVBPtr()
HDCharUnits.h125 bool isNegative() const { return Quantity < 0; } in isNegative() function
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDSeparateConstOffsetFromGEP.cpp447 if (!ConstLHS->isNegative()) in CanTraceInto()
451 if (!ConstRHS->isNegative()) in CanTraceInto()
HDFloat2Int.cpp320 (F.isZero() && F.isNegative() && isa<FPMathOperator>(I) && in walkForwards()
HDReassociate.cpp1629 if (CI->isNegative() && !CI->isMinValue(true)) { in OptimizeAdd()
1640 if (CF->isNegative()) { in OptimizeAdd()
1998 if (!CF->isNegative()) in canonicalizeNegConstExpr()
/NextBSD/contrib/llvm/lib/IR/
HDConstantRange.cpp196 if (getLower().isNegative() == getUpper().isNegative()) in getSignedMax()
/NextBSD/contrib/llvm/lib/Target/ARM/AsmParser/
HDARMAsmParser.cpp498 unsigned isNegative : 1; // Negated OffsetReg? (~'U' bit) member
1267 if (!isMem() || !Memory.OffsetRegNum || Memory.isNegative || in isMemTBB()
1273 if (!isMem() || !Memory.OffsetRegNum || Memory.isNegative || in isMemTBH()
1285 if (!isMem() || !Memory.OffsetRegNum || Memory.isNegative || in isT2MemRegOffset()
1298 if (!isMem() || !Memory.OffsetRegNum || Memory.isNegative || in isMemThumbRR()
2133 Val = ARM_AM::getAM2Opc(Memory.isNegative ? ARM_AM::sub : ARM_AM::add, in addAddrMode2Operands()
2177 Val = ARM_AM::getAM3Opc(Memory.isNegative ? ARM_AM::sub : ARM_AM::add, 0); in addAddrMode3Operands()
2312 ARM_AM::getAM2Opc(Memory.isNegative ? ARM_AM::sub : ARM_AM::add, in addMemRegOffsetOperands()
2769 unsigned ShiftImm, unsigned Alignment, bool isNegative, SMLoc S, in CreateMem() argument
2778 Op->Memory.isNegative = isNegative; in CreateMem()
[all …]
/NextBSD/contrib/llvm/lib/Target/AArch64/AsmParser/
HDAArch64AsmParser.cpp2130 bool isNegative = false; in tryParseFPImm() local
2132 isNegative = true; in tryParseFPImm()
2138 if (isNegative) in tryParseFPImm()
2156 if (!isNegative && Tok.getString().startswith("0x")) { in tryParseFPImm()
2166 IntVal ^= (uint64_t)isNegative << 63; in tryParseFPImm()
3104 bool isNegative = false; in parseOperand() local
3106 isNegative = true; in parseOperand()
3124 else if (IntVal != 0 || isNegative) in parseOperand()

123