/external/llvm/lib/Transforms/InstCombine/ |
InstCombineSimplifyDemanded.cpp | 56 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); 57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 58 APInt DemandedMask(APInt::getAllOnesValue(BitWidth)); 96 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero 110 uint32_t BitWidth = DemandedMask.getBitWidth(); 113 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) && 114 KnownZero.getBitWidth() == BitWidth && 115 KnownOne.getBitWidth() == BitWidth && 117 "must have same BitWidth"); [all...] |
InstCombineAddSub.cpp | 876 int BitWidth = Op0KnownZero.getBitWidth(); 878 Op0KnownZeroTemp.clearBit(BitWidth - 1); 879 int Op0ZeroPosition = BitWidth - Op0KnownZeroTemp.countLeadingZeros() - 1; 881 int Op1OnePosition = BitWidth - Op1MaybeOne.countLeadingZeros() - 1; 916 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); 917 APInt LHSKnownZero(BitWidth, 0); 918 APInt LHSKnownOne(BitWidth, 0); 921 APInt RHSKnownZero(BitWidth, 0); 922 APInt RHSKnownOne(BitWidth, 0); 927 if ((LHSKnownOne[BitWidth - 1] && RHSKnownZero[BitWidth - 1]) | [all...] |
InstCombineCasts.cpp | 368 uint32_t BitWidth = Ty->getScalarSizeInBits(); 369 if (BitWidth < OrigBitWidth) { 370 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth); 383 uint32_t BitWidth = Ty->getScalarSizeInBits(); 384 if (CI->getLimitedValue(BitWidth) < BitWidth) 394 uint32_t BitWidth = Ty->getScalarSizeInBits(); 396 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) && 397 CI->getLimitedValue(BitWidth) < BitWidth) { [all...] |
/external/llvm/include/llvm/CodeGen/ |
ValueTypes.h | 55 static EVT getFloatingPointVT(unsigned BitWidth) { 56 return MVT::getFloatingPointVT(BitWidth); 61 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { 62 MVT M = MVT::getIntegerVT(BitWidth); 65 return getExtendedIntegerVT(Context, BitWidth); 79 /// integer type with the same bitwidth. 84 unsigned BitWidth = EltTy.getSizeInBits(); 85 MVT IntTy = MVT::getIntegerVT(BitWidth); 278 unsigned BitWidth = getSizeInBits(); 279 if (BitWidth <= 8 [all...] |
/external/skia/tests/ |
PathOpsTightBoundsTest.cpp | 51 const int bitWidth = 32; 57 bits.allocN32Pixels(bitWidth, bitHeight); 89 for (int x = 0; x < bitWidth; ++x) {
|
PathOpsExtendedTest.cpp | 167 const int bitWidth = 64; 181 SkScalar hScale = (bitWidth - 2) / largerWidth; 199 bits.allocN32Pixels(bitWidth * 2, bitHeight); 210 canvas.translate(-bounds1.fLeft + 1 + bitWidth, -bounds1.fTop + 1); 218 uint32_t* addr3 = bits.getAddr32(bitWidth, y); 219 uint32_t* addr4 = bits.getAddr32(bitWidth, y + 1); 220 for (int x = 0; x < bitWidth - 1; ++x) { 253 int bitWidth = SkScalarCeilToInt(larger.width()) + 2; 254 if (bitWidth * 2 + 1 >= (int) sizeof(out)) { 261 bits.allocN32Pixels(bitWidth * 2, bitHeight) [all...] |
/external/llvm/test/Transforms/InstCombine/ |
apint-add2.ll | 2 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
apint-and2.ll | 2 ; This test is for Integer BitWidth > 64 && BitWidth <= 1024.
|
/external/llvm/lib/Transforms/Utils/ |
IntegerDivision.cpp | 36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); 39 if (BitWidth == 64) { 42 assert(BitWidth == 32 && "Unexpected bit width"); 108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); 111 if (BitWidth == 64) { 114 assert(BitWidth == 32 && "Unexpected bit width"); 159 unsigned BitWidth = DivTy->getBitWidth(); 166 if (BitWidth == 64) { 172 assert(BitWidth == 32 && "Unexpected bit width"); 390 llvm_unreachable("Div of bitwidth other than 32 or 64 not supported") [all...] |
BypassSlowDivision.cpp | 246 // Get bitwidth of div/rem instruction 248 unsigned int bitwidth = T->getBitWidth(); local 250 // Continue if bitwidth is not bypassed 251 DenseMap<unsigned int, unsigned int>::const_iterator BI = BypassWidths.find(bitwidth); 255 // Get type for div/rem instruction with bypass bitwidth
|
/external/llvm/include/llvm/IR/ |
ConstantRange.h | 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); 123 /// its bitwidth. For example: i8 [120, 140). 203 /// zero extended to BitWidth. 204 ConstantRange zeroExtend(uint32_t BitWidth) const; 209 /// sign extended to BitWidth. 210 ConstantRange signExtend(uint32_t BitWidth) const; 216 ConstantRange truncate(uint32_t BitWidth) const; 218 /// Make this range have the bit width given by \p BitWidth. The 220 ConstantRange zextOrTrunc(uint32_t BitWidth) const; 222 /// Make this range have the bit width given by \p BitWidth. Th [all...] |
/external/llvm/include/llvm/ADT/ |
APInt.h | 74 unsigned BitWidth; ///< The number of bits in this APInt. 98 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {} 103 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; } 138 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD; 237 : BitWidth(numBits), VAL(0) { 238 assert(BitWidth && "bitwidth too small"); 279 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) { 287 APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) [all...] |
/external/clang/lib/Basic/ |
TargetInfo.cpp | 183 unsigned BitWidth, bool IsSigned) const { 184 if (getCharWidth() == BitWidth) 186 if (getShortWidth() == BitWidth) 188 if (getIntWidth() == BitWidth) 190 if (getLongWidth() == BitWidth) 192 if (getLongLongWidth() == BitWidth) 197 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, 199 if (getCharWidth() >= BitWidth) 201 if (getShortWidth() >= BitWidth) 203 if (getIntWidth() >= BitWidth) [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
FunctionLoweringInfo.cpp | 384 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { 392 if (BitWidth > LOI->KnownZero.getBitWidth()) { 394 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 395 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 417 unsigned BitWidth = IntVT.getSizeInBits(); 428 APInt Zero(BitWidth, 0); 435 APInt Val = CI->getValue().zextOrTrunc(BitWidth); 447 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth); 455 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 456 DestLOI.KnownOne.getBitWidth() == BitWidth & [all...] |
TargetLowering.cpp | 337 unsigned BitWidth, 357 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros(); 361 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { 393 unsigned BitWidth = DemandedMask.getBitWidth(); 394 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth && 401 KnownZero = KnownOne = APInt(BitWidth, 0); 413 NewMask = APInt::getAllOnesValue(BitWidth); 470 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 504 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl)) 529 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl) [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
APSIntType.cpp | 42 if (MinBits <= BitWidth)
|
/external/llvm/test/CodeGen/AArch64/ |
neon-or-combine.ll | 8 ; values with different 'BitWidth'.
|
/external/llvm/test/CodeGen/X86/ |
fastisel-gep-promote-before-add.ll | 1 ; fastisel should not fold add with non-pointer bitwidth
|
/external/llvm/lib/Analysis/ |
ScalarEvolutionAliasAnalysis.cpp | 46 unsigned BitWidth = SE.getTypeSizeInBits(AS->getType()); 47 APInt ASizeInt(BitWidth, LocA.Size); 48 APInt BSizeInt(BitWidth, LocB.Size);
|
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJIT.cpp | 542 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); 543 if (BitWidth == 1) 544 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)()); 545 else if (BitWidth <= 8) 546 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)()); 547 else if (BitWidth <= 16) 548 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)()); 549 else if (BitWidth <= 32) 550 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)()); 551 else if (BitWidth <= 64 [all...] |
/external/skia/src/pathops/ |
SkPathOpsOp.cpp | 348 const int bitWidth = 64; 362 SkScalar hScale = (bitWidth - 2) / largerWidth; 379 bits.allocN32Pixels(bitWidth * 2, bitHeight); 390 canvas.translate(-bounds1.fLeft + 1 + bitWidth, -bounds1.fTop + 1); 397 uint32_t* addr3 = bits.getAddr32(bitWidth, y); 398 uint32_t* addr4 = bits.getAddr32(bitWidth, y + 1); 399 for (int x = 0; x < bitWidth - 1; ++x) {
|
/external/llvm/lib/IR/ |
ConstantRange.cpp | 34 ConstantRange::ConstantRange(uint32_t BitWidth, bool Full) { 36 Lower = Upper = APInt::getMaxValue(BitWidth); 38 Lower = Upper = APInt::getMinValue(BitWidth); 152 unsigned BitWidth = C.getBitWidth(); 155 return ConstantRange(BitWidth, false); 159 return ConstantRange(BitWidth); 161 ConstantRange Result(BitWidth); 165 ConstantRange(APInt::getNullValue(BitWidth), -C)); 170 Result, ConstantRange(APInt::getSignedMinValue(BitWidth), 171 APInt::getSignedMinValue(BitWidth) - C)) [all...] |
/external/clang/utils/TableGen/ |
NeonEmitter.cpp | 140 unsigned Bitwidth, ElementBitwidth, NumVectors; 146 NoManglingQ(false), Bitwidth(0), ElementBitwidth(0), NumVectors(0) {} 151 NoManglingQ(false), Bitwidth(0), ElementBitwidth(0), NumVectors(0) { 183 unsigned getNumElements() const { return Bitwidth / ElementBitwidth; } 184 unsigned getSizeInBits() const { return Bitwidth; } 208 Bitwidth = ElementBitwidth; 216 assert_with_loc(Bitwidth != 128, "Can't get bigger than 128!"); 217 Bitwidth = 128; 220 assert_with_loc(Bitwidth != 64, "Can't get smaller than 64!"); 221 Bitwidth = 64 [all...] |
/external/llvm/test/Transforms/MergeFunc/ |
inttoptr-address-space.ll | 19 ; Check for pointer bitwidth equal assertion failure
|
/external/llvm/lib/Support/ |
StringRef.cpp | 473 unsigned BitWidth = Log2Radix * Str.size(); 474 if (BitWidth < Result.getBitWidth()) 475 BitWidth = Result.getBitWidth(); // don't shrink the result 476 else if (BitWidth > Result.getBitWidth()) 477 Result = Result.zext(BitWidth); 482 RadixAP = APInt(BitWidth, Radix); 483 CharAP = APInt(BitWidth, 0);
|