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

12345

/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/Transforms/Scalar/
H A DBDCE.cpp89 unsigned BitWidth = AB.getBitWidth(); local
98 [&](unsigned BitWidth, const Value *V1, const Value *V2) {
100 KnownZero = APInt(BitWidth, 0);
101 KnownOne = APInt(BitWidth, 0);
106 KnownZero2 = APInt(BitWidth, 0);
107 KnownOne2 = APInt(BitWidth, 0);
130 ComputeKnownBits(BitWidth, I, nullptr);
131 AB = APInt::getHighBitsSet(BitWidth,
132 std::min(BitWidth, KnownOne.countLeadingZeros()+1));
140 ComputeKnownBits(BitWidth,
329 unsigned BitWidth = IT->getBitWidth(); local
[all...]
/external/llvm/lib/ExecutionEngine/Orc/
H A DOrcMCJITReplacement.cpp91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
92 if (BitWidth == 1)
93 rv.IntVal = APInt(BitWidth, ((bool (*)())(intptr_t)FPtr)());
94 else if (BitWidth <= 8)
95 rv.IntVal = APInt(BitWidth, ((char (*)())(intptr_t)FPtr)());
96 else if (BitWidth <= 16)
97 rv.IntVal = APInt(BitWidth, ((short (*)())(intptr_t)FPtr)());
98 else if (BitWidth <= 32)
99 rv.IntVal = APInt(BitWidth, ((int (*)())(intptr_t)FPtr)());
100 else if (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/IR/
H A DConstantRange.h52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
192 /// zero extended to BitWidth.
193 ConstantRange zeroExtend(uint32_t BitWidth) const;
198 /// sign extended to BitWidth.
199 ConstantRange signExtend(uint32_t BitWidth) const;
205 ConstantRange truncate(uint32_t BitWidth) const;
207 /// Make this range have the bit width given by \p BitWidth. The
209 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
211 /// Make this range have the bit width given by \p BitWidth. The
213 ConstantRange sextOrTrunc(uint32_t BitWidth) cons
[all...]
/external/llvm/include/llvm/ADT/
H A DAPInt.h74 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) {
287 APInt(APInt &&that) : BitWidth(that.BitWidth), VA
447 getSignBit(unsigned BitWidth) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp68 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local
69 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
70 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
122 uint32_t BitWidth = DemandedMask.getBitWidth(); local
125 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) &&
126 KnownZero.getBitWidth() == BitWidth &&
127 KnownOne.getBitWidth() == BitWidth &&
129 "must have same BitWidth");
154 APInt LHSKnownZero(BitWidth,
898 unsigned BitWidth = Ty->getIntegerBitWidth(); local
[all...]
H A DInstCombineAddSub.cpp876 int BitWidth = Op0KnownZero.getBitWidth(); local
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(); local
917 APInt LHSKnownZero(BitWidth, 0);
918 APInt LHSKnownOne(BitWidth, 0);
921 APInt RHSKnownZero(BitWidth, 0);
922 APInt RHSKnownOne(BitWidth, 0);
927 if ((LHSKnownOne[BitWidth
953 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local
[all...]
H A DInstCombineCasts.cpp369 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
370 if (BitWidth < OrigBitWidth) {
371 APInt Mask = APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth);
384 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
385 if (CI->getLimitedValue(BitWidth) < BitWidth)
395 uint32_t BitWidth = Ty->getScalarSizeInBits(); local
397 APInt::getHighBitsSet(OrigBitWidth, OrigBitWidth-BitWidth), 0, CxtI) &&
398 CI->getLimitedValue(BitWidth) < BitWidth) {
549 uint32_t BitWidth = Op1C->getType()->getBitWidth(); local
593 uint32_t BitWidth = ITy->getBitWidth(); local
925 unsigned BitWidth = Op1C->getType()->getBitWidth(); local
[all...]
/external/llvm/include/llvm/CodeGen/
H A DValueTypes.h55 static EVT getFloatingPointVT(unsigned BitWidth) { argument
56 return MVT::getFloatingPointVT(BitWidth);
61 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument
62 MVT M = MVT::getIntegerVT(BitWidth);
65 return getExtendedIntegerVT(Context, BitWidth);
84 unsigned BitWidth = EltTy.getSizeInBits(); local
85 MVT IntTy = MVT::getIntegerVT(BitWidth);
260 unsigned BitWidth = getSizeInBits(); local
261 if (BitWidth <= 8)
263 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth));
[all...]
H A DMachineValueType.h486 static MVT getFloatingPointVT(unsigned BitWidth) { argument
487 switch (BitWidth) {
503 static MVT getIntegerVT(unsigned BitWidth) { argument
504 switch (BitWidth) {
/external/llvm/lib/Analysis/
H A DValueTracking.cpp73 if (unsigned BitWidth = Ty->getScalarSizeInBits())
74 return BitWidth;
202 unsigned BitWidth = KnownZero.getBitWidth(); local
204 // NLZ can't be BitWidth with no sign bit
205 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1);
214 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
220 unsigned BitWidth = KnownZero.getBitWidth(); local
224 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
229 APInt CarryIn(BitWidth,
276 unsigned BitWidth = KnownZero.getBitWidth(); local
334 unsigned BitWidth = KnownZero.getBitWidth(); local
517 const unsigned BitWidth = KnownZero.getBitWidth(); local
682 unsigned BitWidth = KnownZero.getBitWidth(); local
941 unsigned BitWidth = KnownZero.getBitWidth(); local
1517 unsigned BitWidth = getBitWidth(V->getType(), DL); local
1596 unsigned BitWidth = V->getType()->getScalarSizeInBits(); local
1747 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), DL); local
2561 unsigned BitWidth = DL.getPointerTypeSizeInBits(Ptr->getType()); local
2959 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); local
[all...]
H A DScalarEvolutionAliasAnalysis.cpp129 unsigned BitWidth = SE->getTypeSizeInBits(AS->getType()); local
130 APInt ASizeInt(BitWidth, LocA.Size);
131 APInt BSizeInt(BitWidth, LocB.Size);
H A DConstantFolding.cpp240 unsigned BitWidth = DL.getPointerTypeSizeInBits(GV->getType()); local
241 Offset = APInt(BitWidth, 0);
260 unsigned BitWidth = DL.getPointerTypeSizeInBits(GEP->getType()); local
261 APInt TmpOffset(BitWidth, 0);
630 unsigned BitWidth = DL.getTypeSizeInBits(Op0->getType()->getScalarType()); local
631 APInt KnownZero0(BitWidth, 0), KnownOne0(BitWidth, 0);
632 APInt KnownZero1(BitWidth, 0), KnownOne1(BitWidth, 0);
762 unsigned BitWidth local
[all...]
H A DScalarEvolution.cpp1159 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local
1162 return SE->getConstant(APInt::getSignedMinValue(BitWidth) -
1167 return SE->getConstant(APInt::getSignedMaxValue(BitWidth) -
1179 unsigned BitWidth = SE->getTypeSizeInBits(Step->getType()); local
1182 return SE->getConstant(APInt::getMinValue(BitWidth) -
1289 unsigned BitWidth = SE->getTypeSizeInBits(AR->getType()); local
1290 Type *WideTy = IntegerType::get(SE->getContext(), BitWidth * 2);
1456 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local
1486 Type *WideTy = IntegerType::get(getContext(), BitWidth * 2);
1527 const SCEV *N = getConstant(APInt::getMinValue(BitWidth)
1647 unsigned BitWidth = getTypeSizeInBits(AR->getType()); local
2104 uint64_t BitWidth = getTypeSizeInBits(Ty); variable
[all...]
/external/clang/lib/Basic/
H A DTargetInfo.cpp179 unsigned BitWidth, bool IsSigned) const {
180 if (getCharWidth() == BitWidth)
182 if (getShortWidth() == BitWidth)
184 if (getIntWidth() == BitWidth)
186 if (getLongWidth() == BitWidth)
188 if (getLongLongWidth() == BitWidth)
193 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, argument
195 if (getCharWidth() >= BitWidth)
197 if (getShortWidth() >= BitWidth)
199 if (getIntWidth() >= BitWidth)
178 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/ExecutionEngine/MCJIT/
H A DMCJIT.cpp508 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
509 if (BitWidth == 1)
510 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
511 else if (BitWidth <= 8)
512 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
513 else if (BitWidth <= 16)
514 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
515 else if (BitWidth <= 32)
516 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
517 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/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp325 unsigned BitWidth,
345 unsigned DemandedSize = BitWidth - Demanded.countLeadingZeros();
349 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) {
381 unsigned BitWidth = DemandedMask.getBitWidth(); local
382 assert(Op.getValueType().getScalarType().getSizeInBits() == BitWidth &&
388 KnownZero = KnownOne = APInt(BitWidth, 0);
400 NewMask = APInt::getAllOnesValue(BitWidth);
457 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
491 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMask, dl))
516 if (TLO.ShrinkDemandedOp(Op, BitWidth, NewMas
324 ShrinkDemandedOp(SDValue Op, unsigned BitWidth, const APInt &Demanded, SDLoc dl) argument
1152 unsigned BitWidth = OpVT.getScalarType().getSizeInBits(); local
1515 unsigned BitWidth = N0.getValueSizeInBits(); local
[all...]
H A DFunctionLoweringInfo.cpp511 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument
519 if (BitWidth > LOI->KnownZero.getBitWidth()) {
521 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
522 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
544 unsigned BitWidth = IntVT.getSizeInBits(); local
555 APInt Zero(BitWidth, 0);
562 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
574 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth);
582 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
583 DestLOI.KnownOne.getBitWidth() == BitWidth
[all...]
/external/clang/include/clang/AST/
H A DTemplateBase.h85 // BitWidth > 64. The memory may be shared between multiple
87 unsigned BitWidth : 31; member in struct:clang::TemplateArgument::I
287 if (Integer.BitWidth <= 64)
288 return APSInt(APInt(Integer.BitWidth, Integer.VAL), Integer.IsUnsigned);
290 unsigned NumWords = APInt::getNumWords(Integer.BitWidth);
291 return APSInt(APInt(Integer.BitWidth, makeArrayRef(Integer.pVal, NumWords)),
/external/llvm/utils/TableGen/
H A DFixedLenDecoderEmitter.cpp100 unsigned Indentation, unsigned BitWidth,
331 unsigned BitWidth; member in class:__anon11370::FilterChooser
347 BitWidth(BW), Emitter(E) {
358 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth),
363 unsigned getBitWidth() const { return BitWidth; }
378 for (unsigned i = 0; i < BitWidth; ++i) {
498 assert(StartBit + NumBits - 1 < Owner->BitWidth);
695 unsigned BitWidth,
698 << BitWidth << "[] local
692 emitTable(formatted_raw_ostream &OS, DecoderTable &Table, unsigned Indentation, unsigned BitWidth, StringRef Namespace) const argument
[all...]

Completed in 2485 milliseconds

12345