Home
last modified time | relevance | path

Searched refs:getBitWidth (Results 1 – 25 of 353) sorted by relevance

12345678910>>...15

/external/llvm/lib/IR/
DConstantRange.cpp48 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange()
59 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion()
148 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp()
191 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion()
250 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet()
251 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet()
258 APInt Size(getBitWidth()+1, 0); in getSetSize()
259 Size.setBit(getBitWidth()); in getSetSize()
264 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize()
272 return APInt::getMaxValue(getBitWidth()); in getUnsignedMax()
[all …]
DOperator.cpp23 assert(Offset.getBitWidth() == in accumulateConstantOffset()
39 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset()
44 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
45 Offset += Index * APInt(Offset.getBitWidth(), in accumulateConstantOffset()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantRange.cpp51 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange()
62 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion()
151 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp()
201 unsigned BitWidth = Other.getBitWidth(); in makeGuaranteedNoWrapRegion()
332 return contains(APInt::getSignedMaxValue(getBitWidth())) && in isSignWrappedSet()
333 contains(APInt::getSignedMinValue(getBitWidth())); in isSignWrappedSet()
338 return APInt::getOneBitSet(getBitWidth()+1, getBitWidth()); in getSetSize()
341 return (Upper - Lower).zext(getBitWidth()+1); in getSetSize()
346 assert(getBitWidth() == Other.getBitWidth()); in isSizeStrictlySmallerThan()
360 return APInt::getMaxValue(getBitWidth()).ugt(MaxSize - 1); in isSizeLargerThan()
[all …]
DOperator.cpp37 assert(Offset.getBitWidth() == in accumulateConstantOffset()
53 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx)); in accumulateConstantOffset()
58 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth()); in accumulateConstantOffset()
59 Offset += Index * APInt(Offset.getBitWidth(), in accumulateConstantOffset()
DType.cpp58 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy()
75 return thisPTy->getBitWidth() == thatPTy->getBitWidth(); in canLosslesslyBitCastTo()
77 thisPTy->getBitWidth() == 64) in canLosslesslyBitCastTo()
83 if (thatPTy->getBitWidth() == 64) in canLosslesslyBitCastTo()
124 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
125 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth(); in getPrimitiveSizeInBits()
265 unsigned BitWidth = getBitWidth(); in isPowerOf2ByteWidth()
270 return APInt::getAllOnesValue(getBitWidth()); in getMask()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp49 if (Imm.getBitWidth() <= 64) { in getIntImmCost()
90 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCost()
100 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
111 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
121 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
129 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
139 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
205 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
215 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
221 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DKnownBits.h40 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()
192 return getBitWidth() - Zero.countPopulation(); in countMaxPopulation()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp184 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal()
185 ITy->getBitWidth() == 32) && in getKindForGlobal()
187 if (ITy->getBitWidth() == 8) in getKindForGlobal()
189 if (ITy->getBitWidth() == 16) in getKindForGlobal()
192 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPSInt.h290 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues()
294 if (I1.getBitWidth() > I2.getBitWidth()) in compareValues()
295 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues()
296 if (I2.getBitWidth() > I1.getBitWidth()) in compareValues()
297 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues()
/external/llvm/include/llvm/ADT/
DAPSInt.h296 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned()) in compareValues()
300 if (I1.getBitWidth() > I2.getBitWidth()) in compareValues()
301 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues()
302 else if (I2.getBitWidth() > I1.getBitWidth()) in compareValues()
303 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues()
DAPInt.h547 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat()
550 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat()
559 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue()
562 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue()
563 return I1 == I2.zext(I1.getBitWidth()); in isSameValue()
565 return I1.zext(I2.getBitWidth()) == I2; in isSameValue()
783 return APInt(getBitWidth(), VAL & RHS.VAL);
798 return APInt(getBitWidth(), VAL | RHS.VAL);
968 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
1279 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTargetLoweringObjectFile.cpp192 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal()
193 ITy->getBitWidth() == 32) && in getKindForGlobal()
195 if (ITy->getBitWidth() == 8) in getKindForGlobal()
197 if (ITy->getBitWidth() == 16) in getKindForGlobal()
200 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DCmpInstAnalysis.cpp83 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
90 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
97 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
104 Mask = APInt::getSignMask(C->getBitWidth()); in decomposeBitTestICmp()
DDemandedBits.cpp88 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits()
247 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits()
248 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits()
292 if (AliveBits.try_emplace(&I, IT->getBitWidth(), 0).second) in performAnalysis()
302 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth()); in performAnalysis()
334 unsigned BitWidth = IT->getBitWidth(); in performAnalysis()
DLoads.cpp30 APInt BaseAlign(Offset.getBitWidth(), Base->getPointerAlignment(DL)); in isAligned()
39 APInt Alignment(Offset.getBitWidth(), Align); in isAligned()
71 APInt KnownDerefBytes(Size.getBitWidth(), in isDereferenceableAndAlignedPointer()
85 !Offset.urem(APInt(Offset.getBitWidth(), Align)).isMinValue()) in isDereferenceableAndAlignedPointer()
97 Base, Align, Offset + Size.sextOrTrunc(Offset.getBitWidth()), in isDereferenceableAndAlignedPointer()
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp250 return Index->getBitWidth() <= 64 && in isAddFoldable()
373 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd()
475 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex()
531 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth()
532 A = A.sext(B.getBitWidth()); in unifyBitWidth()
533 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth()
534 B = B.sext(A.getBitWidth()); in unifyBitWidth()
549 IndexOffset.getBitWidth(), in emitBump()
571 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp286 return Index->getBitWidth() <= 64 && in isAddFoldable()
409 APInt One(Idx->getBitWidth(), 1); in allocateCandidatesAndFindBasisForAdd()
511 APInt One(RHS->getBitWidth(), 1); in factorArrayIndex()
565 if (A.getBitWidth() < B.getBitWidth()) in unifyBitWidth()
566 A = A.sext(B.getBitWidth()); in unifyBitWidth()
567 else if (A.getBitWidth() > B.getBitWidth()) in unifyBitWidth()
568 B = B.sext(A.getBitWidth()); in unifyBitWidth()
583 IndexOffset.getBitWidth(), in emitBump()
605 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h551 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!"); in getSplat()
554 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1) in getSplat()
563 if (I1.getBitWidth() == I2.getBitWidth()) in isSameValue()
566 if (I1.getBitWidth() > I2.getBitWidth()) in isSameValue()
567 return I1 == I2.zext(I1.getBitWidth()); in isSameValue()
569 return I1.zext(I2.getBitWidth()) == I2; in isSameValue()
777 return APInt(getBitWidth(), VAL & RHS.VAL);
790 return APInt(getBitWidth(), VAL | RHS.VAL);
944 assert(bitPosition < getBitWidth() && "Bit position out of bounds!");
1255 unsigned getBitWidth() const { return BitWidth; } in getBitWidth() function
[all …]
/external/clang/lib/Lex/
DPPExpressions.cpp48 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anon6d3d0a020111::PPValue
366 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue()
367 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue()
369 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue()
561 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
603 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
674 if (ShAmt >= LHS.getBitWidth()) { in EvaluateDirectiveSubExpr()
676 ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr()
755 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp58 if (Imm.getBitWidth() <= 64) { in getIntImmCost()
92 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost()
96 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
101 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
165 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { in getIntImmCost()
170 if (Imm.getBitWidth() <= 32 && in getIntImmCost()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleConstraintManager.cpp198 From.getBitWidth() == To.getBitWidth() && in assumeWithinInclusiveRange()
273 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymRel()
321 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymWithinInclusiveRange()
/external/llvm/lib/Analysis/
DDemandedBits.cpp77 unsigned BitWidth = AB.getBitWidth(); in determineLiveOperandBits()
238 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(), in determineLiveOperandBits()
239 AOut.getBitWidth() - BitWidth)) in determineLiveOperandBits()
284 AliveBits[&I] = APInt(IT->getBitWidth(), 0); in performAnalysis()
295 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth()); in performAnalysis()
327 unsigned BitWidth = IT->getBitWidth(); in performAnalysis()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp49 if (Imm.getBitWidth() <= 64) { in getIntImmCost()
90 if (Idx == 0 && Imm.getBitWidth() <= 64) { in getIntImmCost()
100 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
111 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
121 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
129 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
139 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
205 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
215 if (Idx == 1 && Imm.getBitWidth() <= 64) { in getIntImmCost()
221 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp63 if (Imm.getBitWidth() <= 64) { in getIntImmCost()
97 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue())) in getIntImmCost()
101 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
106 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
171 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) { in getIntImmCost()
176 if (Imm.getBitWidth() <= 32 && in getIntImmCost()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DDerivedTypes.h65 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function
70 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask()
76 return 1ULL << (getBitWidth()-1); in getSignBit()
97 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
428 unsigned getBitWidth() const { in getBitWidth() function

12345678910>>...15