| /minix3/external/bsd/llvm/dist/llvm/lib/IR/ |
| H A D | ConstantRange.cpp | 46 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange() 57 uint32_t W = CR.getBitWidth(); in makeICmpRegion() 140 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet() 141 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet() 148 APInt Size(getBitWidth()+1, 0); in getSetSize() 149 Size.setBit(getBitWidth()); in getSetSize() 154 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize() 162 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax() 171 return APInt::getMinValue(getBitWidth()); in getUnsignedMin() 179 APInt SignedMax(APInt::getSignedMaxValue(getBitWidth())); in getSignedMax() [all …]
|
| H A D | Type.cpp | 59 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 79 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); in canLosslesslyBitCastTo() 81 thisPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 87 if (thatPTy->getBitWidth() == 64) in canLosslesslyBitCastTo() 130 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 131 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits() 177 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth() 327 unsigned BitWidth = getBitWidth(); in isPowerOf2ByteWidth() 332 return APInt::getAllOnesValue(getBitWidth()); in getMask()
|
| H A D | MDBuilder.cpp | 57 assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!"); in createRange() 63 Type *Ty = IntegerType::get(Context, Lo.getBitWidth()); in createRange()
|
| H A D | ValueTypes.cpp | 99 return ITy->getBitWidth(); in getExtendedSizeInBits() 101 return VTy->getBitWidth(); in getExtendedSizeInBits() 255 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT() 280 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 542 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat() 545 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat() 554 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue() 557 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 558 return I1 == I2.zext(I1.getBitWidth()); in isSameValue() 560 return I1.zext(I2.getBitWidth()) == I2; in isSameValue() 773 return APInt(getBitWidth(), VAL & RHS.VAL); 788 return APInt(getBitWidth(), VAL | RHS.VAL); 958 assert(bitPosition < getBitWidth() && "Bit position out of bounds!"); 1037 bool ult(uint64_t RHS) const { return ult(APInt(getBitWidth(), RHS)); } in ult() [all …]
|
| H A D | APSInt.h | 263 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in isSameValue() 267 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue() 268 return isSameValue(I1, I2.extend(I1.getBitWidth())); in isSameValue() 269 else if (I2.getBitWidth() > I1.getBitWidth()) in isSameValue() 270 return isSameValue(I1.extend(I2.getBitWidth()), I2); in isSameValue()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ |
| H A D | TargetLoweringObjectFile.cpp | 186 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal() 187 ITy->getBitWidth() == 32) && in getKindForGlobal() 189 if (ITy->getBitWidth() == 8) in getKindForGlobal() 191 if (ITy->getBitWidth() == 16) in getKindForGlobal() 194 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
|
| /minix3/external/bsd/llvm/dist/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 42 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anon61df14880111::PPValue 316 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue() 317 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue() 319 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue() 498 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 541 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr() 612 if (ShAmt >= LHS.getBitWidth()) in EvaluateDirectiveSubExpr() 613 Overflow = true, ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr() 691 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/PowerPC/ |
| H A D | PPCTargetTransformInfo.cpp | 150 if (Imm.getBitWidth() <= 64) { in getIntImmCost() 183 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost() 187 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 192 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost() 255 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { in getIntImmCost() 260 if (Imm.getBitWidth() <= 32 && in getIntImmCost()
|
| /minix3/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType() 31 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() function
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | ConstantRange.h | 82 uint32_t getBitWidth() const { return Lower.getBitWidth(); } in getBitWidth() function
|
| H A D | DerivedTypes.h | 61 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function 67 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask() 73 return 1ULL << (getBitWidth()-1); in getSignBit() 435 unsigned getBitWidth() const { in getBitWidth() function
|
| H A D | Operator.h | 449 assert(Offset.getBitWidth() == in accumulateConstantOffset() 465 Offset += APInt(Offset.getBitWidth(), in accumulateConstantOffset() 471 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset() 472 Offset += Index * APInt(Offset.getBitWidth(), in accumulateConstantOffset()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/X86/ |
| H A D | X86TargetObjectFile.cpp | 113 unsigned Width = (AI.getBitWidth() / 8) * 2; in APIntToHexString() 151 uint64_t NumBits = VTy->getBitWidth(); in getSectionForConstant()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Support/ |
| H A D | APInt.cpp | 128 if (BitWidth == RHS.getBitWidth()) { in AssignSlowCase() 440 return APInt(val, getBitWidth()); in AndSlowCase() 448 return APInt(val, getBitWidth()); in OrSlowCase() 457 APInt Result(val, getBitWidth()); in XorSlowCase() 1418 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); in magic() 1422 t = signedMin + (d.lshr(d.getBitWidth() - 1)); in magic() 1424 p = d.getBitWidth() - 1; // initialize p in magic() 1448 mag.s = p - d.getBitWidth(); // resulting shift in magic() 1464 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth()).lshr(LeadingZeros); in magicu() 1465 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); in magicu() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 44 static unsigned getBitWidth(Type *Ty, const DataLayout *TD) { in getBitWidth() function 174 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 192 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 248 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsMul() 306 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromRangeMetadata() 486 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsFromAssume() 755 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBits() 764 KnownZero.getBitWidth() == BitWidth && in computeKnownBits() 765 KnownOne.getBitWidth() == BitWidth && in computeKnownBits() 788 APInt Elt(KnownZero.getBitWidth(), 0); in computeKnownBits() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 184 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 185 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 195 Min.setBit(Min.getBitWidth()-1); in ComputeSignedMinMaxValuesFromKnownBits() 196 Max.clearBit(Max.getBitWidth()-1); in ComputeSignedMinMaxValuesFromKnownBits() 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 208 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 209 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 963 uint32_t TypeBits = CmpRHSV.getBitWidth(); in FoldICmpShrCst() 1133 ConstantInt::get(A->getType(), AP2.getBitWidth() - AP2TrailingZeros)); in FoldICmpCstShlCst() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 716 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in visitGetElementPtrInst() 720 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in visitGetElementPtrInst() 721 GEPOffset += Index * APInt(Offset.getBitWidth(), in visitGetElementPtrInst() 1313 if (UserITy->getBitWidth() % 8 != 0 || in INITIALIZE_PASS_DEPENDENCY() 1314 UserITy->getBitWidth() / 8 > (EndOffset - B->beginOffset())) in INITIALIZE_PASS_DEPENDENCY() 1319 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) in INITIALIZE_PASS_DEPENDENCY() 1628 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); in getNaturalGEPRecursively() 1640 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPRecursively() 1660 Offset -= APInt(Offset.getBitWidth(), SL->getElementOffset(Index)); in getNaturalGEPRecursively() 1694 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); in getNaturalGEPWithOffset() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Analysis/ |
| H A D | MemoryBuiltins.h | 182 return SizeOffset.first.getBitWidth() > 1; in knownSize() 186 return SizeOffset.second.getBitWidth() > 1; in knownOffset()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyIndVar.cpp | 126 uint32_t BitWidth = cast<IntegerType>(UseInst->getType())->getBitWidth(); in foldIVUser() 311 SE->getConstant(APInt::getSignedMaxValue(IT->getBitWidth())); in strengthenOverflowingOperation() 313 SE->getConstant(APInt::getSignedMinValue(IT->getBitWidth())); in strengthenOverflowingOperation() 361 SE->getConstant(APInt::getMaxValue(IT->getBitWidth())); in strengthenOverflowingOperation()
|
| /minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | ExternalFunctions.cpp | 68 switch (cast<IntegerType>(Ty)->getBitWidth()) { in getTypeID() 118 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiTypeFor() 138 switch (cast<IntegerType>(Ty)->getBitWidth()) { in ffiValueFor() 229 switch (cast<IntegerType>(RetTy)->getBitWidth()) { in ffiInvoke()
|
| /minix3/external/bsd/llvm/dist/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 172 if (FieldSize > FieldValue.getBitWidth()) in AppendBitField() 176 if (FieldSize < FieldValue.getBitWidth()) in AppendBitField() 188 BitsInPreviousByte >= FieldValue.getBitWidth(); in AppendBitField() 213 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth()); in AppendBitField() 257 while (FieldValue.getBitWidth() > CharWidth) { in AppendBitField() 263 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth); in AppendBitField() 274 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth); in AppendBitField() 277 assert(FieldValue.getBitWidth() > 0 && in AppendBitField() 279 assert(FieldValue.getBitWidth() <= CharWidth && in AppendBitField() 282 if (FieldValue.getBitWidth() < CharWidth) { in AppendBitField() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 570 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 576 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 582 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 631 uint32_t BitWidth = cast<IntegerType>(CE->getType())->getBitWidth(); in getConstantValue() 660 assert(GV.IntVal.getBitWidth() <= 64 && "Bad pointer width"); in getConstantValue() 936 assert((IntVal.getBitWidth()+7)/8 >= StoreBytes && "Integer too small!"); in StoreIntToMemory() 992 unsigned numOfBytes =(Val.AggregateVal[i].IntVal.getBitWidth()+7)/8; in StoreValueToMemory() 1008 assert((IntVal.getBitWidth()+7)/8 >= LoadBytes && "Integer too small!"); in LoadIntFromMemory() 1042 Result.IntVal = APInt(cast<IntegerType>(Ty)->getBitWidth(), 0); in LoadValueFromMemory() 1078 const unsigned elemBitWidth = cast<IntegerType>(ElemT)->getBitWidth(); in LoadValueFromMemory()
|
| /minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | SimpleConstraintManager.cpp | 237 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymRel()
|
| H A D | BasicValueFactory.cpp | 180 if (Amt >= V1.getBitWidth()) in evalAPSInt() 198 if (Amt >= V1.getBitWidth()) in evalAPSInt()
|