| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | DivisionByConstantInfo.cpp | 25 assert(D.getBitWidth() >= 3 && "Does not work at smaller bitwidths."); in get() 28 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() 32 APInt T = SignedMin + (D.lshr(D.getBitWidth() - 1)); in get() 34 unsigned P = D.getBitWidth() - 1; // initialize P in get() 63 Retval.ShiftAmount = P - D.getBitWidth(); // resulting shift in get() 77 assert(D.getBitWidth() > 1 && "Does not work at smaller bitwidths."); in get() 83 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() 84 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get() 89 unsigned P = D.getBitWidth() - 1; // initialize P in get() 131 } while (P < D.getBitWidth() * 2 && in get() [all …]
|
| H A D | KnownBits.cpp | 101 unsigned BitWidth = getBitWidth(); in sextInReg() 188 unsigned BitWidth = LHS.getBitWidth(); in shl() 273 unsigned BitWidth = LHS.getBitWidth(); in lshr() 319 unsigned BitWidth = LHS.getBitWidth(); in ashr() 433 KnownBits KnownAbs(getBitWidth()); in abs() 493 unsigned BitWidth = Res.getBitWidth(); in computeForSatAddSub() 649 unsigned BitWidth = LHS.getBitWidth(); in mul() 746 unsigned BitWidth = LHS.getBitWidth(); in mulhs() 972 unsigned BitWidth = getBitWidth(); in blsi() 983 unsigned BitWidth = getBitWidth(); in blsmsk() [all …]
|
| H A D | APInt.cpp | 145 reallocate(RHS.getBitWidth()); in assignSlowCase() 354 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concatSlowCase() 356 Result.insertBits(*this, NewLSB.getBitWidth()); in concatSlowCase() 369 unsigned subBitWidth = subBits.getBitWidth(); in insertBits() 600 assert(getBitWidth() % SplatSizeInBits == 0 && in isSplat() 1999 Overflow = ShAmt >= getBitWidth(); in sshl_ov() 2016 Overflow = ShAmt >= getBitWidth(); in ushl_ov() 2791 unsigned CoeffWidth = A.getBitWidth(); in SolveQuadraticEquationWrap() 2792 assert(CoeffWidth == B.getBitWidth() && CoeffWidth == C.getBitWidth()); in SolveQuadraticEquationWrap() 2980 assert(A.getBitWidth() == B.getBitWidth() && "Must have the same bitwidth"); in GetMostSignificantDifferentBit() [all …]
|
| H A D | APFixedPoint.cpp | 40 NewVal = NewVal.extend(NewVal.getBitWidth() + RelativeUpscale); in convert() 44 NewVal.getBitWidth(), in convert() 46 NewVal.getBitWidth())); in convert() 359 Amt = std::min(Amt, ThisVal.getBitWidth()); in shl() 388 IntPart = IntPart.extend(IntPart.getBitWidth() + Lsb); in toString() 527 Value.getBitWidth(), Value.isSigned()); in getFromIntValue()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 53 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 83 return KnownBits(getBitWidth()); in toKnownBits() 102 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion() 210 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp() 393 assert(getBitWidth() == Other.getBitWidth()); in isSizeStrictlySmallerThan() 493 assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width"); in subtract() 526 assert(getBitWidth() == CR.getBitWidth() && in intersectWith() 632 assert(getBitWidth() == CR.getBitWidth() && in unionWith() 742 auto BW = getBitWidth(); in castOp() 753 auto BW = getBitWidth(); in castOp() [all …]
|
| H A D | Operator.cpp | 100 assert(Offset.getBitWidth() == in accumulateConstantOffset() 113 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 114 APInt IndexedSize = APInt(Offset.getBitWidth(), Size); in accumulateConstantOffset() 154 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownBits.h | 40 unsigned getBitWidth() const { in getBitWidth() function 41 assert(Zero.getBitWidth() == One.getBitWidth() && in getBitWidth() 43 return Zero.getBitWidth(); in getBitWidth() 164 unsigned OldBitWidth = getBitWidth(); in zext() 178 if (BitWidth > getBitWidth()) in anyextOrTrunc() 180 if (BitWidth < getBitWidth()) in anyextOrTrunc() 188 if (BitWidth > getBitWidth()) in zextOrTrunc() 190 if (BitWidth < getBitWidth()) in zextOrTrunc() 198 if (BitWidth > getBitWidth()) in sextOrTrunc() 200 if (BitWidth < getBitWidth()) in sextOrTrunc() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 325 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues() 329 if (I1.getBitWidth() > I2.getBitWidth()) in compareValues() 330 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues() 331 if (I2.getBitWidth() > I1.getBitWidth()) in compareValues() 332 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues() 384 return LHS.getBitWidth() == RHS.getBitWidth() &&
|
| H A D | APInt.h | 532 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 535 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 536 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 538 return I1.zext(I2.getBitWidth()) == I2; in isSameValue() 927 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() 929 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat() 1016 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1433 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function 2327 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 192 A = APInt(Ty->getBitWidth(), 0); in Polynomial() 210 if (ErrorMSBs > A.getBitWidth()) in incErrorMSBs() 211 ErrorMSBs = A.getBitWidth(); in incErrorMSBs() 243 if (C.getBitWidth() != A.getBitWidth()) { in add() 304 if (C.getBitWidth() != A.getBitWidth()) { in mul() 461 if (C.getBitWidth() != A.getBitWidth()) { in lshr() 471 if (shiftAmt >= C.getBitWidth()) in lshr() 480 ErrorMSBs = A.getBitWidth(); in lshr() 493 if (n < A.getBitWidth()) { in sextOrTrunc() 500 if (n > A.getBitWidth()) { in sextOrTrunc() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CmpInstAnalysis.cpp | 92 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 99 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 106 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp() 113 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
|
| H A D | BasicAliasAnalysis.cpp | 270 unsigned getBitWidth() const { in getBitWidth() function 306 if (TruncBits) N = N.trunc(N.getBitWidth() - TruncBits); in evaluateWith() 307 if (SExtBits) N = N.sext(N.getBitWidth() + SExtBits); in evaluateWith() 308 if (ZExtBits) N = N.zext(N.getBitWidth() + ZExtBits); in evaluateWith() 315 if (TruncBits) N = N.truncate(N.getBitWidth() - TruncBits); in evaluateWith() 348 unsigned BitWidth = Val.getBitWidth(); in LinearExpression() 372 return LinearExpression(Val, APInt(Val.getBitWidth(), 0), in GetLinearExpression() 430 if (RHS.getLimitedValue() > Val.getBitWidth()) in GetLinearExpression() 464 unsigned ShiftBits = Offset.getBitWidth() - IndexSize; in adjustToIndexSize() 1195 assert(OffsetRange.getBitWidth() == Scale.getBitWidth() && in aliasGEP() [all …]
|
| H A D | ScalarEvolutionDivision.cpp | 112 uint32_t NumeratorBW = NumeratorVal.getBitWidth(); in visitConstant() 113 uint32_t DenominatorBW = DenominatorVal.getBitWidth(); in visitConstant() 120 APInt QuotientVal(NumeratorVal.getBitWidth(), 0); in visitConstant() 121 APInt RemainderVal(NumeratorVal.getBitWidth(), 0); in visitConstant()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ |
| H A D | TargetLoweringObjectFile.cpp | 269 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal() 270 ITy->getBitWidth() == 32) && in getKindForGlobal() 272 if (ITy->getBitWidth() == 8) in getKindForGlobal() 274 if (ITy->getBitWidth() == 16) in getKindForGlobal() 277 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 292 return Index->getBitWidth() <= 64 && in isAddFoldable() 415 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd() 517 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex() 571 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth() 572 A = A.sext(B.getBitWidth()); in unifyBitWidth() 573 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth() 574 B = B.sext(A.getBitWidth()); in unifyBitWidth() 596 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
|
| H A D | InductiveRangeCheckElimination.cpp | 311 unsigned BitWidth = cast<IntegerType>(T)->getBitWidth(); in parseIvAgaisntLimit() 453 if (Ty->getBitWidth() > MaxTypeSizeForOverflowCheck) in reassociateSubLHS() 456 auto WideTy = IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in reassociateSubLHS() 573 if (RTy->getBitWidth() < MainLoopStructure.ExitCountTy->getBitWidth()) in calculateSubRanges() 662 if (IVType->getBitWidth() > RCType->getBitWidth()) in computeSafeIterationSpace() 701 unsigned BitWidth = RCType->getBitWidth(); in computeSafeIterationSpace() 807 if (EndType->getBitWidth() > RCType->getBitWidth()) { in computeSafeIterationSpace() 808 assert(EndType->getBitWidth() == RCType->getBitWidth() * 2); in computeSafeIterationSpace()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 52 return ConstantRange(getBitWidth(), false); in getEmpty() 57 return ConstantRange(getBitWidth(), true); in getFull() 86 return getFull(Lower.getBitWidth()); in getNonEmpty() 204 uint32_t getBitWidth() const { return Lower.getBitWidth(); } in getBitWidth() function
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anon7520db4b0111::PPValue 427 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue() 428 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 430 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue() 630 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 674 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 745 if (ShAmt >= LHS.getBitWidth()) { in EvaluateDirectiveSubExpr() 747 ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr() 826 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangedConstraintManager.cpp | 121 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymInclusiveRange() 189 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymRel()
|
| H A D | BasicValueFactory.cpp | 275 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt() 280 if (Amt >= V1.getBitWidth()) in evalAPSInt() 290 if (V2.isNegative() || V2.getBitWidth() > 64) in evalAPSInt() 295 if (Amt >= V1.getBitWidth()) in evalAPSInt()
|
| H A D | LoopUnrolling.cpp | 269 if (InitNum.getBitWidth() != BoundNum.getBitWidth()) { in shouldCompletelyUnroll() 270 InitNum = InitNum.zext(BoundNum.getBitWidth()); in shouldCompletelyUnroll() 271 BoundNum = BoundNum.zext(InitNum.getBitWidth()); in shouldCompletelyUnroll()
|
| H A D | SimpleConstraintManager.cpp | 100 From.getBitWidth() == To.getBitWidth() && in assumeInclusiveRangeInternal()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType() 30 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() function
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 85 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 129 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 139 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 150 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 160 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 168 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 178 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 246 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 256 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 262 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCostIntrin() [all …]
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Utility/ |
| H A D | Scalar.cpp | 36 return PromotionKey{e_int, m_integer.getBitWidth(), m_integer.isUnsigned()}; in GetPromoKey() 62 a.IntegralPromote(b.m_integer.getBitWidth(), b.m_integer.isSigned()); in PromoteToMaxType() 118 StoreIntToMemory(val, storage.data(), (val.getBitWidth() + 7) / 8); in GetBytes() 137 return (m_integer.getBitWidth() / 8); in GetByteSize() 139 return m_float.bitcastToAPInt().getBitWidth() / 8; in GetByteSize() 656 integer = integer.zext(integer.getBitWidth() + 1); in SetValueFromCString() 763 ~(sign_bit) + llvm::APInt(m_integer.getBitWidth(), 1); in SignExtend()
|