/freebsd/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() 90 unsigned P = D.getBitWidth() - 1; // initialize P 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 computeForAddSub() 139 assert(Borrow.getBitWidth() == 1 && "Borrow must be 1-bit"); in computeForSubBorrow() 150 unsigned BitWidth = getBitWidth(); in sextInReg() 174 MaskedVal.clearLowBits(getBitWidth() - N); in makeGE() 205 unsigned SignBitPosition = Val.getBitWidth() - 1; in smax() 218 unsigned SignBitPosition = Val.getBitWidth() - 1; in smin() 263 unsigned SignBitPosition = LHS.getBitWidth() - 1; in abds() 287 unsigned BitWidth = LHS.getBitWidth(); in shl() 372 unsigned BitWidth = LHS.getBitWidth(); in lshr() [all …]
|
H A D | APInt.cpp | 145 reallocate(RHS.getBitWidth()); in assignSlowCase() 239 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *() 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(); I < NewLen; I <<= 1) in getSplat() 1096 unsigned rotBitWidth = rotateAmt.getBitWidth(); in rotateModulo() 1103 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth)); in rotateModulo() [all …]
|
H A D | SlowDynamicAPInt.cpp | 118 return std::max(A.getBitWidth(), B.getBitWidth()); in getMaxWidth() 235 unsigned Width = std::max(Val.getBitWidth(), O.Val.getBitWidth()); in operator %() 242 APInt Ret = Val.sext(2 * Val.getBitWidth()); in operator -()
|
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 getFromIntValue()
|
/freebsd/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 makeExactMulNUWRegion() 280 return ConstantRange::getFull(V.getBitWidth()); in makeExactMulNUWRegion() 292 unsigned BitWidth = V.getBitWidth(); in makeExactMulNSWRegion() [all …]
|
H A D | ConstantRangeList.cpp | 42 assert(getBitWidth() == NewRange.getBitWidth()); in insert() 89 assert(getBitWidth() == SubRange.getBitWidth()); in subtract() 145 assert(getBitWidth() == CRL.getBitWidth() && in unionWith() 157 ConstantRange PreviousRange(getBitWidth(), false); in unionWith() 195 assert(getBitWidth() == CRL.getBitWidth() && in intersectWith()
|
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/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(); in zext() 176 if (BitWidth > getBitWidth()) in anyextOrTrunc() 178 if (BitWidth < getBitWidth()) in anyextOrTrunc() 186 if (BitWidth > getBitWidth()) in zextOrTrunc() 188 if (BitWidth < getBitWidth()) in zextOrTrunc() 196 if (BitWidth > getBitWidth()) in sextOrTrunc() [all …]
|
/freebsd/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; in isSameValue() 929 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() 931 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat() 1024 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1448 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function 2383 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
|
/freebsd/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() 472 return mul(APInt(C.getBitWidth(), 0)); in lshr() 480 ErrorMSBs = A.getBitWidth(); in lshr() 493 if (n < A.getBitWidth()) { in sextOrTrunc() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ConstantRangeList.h | 38 assert(R.getBitWidth() == getBitWidth()); in ConstantRangeList() 63 uint32_t getBitWidth() const { return 64; } in getBitWidth() function
|
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(); } in getBitWidth() function
|
/freebsd/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 getBitWidth() function 328 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && in evaluateWith() 330 if (TruncBits) N = N.trunc(N.getBitWidth() - TruncBits); in evaluateWith() 331 if (SExtBits) N = N.sext(N.getBitWidth() + SExtBits); in evaluateWith() 332 if (ZExtBits) N = N.zext(N.getBitWidth() + ZExtBits); in evaluateWith() 337 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && in evaluateWith() 339 if (TruncBits) N = N.truncate(N.getBitWidth() - TruncBits); in evaluateWith() 340 if (SExtBits) N = N.signExtend(N.getBitWidth() + SExtBits); in evaluateWith() 341 if (ZExtBits) N = N.zeroExtend(N.getBitWidth() + ZExtBits); in evaluateWith() 379 unsigned BitWidth = Val.getBitWidth(); in LinearExpression() [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/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()) in unifyBitWidth() 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()
|
/freebsd/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/contrib/llvm-project/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anon807bcb150111::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/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | IntegralAP.h | 41 if (BitSize >= V.getBitWidth()) { in truncateCast() 125 constexpr unsigned bitWidth() const { return V.getBitWidth(); } in bitWidth() 272 return sizeof(uint32_t) + (V.getBitWidth() / CHAR_BIT); in bytesToSerialize() 276 assert(V.getBitWidth() < std::numeric_limits<uint8_t>::max()); in serialize() 277 uint32_t BitWidth = V.getBitWidth(); in serialize() 306 APSInt Result = Value.trunc(LHS.getBitWidth()); in CheckAddSubMulUB()
|
/freebsd/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 | LoopUnrolling.cpp | 286 if (InitNum.getBitWidth() != BoundNum.getBitWidth()) { in shouldCompletelyUnroll() 287 InitNum = InitNum.zext(BoundNum.getBitWidth()); in shouldCompletelyUnroll() 288 BoundNum = BoundNum.zext(InitNum.getBitWidth()); in shouldCompletelyUnroll()
|
/freebsd/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/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() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCostIntrin() [all …]
|