Searched refs:BitWidth (Results 1 - 25 of 94) sorted by relevance

1234

/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h21 uint32_t BitWidth; member in class:clang::ento::APSIntType
26 : BitWidth(Width), IsUnsigned(Unsigned) {}
29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {}
31 uint32_t getBitWidth() const { return BitWidth; }
41 Value = Value.extOrTrunc(BitWidth);
57 return llvm::APSInt(BitWidth, IsUnsigned);
62 return llvm::APSInt::getMinValue(BitWidth, IsUnsigned);
67 return llvm::APSInt::getMaxValue(BitWidth, IsUnsigned);
71 return (llvm::APSInt(BitWidth, IsUnsigned) = RawValue);
93 return BitWidth
[all...]
/external/llvm/lib/Support/
H A DAPInt.cpp91 assert(BitWidth && "Bitwidth too small");
108 : BitWidth(numBits), VAL(0) {
113 : BitWidth(numBits), VAL(0) {
118 : BitWidth(numbits), VAL(0) {
119 assert(BitWidth && "Bitwidth too small");
128 if (BitWidth == RHS.getBitWidth()) {
151 BitWidth = RHS.BitWidth;
167 ID.AddInteger(BitWidth);
253 assert(BitWidth
[all...]
H A DStringRef.cpp434 unsigned BitWidth = Log2Radix * Str.size();
435 if (BitWidth < Result.getBitWidth())
436 BitWidth = Result.getBitWidth(); // don't shrink the result
437 else if (BitWidth > Result.getBitWidth())
438 Result = Result.zext(BitWidth);
443 RadixAP = APInt(BitWidth, Radix);
444 CharAP = APInt(BitWidth, 0);
/external/llvm/include/llvm/ADT/
H A DAPInt.h76 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::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) {
280 assert(BitWidth && "bitwidth too small");
288 APInt(APInt &&that) : BitWidth(tha
441 getSignBit(unsigned BitWidth) argument
[all...]
/external/llvm/include/llvm/IR/
H A DConstantRange.h51 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
185 /// zero extended to BitWidth.
186 ConstantRange zeroExtend(uint32_t BitWidth) const;
191 /// sign extended to BitWidth.
192 ConstantRange signExtend(uint32_t BitWidth) const;
198 ConstantRange truncate(uint32_t BitWidth) const;
200 /// zextOrTrunc - make this range have the bit width given by \p BitWidth. The
202 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
204 /// sextOrTrunc - make this range have the bit width given by \p BitWidth. The
206 ConstantRange sextOrTrunc(uint32_t BitWidth) cons
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp55 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local
56 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
57 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
107 uint32_t BitWidth = DemandedMask.getBitWidth(); local
111 assert((!DL || DL->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
113 VTy->getScalarSizeInBits() == BitWidth) &&
114 KnownZero.getBitWidth() == BitWidth &&
115 KnownOne.getBitWidth() == BitWidth &&
117 "must have same BitWidth");
855 unsigned BitWidth = Ty->getIntegerBitWidth(); local
[all...]
H A DInstCombineCalls.cpp322 uint32_t BitWidth = IT->getBitWidth(); local
323 APInt KnownZero(BitWidth, 0);
324 APInt KnownOne(BitWidth, 0);
327 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros));
330 APInt(BitWidth, TrailingZeros)));
340 uint32_t BitWidth = IT->getBitWidth(); local
341 APInt KnownZero(BitWidth, 0);
342 APInt KnownOne(BitWidth, 0);
345 APInt Mask(APInt::getHighBitsSet(BitWidth, LeadingZeros));
348 APInt(BitWidth, LeadingZero
355 uint32_t BitWidth = IT->getBitWidth(); local
463 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); local
752 unsigned BitWidth = local
[all...]
H A DInstCombineCasts.cpp374 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
375 if (BitWidth < OrigBitWidth) {
376 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth);
389 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
390 if (CI->getLimitedValue(BitWidth) < BitWidth)
400 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
402 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth)) &&
403 CI->getLimitedValue(BitWidth) < BitWidth) {
554 uint32_t BitWidth = Op1C->getType()->getBitWidth(); local
598 uint32_t BitWidth = ITy->getBitWidth(); local
922 unsigned BitWidth = Op1C->getType()->getBitWidth(); local
[all...]
/external/llvm/include/llvm/CodeGen/
H A DValueTypes.h56 static EVT getFloatingPointVT(unsigned BitWidth) { argument
57 return MVT::getFloatingPointVT(BitWidth);
62 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument
63 MVT M = MVT::getIntegerVT(BitWidth);
66 return getExtendedIntegerVT(Context, BitWidth);
85 unsigned BitWidth = EltTy.getSizeInBits(); local
86 MVT IntTy = MVT::getIntegerVT(BitWidth);
261 unsigned BitWidth = getSizeInBits(); local
262 if (BitWidth <= 8)
264 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth));
[all...]
H A DMachineValueType.h469 static MVT getFloatingPointVT(unsigned BitWidth) { argument
470 switch (BitWidth) {
486 static MVT getIntegerVT(unsigned BitWidth) { argument
487 switch (BitWidth) {
/external/llvm/lib/Analysis/
H A DValueTracking.cpp42 if (unsigned BitWidth = Ty->getScalarSizeInBits())
43 return BitWidth;
58 unsigned BitWidth = KnownZero.getBitWidth(); local
60 // NLZ can't be BitWidth with no sign bit
61 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1);
70 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
76 unsigned BitWidth = KnownZero.getBitWidth(); local
82 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
93 APInt Mask = APInt::getLowBitsSet(BitWidth, LHSKnownZeroOu
135 unsigned BitWidth = KnownZero.getBitWidth(); local
193 unsigned BitWidth = KnownZero.getBitWidth(); local
231 unsigned BitWidth = KnownZero.getBitWidth(); local
803 unsigned BitWidth = getBitWidth(V->getType(), TD); local
881 unsigned BitWidth = V->getType()->getScalarSizeInBits(); local
1003 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), TD); local
1718 unsigned BitWidth = DL ? DL->getPointerTypeSizeInBits(Ptr->getType()) : 64; local
1996 unsigned BitWidth = getBitWidth(Op->getType(), TD); local
[all...]
H A DScalarEvolutionAliasAnalysis.cpp128 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); local
129 APInt ASizeInt(BitWidth, LocA.Size);
130 APInt BSizeInt(BitWidth, LocB.Size);
H A DConstantFolding.cpp232 unsigned BitWidth = TD.getPointerTypeSizeInBits(GV->getType()); local
233 Offset = APInt(BitWidth, 0);
251 unsigned BitWidth = TD.getPointerTypeSizeInBits(GEP->getType()); local
252 APInt TmpOffset(BitWidth, 0);
626 unsigned BitWidth = DL->getTypeSizeInBits(Op0->getType()->getScalarType()); local
627 APInt KnownZero0(BitWidth, 0), KnownOne0(BitWidth, 0);
628 APInt KnownZero1(BitWidth, 0), KnownOne1(BitWidth, 0);
763 unsigned BitWidth local
[all...]
H A DScalarEvolution.cpp947 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local
977 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1018 const SCEV *N = getConstant(APInt::getMinValue(BitWidth) -
1032 const SCEV *N = getConstant(APInt::getMaxValue(BitWidth) -
1065 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local
1068 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1073 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1120 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); local
1121 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1229 unsigned BitWidth local
1653 uint64_t BitWidth = getTypeSizeInBits(Ty); variable
[all...]
/external/clang/lib/Basic/
H A DTargetInfo.cpp157 unsigned BitWidth, bool IsSigned) const {
158 if (getCharWidth() == BitWidth)
160 if (getShortWidth() == BitWidth)
162 if (getIntWidth() == BitWidth)
164 if (getLongWidth() == BitWidth)
166 if (getLongLongWidth() == BitWidth)
171 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, argument
173 if (getCharWidth() >= BitWidth)
175 if (getShortWidth() >= BitWidth)
177 if (getIntWidth() >= BitWidth)
156 getIntTypeByWidth( unsigned BitWidth, bool IsSigned) const argument
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp42 if (MinBits <= BitWidth)
H A DBasicValueFactory.cpp95 const llvm::APSInt& BasicValueFactory::getValue(uint64_t X, unsigned BitWidth, argument
97 llvm::APSInt V(BitWidth, isUnsigned);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp285 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument
293 if (BitWidth > LOI->KnownZero.getBitWidth()) {
295 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
296 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
320 unsigned BitWidth = IntVT.getSizeInBits(); local
331 APInt Zero(BitWidth, 0);
338 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
350 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth);
358 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
359 DestLOI.KnownOne.getBitWidth() == BitWidth
[all...]
H A DTargetLowering.cpp322 unsigned BitWidth,
342 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros();
346 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) {
378 unsigned BitWidth = DemandedMask.getBitWidth(); local
379 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth &&
385 KnownZero = KnownOne = APInt(BitWidth, 0);
397 NewMask = APInt::getAllOnesValue(BitWidth);
454 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
488 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
513 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMas
321 ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, SDLoc dl) argument
1142 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); local
1488 unsigned BitWidth = N0.getValueSizeInBits(); local
[all...]
/external/llvm/lib/ExecutionEngine/JIT/
H A DJIT.cpp306 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
307 if (BitWidth == 1)
308 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
309 else if (BitWidth <= 8)
310 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
311 else if (BitWidth <= 16)
312 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
313 else if (BitWidth <= 32)
314 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
315 else if (BitWidth <
[all...]
/external/llvm/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp496 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
497 if (BitWidth == 1)
498 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
499 else if (BitWidth <= 8)
500 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
501 else if (BitWidth <= 16)
502 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
503 else if (BitWidth <= 32)
504 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
505 else if (BitWidth <
[all...]
/external/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp36 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); local
39 if (BitWidth == 64) {
42 assert(BitWidth == 32 && "Unexpected bit width");
108 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); local
111 if (BitWidth == 64) {
114 assert(BitWidth == 32 && "Unexpected bit width");
159 unsigned BitWidth = DivTy->getBitWidth(); local
166 if (BitWidth == 64) {
172 assert(BitWidth == 32 && "Unexpected bit width");
/external/llvm/utils/TableGen/
H A DFixedLenDecoderEmitter.cpp100 unsigned Indentation, unsigned BitWidth,
331 unsigned BitWidth; member in class:__anon25760::FilterChooser
341 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth),
350 Parent(nullptr), BestIndex(-1), BitWidth(BW), Emitter(E) {
351 for (unsigned i = 0; i < BitWidth; ++i)
364 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth),
369 unsigned getBitWidth() const { return BitWidth; }
384 for (unsigned i = 0; i < BitWidth;
720 emitTable(formatted_raw_ostream &OS, DecoderTable &Table, unsigned Indentation, unsigned BitWidth, StringRef Namespace) const argument
726 << BitWidth << "[] = {\\n"; local
[all...]
/external/clang/include/clang/AST/
H A DTemplateBase.h84 // BitWidth > 64. The memory may be shared between multiple
86 unsigned BitWidth : 31; member in struct:clang::TemplateArgument::I
288 if (Integer.BitWidth <= 64)
289 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
291 unsigned NumWords = APInt::getNumWords(Integer.BitWidth);
292 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
/external/llvm/lib/Target/AArch64/InstPrinter/
H A DAArch64InstPrinter.h87 template<int BitWidth>
89 printAMIndexedWB(MI, OpNum, BitWidth / 8, O);

Completed in 524 milliseconds

1234