/external/llvm/lib/IR/ |
H A D | Operator.cpp | 17 assert(Offset.getBitWidth() == 33 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); 38 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 39 Offset += Index * APInt(Offset.getBitWidth(),
|
H A D | ConstantRange.cpp | 48 assert(Lower.getBitWidth() == Upper.getBitWidth() && 59 uint32_t W = CR.getBitWidth(); 152 unsigned BitWidth = C.getBitWidth(); 204 return contains(APInt::getSignedMaxValue(getBitWidth())) && 205 contains(APInt::getSignedMinValue(getBitWidth())); 212 APInt Size(getBitWidth()+1, 0); 213 Size.setBit(getBitWidth()); 218 return (Upper - Lower).zext(getBitWidth()+1); 226 return APInt::getMaxValue(getBitWidth()); [all...] |
H A D | MDBuilder.cpp | 67 assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!"); 69 Type *Ty = IntegerType::get(Context, Lo.getBitWidth());
|
H A D | Type.cpp | 54 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; 74 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); 76 thisPTy->getBitWidth() == 64) 82 if (thatPTy->getBitWidth() == 64) 123 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); 124 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); 170 return cast<IntegerType>(this)->getBitWidth(); 323 unsigned BitWidth = getBitWidth(); 328 return APInt::getAllOnesValue(getBitWidth()); [all...] |
H A D | ValueTypes.cpp | 108 return ITy->getBitWidth(); 110 return VTy->getBitWidth(); 284 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); 309 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth());
|
/external/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 49 if (Imm.getBitWidth() <= 64) { 90 if (Idx == 0 && Imm.getBitWidth() <= 64) { 100 if (Idx == 1 && Imm.getBitWidth() <= 64) { 111 if (Idx == 1 && Imm.getBitWidth() <= 64) { 121 if (Idx == 1 && Imm.getBitWidth() <= 64) { 129 if (Idx == 1 && Imm.getBitWidth() <= 64) { 139 if (Idx == 1 && Imm.getBitWidth() <= 64) { 205 if (Idx == 1 && Imm.getBitWidth() <= 64) { 215 if (Idx == 1 && Imm.getBitWidth() <= 64) { 221 if ((Idx < 2) || (Imm.getBitWidth() < [all...] |
/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/lib/Target/ |
H A D | TargetLoweringObjectFile.cpp | 184 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || 185 ITy->getBitWidth() == 32) && 187 if (ITy->getBitWidth() == 8) 189 if (ITy->getBitWidth() == 16) 192 assert(ITy->getBitWidth() == 32 && "Unknown width");
|
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | SimpleConstraintManager.cpp | 198 From.getBitWidth() == To.getBitWidth() && 273 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && 321 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() &&
|
H A D | BasicValueFactory.cpp | 184 if (Amt >= V1.getBitWidth()) 202 if (Amt >= V1.getBitWidth())
|
/external/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 75 unsigned BitWidth = AB.getBitWidth(); 236 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), 237 AOut.getBitWidth() - BitWidth)) 286 AliveBits[&I] = APInt(IT->getBitWidth(), 0); 297 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth()); 329 unsigned BitWidth = IT->getBitWidth();
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetTransformInfo.cpp | 51 if (Imm.getBitWidth() <= 64) { 85 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) 89 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) 94 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) 158 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { 163 if (Imm.getBitWidth() <= 32 &&
|
/external/llvm/include/llvm/ADT/ |
H A D | APSInt.h | 296 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) 300 if (I1.getBitWidth() > I2.getBitWidth()) 301 return compareValues(I1, I2.extend(I1.getBitWidth())); 302 else if (I2.getBitWidth() > I1.getBitWidth()) 303 return compareValues(I1.extend(I2.getBitWidth()), I2);
|
H A D | APInt.h | 547 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); 550 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) 559 if (I1.getBitWidth() == I2.getBitWidth()) 562 if (I1.getBitWidth() > I2.getBitWidth()) 563 return I1 == I2.zext(I1.getBitWidth()); 565 return I1.zext(I2.getBitWidth()) == I2; 778 return APInt(getBitWidth(), VAL & RHS.VAL); 793 return APInt(getBitWidth(), VA [all...] |
/external/llvm/include/llvm/IR/ |
H A D | ConstantRange.h | 106 uint32_t getBitWidth() const { return Lower.getBitWidth(); } function in class:llvm::ConstantRange
|
H A D | DerivedTypes.h | 62 unsigned getBitWidth() const { return getSubclassData(); } function in class:llvm::IntegerType 68 return ~uint64_t(0UL) >> (64-getBitWidth()); 74 return 1ULL << (getBitWidth()-1); 432 unsigned getBitWidth() const { function in class:llvm::VectorType
|
/external/llvm/unittests/ADT/ |
H A D | APSIntTest.cpp | 46 EXPECT_EQ(64u, APSInt::get(7).getBitWidth()); 50 EXPECT_EQ(64u, APSInt::get(-7).getBitWidth()); 57 EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth()); 61 EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth());
|
/external/clang/lib/Lex/ |
H A D | PPExpressions.cpp | 42 unsigned getBitWidth() const { return Val.getBitWidth(); } function in class:__anon1423::PPValue 312 if (Result.Val.getBitWidth() > Val.getBitWidth()) { 313 Result.Val = Val.extend(Result.Val.getBitWidth()); 315 assert(Result.Val.getBitWidth() == Val.getBitWidth() && 494 PPValue RHS(LHS.getBitWidth()); 537 llvm::APSInt Res(LHS.getBitWidth()); 608 if (ShAmt >= LHS.getBitWidth()) [all...] |
/external/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 402 APInt One(Idx->getBitWidth(), 1); 504 APInt One(RHS->getBitWidth(), 1); 550 if (A.getBitWidth() < B.getBitWidth()) 551 A = A.sext(B.getBitWidth()); 552 else if (A.getBitWidth() > B.getBitWidth()) 553 B = B.sext(A.getBitWidth()); 568 IndexOffset.getBitWidth(), 590 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); [all...] |
H A D | SROA.cpp | 713 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); 717 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); 718 GEPOffset += Index * APInt(Offset.getBitWidth(), 1101 if (UserITy->getBitWidth() % 8 != 0 || 1102 UserITy->getBitWidth() / 8 > (EndOffset - B->beginOffset())) 1107 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) 1419 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8); 1431 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy)); 1451 Offset -= APInt(Offset.getBitWidth(), S [all...] |
/external/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcMCJITReplacement.cpp | 91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
|
/external/llvm/lib/Support/ |
H A D | APInt.cpp | 128 if (BitWidth == RHS.getBitWidth()) { 440 return APInt(val, getBitWidth()); 448 return APInt(val, getBitWidth()); 457 APInt Result(val, getBitWidth()); 676 assert(getBitWidth() % SplatSizeInBits == 0 && 1421 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth()); 1425 t = signedMin + (d.lshr(d.getBitWidth() - 1)); 1427 p = d.getBitWidth() - 1; // initialize p 1451 mag.s = p - d.getBitWidth(); // resulting shift 1467 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth()) [all...] |
H A D | StringRef.cpp | 474 if (BitWidth < Result.getBitWidth()) 475 BitWidth = Result.getBitWidth(); // don't shrink the result 476 else if (BitWidth > Result.getBitWidth())
|
/external/llvm/include/llvm/Analysis/ |
H A D | MemoryBuiltins.h | 173 return SizeOffset.first.getBitWidth() > 1; 177 return SizeOffset.second.getBitWidth() > 1;
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 184 KnownZero.getBitWidth() == Min.getBitWidth() && 185 KnownZero.getBitWidth() == Max.getBitWidth() && 195 Min.setBit(Min.getBitWidth()-1); 196 Max.clearBit(Max.getBitWidth()-1); 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() [all...] |