HomeSort by relevance Sort by last modified time
    Searched refs:BitWidth (Results 1 - 25 of 176) sorted by null

1 2 3 4 5 6 7 8

  /external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
APSIntType.h 21 uint32_t BitWidth;
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 == Other.BitWidth && IsUnsigned == Other.IsUnsigned
    [all...]
  /external/llvm/lib/Analysis/
DemandedBits.cpp 77 unsigned BitWidth = AB.getBitWidth();
86 [&](unsigned BitWidth, const Value *V1, const Value *V2) {
88 KnownZero = APInt(BitWidth, 0);
89 KnownOne = APInt(BitWidth, 0);
94 KnownZero2 = APInt(BitWidth, 0);
95 KnownOne2 = APInt(BitWidth, 0);
118 ComputeKnownBits(BitWidth, I, nullptr);
119 AB = APInt::getHighBitsSet(BitWidth,
120 std::min(BitWidth, KnownOne.countLeadingZeros()+1));
128 ComputeKnownBits(BitWidth, I, nullptr)
    [all...]
ValueTracking.cpp 54 /// Returns the bitwidth of the given scalar or pointer type (if unknown returns
55 /// 0). For vector types, returns the element type's bitwidth.
57 if (unsigned BitWidth = Ty->getScalarSizeInBits())
58 return BitWidth;
245 unsigned BitWidth = KnownZero.getBitWidth();
247 // NLZ can't be BitWidth with no sign bit
248 APInt MaskV = APInt::getHighBitsSet(BitWidth, NLZ+1);
257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
263 unsigned BitWidth = KnownZero.getBitWidth();
267 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0)
    [all...]
  /external/llvm/lib/ExecutionEngine/Orc/
OrcMCJITReplacement.cpp 91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
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 <= 64
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
ConstantRange.h 48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
96 /// its bitwidth, for example: i8 [120, 140).
178 /// zero extended to BitWidth.
179 ConstantRange zeroExtend(uint32_t BitWidth) const;
184 /// sign extended to BitWidth.
185 ConstantRange signExtend(uint32_t BitWidth) const;
191 ConstantRange truncate(uint32_t BitWidth) const;
193 /// zextOrTrunc - make this range have the bit width given by \p BitWidth. The
195 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
197 /// sextOrTrunc - make this range have the bit width given by \p BitWidth. Th
    [all...]
  /external/llvm/lib/Support/
APInt.cpp 92 assert(BitWidth && "Bitwidth too small");
109 : BitWidth(numBits), VAL(0) {
114 : BitWidth(numBits), VAL(0) {
119 : BitWidth(numbits), VAL(0) {
120 assert(BitWidth && "Bitwidth too small");
129 if (BitWidth == RHS.getBitWidth()) {
152 BitWidth = RHS.BitWidth;
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 53 unsigned BitWidth = Inst.getType()->getScalarSizeInBits();
54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
92 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero
105 uint32_t BitWidth = DemandedMask.getBitWidth();
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
111 VTy->getScalarSizeInBits() == BitWidth) &&
112 KnownZero.getBitWidth() == BitWidth &&
113 KnownOne.getBitWidth() == BitWidth &
    [all...]
InstCombineCalls.cpp 359 uint32_t BitWidth = IT->getBitWidth();
360 APInt KnownZero(BitWidth, 0);
361 APInt KnownOne(BitWidth, 0);
362 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth),
365 APInt Mask(APInt::getLowBitsSet(BitWidth, TrailingZeros));
368 APInt(BitWidth, TrailingZeros)));
378 uint32_t BitWidth = IT->getBitWidth();
379 APInt KnownZero(BitWidth, 0);
380 APInt KnownOne(BitWidth, 0);
381 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth),
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Support/
APInt.cpp 89 assert(BitWidth && "Bitwidth too small");
106 : BitWidth(numBits), VAL(0) {
111 : BitWidth(numBits), VAL(0) {
116 : BitWidth(numbits), VAL(0) {
117 assert(BitWidth && "Bitwidth too small");
126 if (BitWidth == RHS.getBitWidth()) {
149 BitWidth = RHS.BitWidth;
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Analysis/
ValueTracking.cpp 35 /// getBitWidth - Returns the bitwidth of the given scalar or pointer type (if
36 /// unknown returns 0). For vector types, returns the element type's bitwidth.
38 if (unsigned BitWidth = Ty->getScalarSizeInBits())
39 return BitWidth;
65 unsigned BitWidth = Mask.getBitWidth();
69 TD->getTypeSizeInBits(V->getType()->getScalarType()) == BitWidth) &&
71 V->getType()->getScalarSizeInBits() == BitWidth) &&
72 KnownZero.getBitWidth() == BitWidth &&
73 KnownOne.getBitWidth() == BitWidth &&
74 "V, Mask, KnownOne and KnownZero should have same BitWidth");
    [all...]
  /external/llvm/include/llvm/IR/
ConstantRange.h 52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
149 /// its bitwidth. For example: i8 [120, 140).
229 /// zero extended to BitWidth.
230 ConstantRange zeroExtend(uint32_t BitWidth) const;
235 /// sign extended to BitWidth.
236 ConstantRange signExtend(uint32_t BitWidth) const;
242 ConstantRange truncate(uint32_t BitWidth) const;
244 /// Make this range have the bit width given by \p BitWidth. The
246 ConstantRange zextOrTrunc(uint32_t BitWidth) const;
248 /// 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/swiftshader/third_party/LLVM/utils/TableGen/
TGValueTypes.cpp 32 unsigned BitWidth;
35 : BitWidth(bits) {}
40 return BitWidth;
FixedLenDecoderEmitter.cpp 239 unsigned BitWidth;
249 BestIndex(FC.BestIndex), BitWidth(FC.BitWidth),
258 Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) {
259 for (unsigned i = 0; i < BitWidth; ++i)
272 Parent(&parent), BestIndex(-1), BitWidth(parent.BitWidth),
288 for (unsigned i = 0; i < BitWidth; ++i)
389 assert(StartBit + NumBits - 1 < Owner->BitWidth);
506 o.indent(Indentation) << "switch (fieldFromInstruction" << Owner->BitWidth
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
APInt.h 74 unsigned BitWidth; ///< The number of bits in this APInt.
95 APInt(uint64_t* val, unsigned bits) : BitWidth(bits), pVal(val) { }
100 return BitWidth <= APINT_BITS_PER_WORD;
132 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD;
228 : BitWidth(numBits), VAL(0) {
229 assert(BitWidth && "bitwidth too small");
267 : BitWidth(that.BitWidth), VAL(0) {
268 assert(BitWidth && "bitwidth too small")
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineSimplifyDemanded.cpp 54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits();
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
95 /// that the bitwidth of V, DemandedMask, KnownZero and KnownOne must all be the
109 uint32_t BitWidth = DemandedMask.getBitWidth();
112 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) &&
113 KnownZero.getBitWidth() == BitWidth &&
114 KnownOne.getBitWidth() == BitWidth &&
116 "must have same 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);
283 unsigned BitWidth = getSizeInBits();
284 if (BitWidth <= 8
    [all...]
  /external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/
MCJIT.cpp 186 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
187 if (BitWidth == 1)
188 rv.IntVal = APInt(BitWidth, ((bool(*)())(intptr_t)FPtr)());
189 else if (BitWidth <= 8)
190 rv.IntVal = APInt(BitWidth, ((char(*)())(intptr_t)FPtr)());
191 else if (BitWidth <= 16)
192 rv.IntVal = APInt(BitWidth, ((short(*)())(intptr_t)FPtr)());
193 else if (BitWidth <= 32)
194 rv.IntVal = APInt(BitWidth, ((int(*)())(intptr_t)FPtr)());
195 else if (BitWidth <= 64
    [all...]
  /external/clang/lib/Basic/
TargetInfo.cpp 186 unsigned BitWidth, bool IsSigned) const {
187 if (getCharWidth() == BitWidth)
189 if (getShortWidth() == BitWidth)
191 if (getIntWidth() == BitWidth)
193 if (getLongWidth() == BitWidth)
195 if (getLongLongWidth() == BitWidth)
200 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth,
202 if (getCharWidth() >= BitWidth)
204 if (getShortWidth() >= BitWidth)
206 if (getIntWidth() >= BitWidth)
    [all...]
  /external/clang/lib/StaticAnalyzer/Core/
APSIntType.cpp 42 if (MinBits <= BitWidth)
  /external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
ValueTypes.h 300 static MVT getFloatingPointVT(unsigned BitWidth) {
301 switch (BitWidth) {
315 static MVT getIntegerVT(unsigned BitWidth) {
316 switch (BitWidth) {
405 static EVT getFloatingPointVT(unsigned BitWidth) {
406 return MVT::getFloatingPointVT(BitWidth);
411 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) {
412 MVT M = MVT::getIntegerVT(BitWidth);
415 return getExtendedIntegerVT(Context, BitWidth);
443 /// integer type with the same bitwidth
    [all...]
  /external/spirv-llvm/lib/SPIRV/libSPIRV/
SPIRVType.h 134 :SPIRVType(M, 4, OC , TheId), BitWidth(TheBitWidth),
139 SPIRVTypeInt():SPIRVType(OC), BitWidth(0), IsSigned(false){}
141 unsigned getBitWidth() const { return BitWidth;}
153 _SPIRV_DEF_ENCDEC3(Id, BitWidth, IsSigned)
156 assert(BitWidth > 1 && BitWidth <= 64 && "Invalid bit width");
159 unsigned BitWidth; // Bit width
168 :SPIRVType(M, 3, OC, TheId), BitWidth(TheBitWidth){}
170 SPIRVTypeFloat():SPIRVType(OC), BitWidth(0){}
172 unsigned getBitWidth() const { return BitWidth;}
    [all...]
  /external/llvm/lib/CodeGen/SelectionDAG/
FunctionLoweringInfo.cpp 402 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) {
410 if (BitWidth > LOI->KnownZero.getBitWidth()) {
412 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
413 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
435 unsigned BitWidth = IntVT.getSizeInBits();
446 APInt Zero(BitWidth, 0);
453 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
465 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth);
473 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
474 DestLOI.KnownOne.getBitWidth() == BitWidth &
    [all...]
  /external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
FunctionLoweringInfo.cpp 243 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) {
251 if (BitWidth > LOI->KnownZero.getBitWidth()) {
253 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
254 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
276 unsigned BitWidth = IntVT.getSizeInBits();
287 APInt Zero(BitWidth, 0);
294 APInt Val = CI->getValue().zextOrTrunc(BitWidth);
306 const LiveOutInfo *SrcLOI = GetLiveOutRegInfo(SrcReg, BitWidth);
314 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
315 DestLOI.KnownOne.getBitWidth() == BitWidth &
    [all...]
  /external/llvm/lib/Transforms/IPO/
WholeProgramDevirt.cpp 135 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) {
136 if (BitWidth == 1)
139 OffsetByte = -((AllocBefore + 7) / 8 + (BitWidth + 7) / 8);
143 if (BitWidth == 1)
146 Target.setBeforeBytes(AllocBefore, (BitWidth + 7) / 8);
152 unsigned BitWidth, int64_t &OffsetByte, uint64_t &OffsetBit) {
153 if (BitWidth == 1)
160 if (BitWidth == 1)
163 Target.setAfterBytes(AllocAfter, (BitWidth + 7) / 8);
281 bool tryUniqueRetValOpt(unsigned BitWidth,
    [all...]

Completed in 1103 milliseconds

1 2 3 4 5 6 7 8