/freebsd-src/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::getLowBitsSet(D.getBitWidth(), D.getBitWidth() - LeadingZeros); in get() 84 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() 85 APInt SignedMax = APInt::getSignedMaxValue(D.getBitWidth()); in get() [all...] |
H A D | KnownBits.cpp | 46 assert(Carry.getBitWidth() == 1 && "Carry must be 1-bit"); in computeForAddCarry() 54 unsigned BitWidth = LHS.getBitWidth(); in computeForAddCarry() 139 assert(Borrow.getBitWidth() == 1 && "Borrow must be 1-bit"); in umax() 150 unsigned BitWidth = getBitWidth(); in umin() 174 MaskedVal.clearLowBits(getBitWidth() - N); in smin() 205 unsigned SignBitPosition = Val.getBitWidth() - 1; in shl() 218 unsigned SignBitPosition = Val.getBitWidth() - 1; in shl() 263 unsigned SignBitPosition = LHS.getBitWidth() - 1; in shl() 287 unsigned BitWidth = LHS.getBitWidth(); in lshr() 372 unsigned BitWidth = LHS.getBitWidth(); [all...] |
H A D | APInt.cpp | 145 reallocate(RHS.getBitWidth()); in assignSlowCase() 239 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *() 351 /// (this->zext(NewWidth) << NewLSB.getBitWidth()) | NewLSB.zext(NewWidth) 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() 621 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat() 624 for (unsigned I = V.getBitWidth(); in getSplat() [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() 365 Amt = std::min(Amt, ThisVal.getBitWidth()); in shl() 394 IntPart = IntPart.extend(IntPart.getBitWidth() + Lsb); in toString() 533 Value.getBitWidth(), Value.isSigned()); in getFromFloatValue()
|
/freebsd-src/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 53 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 62 return getEmpty(Known.getBitWidth()); in fromKnownBits() 64 return getFull(Known.getBitWidth()); in fromKnownBits() 83 return KnownBits(getBitWidth()); in toKnownBits() 102 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion() 207 Offset = APInt(getBitWidth(), 0); in getEquivalentICmp() 210 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp() 278 unsigned BitWidth = V.getBitWidth(); in makeExactMulNSWRegion() 280 return ConstantRange::getFull(V.getBitWidth()); in makeExactMulNSWRegion() [all...] |
H A D | Operator.cpp | 114 assert(Offset.getBitWidth() == in accumulateConstantOffset() 128 Offset += CI->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 136 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 137 APInt IndexedSize = APInt(Offset.getBitWidth(), Size); in accumulateConstantOffset() 177 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
|
/freebsd-src/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() 51 return Zero.popcount() + One.popcount() == getBitWidth(); in isConstant() 162 unsigned OldBitWidth = getBitWidth(); 176 if (BitWidth > getBitWidth()) 178 if (BitWidth < getBitWidth()) in anyextOrTrunc() 186 if (BitWidth > getBitWidth()) 188 if (BitWidth < getBitWidth()) in zextOrTrunc() [all...] |
/freebsd-src/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 | 534 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 537 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 538 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 540 return I1.zext(I2.getBitWidth()) == I2; 926 /// (this->zext(NewWidth) << NewLSB.getBitWidth()) | NewLSB.zext(NewWidth) in concat() 929 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() 931 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLS in concat() 1433 unsigned getBitWidth() const { return BitWidth; } getBitWidth() function [all...] |
/freebsd-src/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() [all...] |
/freebsd-src/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 | 280 unsigned getBitWidth() const { in withZExtOfValue() 328 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && in hasSameCastsAs() 330 if (TruncBits) N = N.trunc(N.getBitWidth() - TruncBits); in hasSameCastsAs() 331 if (SExtBits) N = N.sext(N.getBitWidth() + SExtBits); in hasSameCastsAs() 332 if (ZExtBits) N = N.zext(N.getBitWidth() + ZExtBits); 337 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && 339 if (TruncBits) N = N.truncate(N.getBitWidth() - TruncBits); 340 if (SExtBits) N = N.signExtend(N.getBitWidth() + SExtBits); 341 if (ZExtBits) N = N.zeroExtend(N.getBitWidth() + ZExtBits); 379 unsigned BitWidth = Val.getBitWidth(); in GetLinearExpression() 270 unsigned getBitWidth() const { getBitWidth() function [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-src/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-src/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() 515 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex() 569 if (A.getBitWidth() < B.getBitWidth()) 570 A = A.sext(B.getBitWidth()); in unifyBitWidth() 571 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth() 572 B = B.sext(A.getBitWidth()); in unifyBitWidth() 594 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump() [all...] |
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-src/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() 209 uint32_t getBitWidth() const { return Lower.getBitWidth(); } 204 uint32_t getBitWidth() const { return Lower.getBitWidth(); } getBitWidth() function
|
/freebsd-src/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anonbe4889670111::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() [all...] |
/freebsd-src/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 | 286 if (InitNum.getBitWidth() != BoundNum.getBitWidth()) { in madeNewBranch() 287 InitNum = InitNum.zext(BoundNum.getBitWidth()); in madeNewBranch() 288 BoundNum = BoundNum.zext(InitNum.getBitWidth()); in madeNewBranch()
|
H A D | SimpleConstraintManager.cpp | 100 From.getBitWidth() == To.getBitWidth() && in assumeInclusiveRangeInternal()
|
/freebsd-src/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-src/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 89 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 133 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 143 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 154 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 164 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 172 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 182 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 250 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 260 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 266 if ((Idx < 2) || (Imm.getBitWidth() < in getIntImmCostIntrin() [all...] |
/freebsd-src/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() + 7) / 8; in GetByteSize() 139 return (m_float.bitcastToAPInt().getBitWidth() + 7) / 8; in GetByteSize() 656 integer = integer.zext(integer.getBitWidth() + 1); in SetValueFromCString() 761 ~(sign_bit) + llvm::APInt(m_integer.getBitWidth(), 1); in SignExtend()
|