| /openbsd-src/gnu/llvm/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() 82 APInt AllOnes = APInt::getAllOnes(D.getBitWidth()).lshr(LeadingZeros); 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() [all …]
|
| H A D | KnownBits.cpp | 52 assert(Carry.getBitWidth() == 1 && "Carry must be 1-bit"); in computeForAddCarry() 89 unsigned BitWidth = getBitWidth(); in sextInReg() 113 MaskedVal.clearLowBits(getBitWidth() - N); in makeGE() 144 unsigned SignBitPosition = Val.getBitWidth() - 1; in smax() 157 unsigned SignBitPosition = Val.getBitWidth() - 1; in smin() 168 unsigned BitWidth = LHS.getBitWidth(); in shl() 222 unsigned BitWidth = LHS.getBitWidth(); in lshr() 275 unsigned BitWidth = LHS.getBitWidth(); in ashr() 401 KnownBits KnownAbs(getBitWidth()); in abs() 417 unsigned BitWidth = LHS.getBitWidth(); in mul() [all …]
|
| H A D | APInt.cpp | 144 reallocate(RHS.getBitWidth()); in assignSlowCase() 230 APInt Result(getMemory(getNumWords()), getBitWidth()); in operator *() 345 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concatSlowCase() 347 Result.insertBits(*this, NewLSB.getBitWidth()); in concatSlowCase() 360 unsigned subBitWidth = subBits.getBitWidth(); in insertBits() 592 assert(getBitWidth() % SplatSizeInBits == 0 && in isSplat() 613 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat() 616 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat() 1088 unsigned rotBitWidth = rotateAmt.getBitWidth(); in rotateModulo() 1095 rot = rot.urem(APInt(rot.getBitWidth(), BitWidth)); in rotateModulo() [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()
|
| /openbsd-src/gnu/llvm/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() 52 return Zero.countPopulation() + One.countPopulation() == getBitWidth(); in isConstant() 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() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 53 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 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() 249 unsigned BitWidth = V.getBitWidth(); in makeExactMulNUWRegion() 251 return ConstantRange::getFull(V.getBitWidth()); in makeExactMulNUWRegion() 263 unsigned BitWidth = V.getBitWidth(); in makeExactMulNSWRegion() 297 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion() [all …]
|
| H A D | Operator.cpp | 94 assert(Offset.getBitWidth() == in accumulateConstantOffset() 107 Index = Index.sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 108 APInt IndexedSize = APInt(Offset.getBitWidth(), Size); in accumulateConstantOffset() 150 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)), in accumulateConstantOffset()
|
| /openbsd-src/gnu/llvm/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 | 542 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 545 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 546 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 548 return I1.zext(I2.getBitWidth()) == I2; in isSameValue() 937 unsigned NewWidth = getBitWidth() + NewLSB.getBitWidth(); in concat() 939 return APInt(NewWidth, (U.VAL << NewLSB.getBitWidth()) | NewLSB.U.VAL); in concat() 1022 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1439 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function 2331 return LHS.getBitWidth() == RHS.getBitWidth() && LHS == RHS;
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | InterleavedLoadCombinePass.cpp | 191 A = APInt(Ty->getBitWidth(), 0); in Polynomial() 209 if (ErrorMSBs > A.getBitWidth()) in incErrorMSBs() 210 ErrorMSBs = A.getBitWidth(); in incErrorMSBs() 242 if (C.getBitWidth() != A.getBitWidth()) { in add() 303 if (C.getBitWidth() != A.getBitWidth()) { in mul() 460 if (C.getBitWidth() != A.getBitWidth()) { in lshr() 470 if (shiftAmt >= C.getBitWidth()) in lshr() 471 return mul(APInt(C.getBitWidth(), 0)); in lshr() 479 ErrorMSBs = A.getBitWidth(); in lshr() 492 if (n < A.getBitWidth()) { in sextOrTrunc() [all …]
|
| /openbsd-src/gnu/llvm/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 | 251 unsigned getBitWidth() const { in getBitWidth() function 285 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && in evaluateWith() 287 if (TruncBits) N = N.trunc(N.getBitWidth() - TruncBits); in evaluateWith() 288 if (SExtBits) N = N.sext(N.getBitWidth() + SExtBits); in evaluateWith() 289 if (ZExtBits) N = N.zext(N.getBitWidth() + ZExtBits); in evaluateWith() 294 assert(N.getBitWidth() == V->getType()->getPrimitiveSizeInBits() && in evaluateWith() 296 if (TruncBits) N = N.truncate(N.getBitWidth() - TruncBits); in evaluateWith() 297 if (SExtBits) N = N.signExtend(N.getBitWidth() + SExtBits); in evaluateWith() 298 if (ZExtBits) N = N.zeroExtend(N.getBitWidth() + ZExtBits); in evaluateWith() 329 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()
|
| H A D | Loads.cpp | 32 const APInt APAlign(Offset.getBitWidth(), Alignment.value()); in isAligned() 63 !Offset.urem(APInt(Offset.getBitWidth(), Alignment.value())) in isDereferenceableAndAlignedPointer() 76 Base, Alignment, Offset + Size.sextOrTrunc(Offset.getBitWidth()), DL, in isDereferenceableAndAlignedPointer() 99 APInt KnownDerefBytes(Size.getBitWidth(), in isDereferenceableAndAlignedPointer() 136 APInt KnownDerefBytes(Size.getBitWidth(), ObjSize); in isDereferenceableAndAlignedPointer() 340 if (Size.getBitWidth() > 64) in isSafeToLoadUnconditionally()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 296 return Index->getBitWidth() <= 64 && in isAddFoldable() 419 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd() 521 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex() 575 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth() 576 A = A.sext(B.getBitWidth()); in unifyBitWidth() 577 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth() 578 B = B.sext(A.getBitWidth()); in unifyBitWidth() 593 IndexOffset.getBitWidth(), in emitBump() 615 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
|
| /openbsd-src/gnu/llvm/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
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 60 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anonf324abec0111::PPValue 425 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue() 426 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 428 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue() 628 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 672 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 743 if (ShAmt >= LHS.getBitWidth()) { in EvaluateDirectiveSubExpr() 745 ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr() 824 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
|
| /openbsd-src/gnu/llvm/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 | 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()
|
| H A D | SVals.cpp | 147 if (1 == Value.getBitWidth()) in VisitConcreteInt() 149 return Context.getIntTypeForBitwidth(Value.getBitWidth(), Value.isSigned()); in VisitConcreteInt() 302 << Value.getBitWidth() << 'b'; in dumpToStream()
|
| /openbsd-src/gnu/llvm/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
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 85 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 128 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 138 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 149 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 159 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 167 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 177 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostInst() 245 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 255 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCostIntrin() 261 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCostIntrin() [all …]
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | Scalar.cpp | 35 return PromotionKey{e_int, m_integer.getBitWidth(), m_integer.isUnsigned()}; in GetPromoKey() 61 a.IntegralPromote(b.m_integer.getBitWidth(), b.m_integer.isSigned()); in PromoteToMaxType() 117 StoreIntToMemory(val, storage.data(), (val.getBitWidth() + 7) / 8); in GetBytes() 136 return (m_integer.getBitWidth() / 8); in GetByteSize() 138 return m_float.bitcastToAPInt().getBitWidth() / 8; in GetByteSize() 655 integer = integer.zext(integer.getBitWidth() + 1); in SetValueFromCString() 762 ~(sign_bit) + llvm::APInt(m_integer.getBitWidth(), 1); in SignExtend()
|