/external/llvm/lib/IR/ |
H A D | ConstantRange.cpp | 46 assert(Lower.getBitWidth() == Upper.getBitWidth() && 57 uint32_t W = CR.getBitWidth(); 140 return contains(APInt::getSignedMaxValue(getBitWidth())) && 141 contains(APInt::getSignedMinValue(getBitWidth())); 148 APInt Size(getBitWidth()+1, 0); 149 Size.setBit(getBitWidth()); 154 return (Upper - Lower).zext(getBitWidth()+1); 162 return APInt::getMaxValue(getBitWidth()); 171 return APInt::getMinValue(getBitWidth()); [all...] |
H A D | MDBuilder.cpp | 52 assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!"); 58 Type *Ty = IntegerType::get(Context, Lo.getBitWidth());
|
H A D | Type.cpp | 59 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; 79 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); 81 thisPTy->getBitWidth() == 64) 87 if (thatPTy->getBitWidth() == 64) 126 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); 127 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); 173 return cast<IntegerType>(this)->getBitWidth(); 323 unsigned BitWidth = getBitWidth(); 328 return APInt::getAllOnesValue(getBitWidth()); [all...] |
H A D | ValueTypes.cpp | 99 return ITy->getBitWidth(); 101 return VTy->getBitWidth(); 255 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); 280 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth());
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | APSIntType.h | 29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} 31 uint32_t getBitWidth() const { return BitWidth; } function in class:clang::ento::APSIntType
|
/external/llvm/include/llvm/ADT/ |
H A D | APSInt.h | 263 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) 267 if (I1.getBitWidth() > I2.getBitWidth()) 268 return isSameValue(I1, I2.extend(I1.getBitWidth())); 269 else if (I2.getBitWidth() > I1.getBitWidth()) 270 return isSameValue(I1.extend(I2.getBitWidth()), I2);
|
H A D | APInt.h | 541 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); 544 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) 553 if (I1.getBitWidth() == I2.getBitWidth()) 556 if (I1.getBitWidth() > I2.getBitWidth()) 557 return I1 == I2.zext(I1.getBitWidth()); 559 return I1.zext(I2.getBitWidth()) == I2; 761 return APInt(getBitWidth(), VAL & RHS.VAL); 776 return APInt(getBitWidth(), VA [all...] |
/external/llvm/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 185 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || 186 ITy->getBitWidth() == 32) && 188 if (ITy->getBitWidth() == 8) 190 if (ITy->getBitWidth() == 16) 193 assert(ITy->getBitWidth() == 32 && "Unknown width");
|
/external/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 80 /// getBitWidth - get the bit width of this ConstantRange 82 uint32_t getBitWidth() const { return Lower.getBitWidth(); } function in class:llvm::ConstantRange
|
H A D | DerivedTypes.h | 61 unsigned getBitWidth() const { return getSubclassData(); } function in class:llvm::IntegerType 67 return ~uint64_t(0UL) >> (64-getBitWidth()); 73 return 1ULL << (getBitWidth()-1); 432 unsigned getBitWidth() const { function in class:llvm::VectorType
|
H A D | Operator.h | 449 assert(Offset.getBitWidth() == 465 Offset += APInt(Offset.getBitWidth(), 471 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 472 Offset += Index * APInt(Offset.getBitWidth(),
|
/external/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 42 unsigned getBitWidth() const { return Val.getBitWidth(); } function in class:__anon17946::PPValue 313 if (Result.Val.getBitWidth() > Val.getBitWidth()) { 314 Result.Val = Val.extend(Result.Val.getBitWidth()); 316 assert(Result.Val.getBitWidth() == Val.getBitWidth() && 495 PPValue RHS(LHS.getBitWidth()); 538 llvm::APSInt Res(LHS.getBitWidth()); 602 Overflow = ShAmt >= LHS.Val.getBitWidth(); [all...] |
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 151 if (Imm.getBitWidth() <= 64) { 184 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) 247 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { 252 if (Imm.getBitWidth() <= 32 &&
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 39 /// getBitWidth - Returns the bitwidth of the given scalar or pointer type (if 41 static unsigned getBitWidth(Type *Ty, const DataLayout *TD) { function 58 unsigned BitWidth = KnownZero.getBitWidth(); 76 unsigned BitWidth = KnownZero.getBitWidth(); 135 unsigned BitWidth = KnownZero.getBitWidth(); 193 unsigned BitWidth = KnownZero.getBitWidth(); 231 unsigned BitWidth = KnownZero.getBitWidth(); 240 KnownZero.getBitWidth() == BitWidth && 241 KnownOne.getBitWidth() == BitWidth && 264 APInt Elt(KnownZero.getBitWidth(), [all...] |
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 128 if (BitWidth == RHS.getBitWidth()) { 440 return APInt(val, getBitWidth()); 448 return APInt(val, getBitWidth()); 458 return APInt(val, getBitWidth()).clearUnusedBits(); 1400 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); 1404 t = signedMin + (d.lshr(d.getBitWidth() - 1)); 1406 p = d.getBitWidth() - 1; // initialize p 1430 mag.s = p - d.getBitWidth(); // resulting shift 1446 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth()).lshr(LeadingZeros); 1447 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); [all...] |
H A D | StringRef.cpp | 435 if (BitWidth < Result.getBitWidth()) 436 BitWidth = Result.getBitWidth(); // don't shrink the result 437 else if (BitWidth > Result.getBitWidth())
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | BasicValueFactory.cpp | 180 if (Amt >= V1.getBitWidth()) 198 if (Amt >= V1.getBitWidth())
|
H A D | SimpleConstraintManager.cpp | 237 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() &&
|
/external/llvm/include/llvm/Analysis/ |
H A D | MemoryBuiltins.h | 182 return SizeOffset.first.getBitWidth() > 1; 186 return SizeOffset.second.getBitWidth() > 1;
|
H A D | PtrUseVisitor.h | 210 Offset = APInt(IntPtrTy->getBitWidth(), 0);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 173 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 174 KnownZero.getBitWidth() == Min.getBitWidth() && 175 KnownZero.getBitWidth() == Max.getBitWidth() && 185 Min.setBit(Min.getBitWidth()-1); 186 Max.clearBit(Max.getBitWidth()-1); 197 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 422 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); 425 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 426 GEPOffset += Index * APInt(Offset.getBitWidth(), 1040 if (UserITy->getBitWidth() % 8 != 0 || 1041 UserITy->getBitWidth() / 8 > (EndOffset - B->beginOffset())) 1046 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) 1350 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); 1362 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); 1382 Offset -= APInt(Offset.getBitWidth(), S [all...] |
H A D | SeparateConstOffsetFromGEP.cpp | 402 unsigned BitWidth = cast<IntegerType>(V->getType())->getBitWidth(); 584 KnownOne = APInt(IT->getBitWidth(), 0); 585 KnownZero = APInt(IT->getBitWidth(), 0); 636 cast<IntegerType>(Extended->getSrcTy())->getBitWidth();
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | ExternalFunctions.cpp | 67 switch (cast<IntegerType>(Ty)->getBitWidth()) { 117 switch (cast<IntegerType>(Ty)->getBitWidth()) { 137 switch (cast<IntegerType>(Ty)->getBitWidth()) { 228 switch (cast<IntegerType>(RetTy)->getBitWidth()) {
|
/external/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 163 if (FieldSize > FieldValue.getBitWidth()) 167 if (FieldSize < FieldValue.getBitWidth()) 179 BitsInPreviousByte >= FieldValue.getBitWidth(); 204 Tmp = Tmp.shl(BitsInPreviousByte - FieldValue.getBitWidth()); 248 while (FieldValue.getBitWidth() > CharWidth) { 254 FieldValue.lshr(FieldValue.getBitWidth() - CharWidth).trunc(CharWidth); 265 FieldValue = FieldValue.trunc(FieldValue.getBitWidth() - CharWidth); 268 assert(FieldValue.getBitWidth() > 0 && 270 assert(FieldValue.getBitWidth() <= CharWidth && 273 if (FieldValue.getBitWidth() < CharWidt [all...] |