Home
last modified time | relevance | path

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

123456789

/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantRange.cpp51 assert(Lower.getBitWidth() == Upper.getBitWidth() && in ConstantRange()
62 uint32_t W = CR.getBitWidth(); in makeAllowedICmpRegion()
151 RHS = APInt(getBitWidth(), 0); in getEquivalentICmp()
338 return APInt::getOneBitSet(getBitWidth()+1, getBitWidth()); in getSetSize()
346 assert(getBitWidth() == Other.getBitWidth()); in isSizeStrictlySmallerThan()
417 assert(Val.getBitWidth() == getBitWidth() && "Wrong bit width"); in subtract()
429 assert(getBitWidth() == CR.getBitWidth() && in intersectWith()
503 assert(getBitWidth() == CR.getBitWidth() && in unionWith()
594 auto BW = getBitWidth(); in castOp()
601 auto BW = getBitWidth(); in castOp()
[all …]
H A 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()
H A 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()
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A 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()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DFixedPoint.cpp26 NewVal = NewVal.extend(NewVal.getBitWidth() + DstScale - getScale()); in convert()
34 NewVal.getBitWidth(), in convert()
35 std::min(DstScale + DstSema.getIntegralBits(), NewVal.getBitWidth())); in convert()
57 unsigned OtherWidth = OtherVal.getBitWidth(); in compare()
59 unsigned CommonWidth = std::max(Val.getBitWidth(), OtherWidth); in compare()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp192 A = APInt(Ty->getBitWidth(), 0); in Polynomial()
210 if (ErrorMSBs > A.getBitWidth()) in incErrorMSBs()
211 ErrorMSBs = A.getBitWidth(); in incErrorMSBs()
243 if (C.getBitWidth() != A.getBitWidth()) { in add()
304 if (C.getBitWidth() != A.getBitWidth()) { in mul()
461 if (C.getBitWidth() != A.getBitWidth()) { in lshr()
471 if (shiftAmt >= C.getBitWidth()) in lshr()
480 ErrorMSBs = A.getBitWidth(); in lshr()
493 if (n < A.getBitWidth()) { in sextOrTrunc()
500 if (n > A.getBitWidth()) { in sextOrTrunc()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A 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()
/freebsd-12.1/contrib/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp195 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 || in getKindForGlobal()
196 ITy->getBitWidth() == 32) && in getKindForGlobal()
198 if (ITy->getBitWidth() == 8) in getKindForGlobal()
200 if (ITy->getBitWidth() == 16) in getKindForGlobal()
203 assert(ITy->getBitWidth() == 32 && "Unknown width"); in getKindForGlobal()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A 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()
H A 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()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A 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()
H A DSROA.cpp1136 if (UserITy->getBitWidth() % 8 != 0 || in findCommonType()
1142 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth()) in findCommonType()
1570 APInt Int8PtrOffset(Offset.getBitWidth(), 0); in getAdjustedPtr()
1577 APInt GEPOffset(Offset.getBitWidth(), 0); in getAdjustedPtr()
2101 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2114 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
2131 if (ShAmt || Ty->getBitWidth() < IntTy->getBitWidth()) { in insertInteger()
2500 if (AITy->getBitWidth() < TITy->getBitWidth()) { in visitLoadInst()
2503 V = IRB.CreateShl(V, TITy->getBitWidth() - AITy->getBitWidth(), in visitLoadInst()
2647 if (VITy->getBitWidth() > AITy->getBitWidth()) { in visitStoreInst()
[all …]
H A DConstantHoisting.cpp510 unsigned BW = V1.getBitWidth() > V2.getBitWidth() ? in calculateOffsetDiff()
511 V1.getBitWidth() : V2.getBitWidth(); in calculateOffsetDiff()
646 return LHS.ConstInt->getType()->getBitWidth() < in findBaseConstants()
647 RHS.ConstInt->getType()->getBitWidth(); in findBaseConstants()
674 if ((Diff.getBitWidth() <= 64) && in findBaseConstants()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DPPExpressions.cpp59 unsigned getBitWidth() const { return Val.getBitWidth(); } in getBitWidth() function in __anond58531240111::PPValue
379 if (Result.Val.getBitWidth() > Val.getBitWidth()) { in EvaluateValue()
380 Result.Val = Val.extend(Result.Val.getBitWidth()); in EvaluateValue()
382 assert(Result.Val.getBitWidth() == Val.getBitWidth() && in EvaluateValue()
582 PPValue RHS(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
626 llvm::APSInt Res(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
697 if (ShAmt >= LHS.getBitWidth()) { in EvaluateDirectiveSubExpr()
699 ShAmt = LHS.getBitWidth()-1; in EvaluateDirectiveSubExpr()
778 PPValue AfterColonVal(LHS.getBitWidth()); in EvaluateDirectiveSubExpr()
H A DLiteralSupport.cpp1003 llvm::APInt RadixVal(Val.getBitWidth(), radix); in GetIntegerValue()
1004 llvm::APInt CharVal(Val.getBitWidth(), 0); in GetIntegerValue()
1161 auto MaxVal = llvm::APInt::getMaxValue(StoreVal.getBitWidth()); in GetFixedPointValue()
1162 if (Val.getBitWidth() > StoreVal.getBitWidth()) { in GetFixedPointValue()
1163 IntOverflowOccurred |= Val.ugt(MaxVal.zext(Val.getBitWidth())); in GetFixedPointValue()
1164 StoreVal = Val.trunc(StoreVal.getBitWidth()); in GetFixedPointValue()
1165 } else if (Val.getBitWidth() < StoreVal.getBitWidth()) { in GetFixedPointValue()
1166 IntOverflowOccurred |= Val.zext(MaxVal.getBitWidth()).ugt(MaxVal); in GetFixedPointValue()
1167 StoreVal = Val.zext(StoreVal.getBitWidth()); in GetFixedPointValue()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DRangedConstraintManager.cpp91 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymInclusiveRange()
157 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() && in assumeSymRel()
H A DLoopUnrolling.cpp216 if (InitNum.getBitWidth() != BoundNum.getBitWidth()) { in shouldCompletelyUnroll()
217 InitNum = InitNum.zextOrSelf(BoundNum.getBitWidth()); in shouldCompletelyUnroll()
218 BoundNum = BoundNum.zextOrSelf(InitNum.getBitWidth()); in shouldCompletelyUnroll()
H A DSimpleConstraintManager.cpp100 From.getBitWidth() == To.getBitWidth() && in assumeInclusiveRange()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/
H A 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()
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/
H A 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 …]
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DDerivedTypes.h66 unsigned getBitWidth() const { return getSubclassData(); } in getBitWidth() function
71 return ~uint64_t(0UL) >> (64-getBitWidth()); in getBitMask()
77 return 1ULL << (getBitWidth()-1); in getSignBit()
98 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
452 unsigned getBitWidth() const { in getBitWidth() function
H A DConstantRange.h132 uint32_t getBitWidth() const { return Lower.getBitWidth(); } in getBitWidth() function
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType()
31 uint32_t getBitWidth() const { return BitWidth; } in getBitWidth() function
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMCodeGenPrepare.cpp215 cast<IntegerType>(V->getType())->getBitWidth() == 1) in isSupportedType()
370 APInt Total = ICmpConst->getValue().getBitWidth() < 32 ? in isSafeOverflow()
373 Total += OverflowConst->getValue().getBitWidth() < 32 ? in isSafeOverflow()
378 if (Total.getBitWidth() > Max.getBitWidth()) { in isSafeOverflow()
379 if (Total.ugt(Max.zext(Total.getBitWidth()))) in isSafeOverflow()
381 } else if (Max.getBitWidth() > Total.getBitWidth()) { in isSafeOverflow()
382 if (Total.zext(Max.getBitWidth()).ugt(Max)) in isSafeOverflow()
/freebsd-12.1/contrib/llvm/lib/Support/
H A DAPInt.cpp150 reallocate(RHS.getBitWidth()); in AssignSlowCase()
347 unsigned subBitWidth = subBits.getBitWidth(); in insertBits()
503 assert(getBitWidth() % SplatSizeInBits == 0 && in isSplat()
1153 t = signedMin + (d.lshr(d.getBitWidth() - 1)); in magic()
1155 p = d.getBitWidth() - 1; // initialize p in magic()
1200 p = d.getBitWidth() - 1; // initialize p in magicu()
1226 } while (p < d.getBitWidth()*2 && in magicu()
1928 Overflow = ShAmt.uge(getBitWidth()); in sshl_ov()
1941 Overflow = ShAmt.uge(getBitWidth()); in ushl_ov()
2740 unsigned CoeffWidth = A.getBitWidth(); in SolveQuadraticEquationWrap()
[all …]

123456789