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

12345678

/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/Analysis/
H A DDemandedBits.cpp77 unsigned BitWidth = AB.getBitWidth(); local
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,
327 unsigned BitWidth = IT->getBitWidth(); local
[all...]
H A DValueTracking.cpp57 if (unsigned BitWidth = Ty->getScalarSizeInBits())
58 return BitWidth;
245 unsigned BitWidth = KnownZero.getBitWidth(); local
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(); local
267 APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
272 APInt CarryIn(BitWidth,
318 unsigned BitWidth = KnownZero.getBitWidth(); local
377 unsigned BitWidth = KnownZero.getBitWidth(); local
527 unsigned BitWidth = KnownZero.getBitWidth(); local
796 unsigned BitWidth = KnownZero.getBitWidth(); local
872 unsigned BitWidth = KnownZero.getBitWidth(); local
1379 unsigned BitWidth = KnownZero.getBitWidth(); local
1477 unsigned BitWidth = getBitWidth(V->getType(), Q.DL); local
1558 unsigned BitWidth = V->getType()->getScalarSizeInBits(); local
1720 unsigned BitWidth = getBitWidth(V->getType()->getScalarType(), Q.DL); local
1895 auto BitWidth = Ty->getBitWidth(); local
2759 unsigned BitWidth = DL.getPointerTypeSizeInBits(Ptr->getType()); local
3286 unsigned BitWidth = LHS->getType()->getScalarSizeInBits(); 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/swiftshader/third_party/LLVM/include/llvm/Support/
H A DConstantRange.h48 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
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. The
199 ConstantRange sextOrTrunc(uint32_t BitWidth) cons
[all...]
/external/llvm/lib/Support/
H A DAPInt.cpp92 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;
168 ID.AddInteger(BitWidth);
254 assert(BitWidth
[all...]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp53 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local
54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
55 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
105 uint32_t BitWidth = DemandedMask.getBitWidth(); local
109 assert((!TD || TD->getTypeSizeInBits(VTy->getScalarType()) == BitWidth) &&
111 VTy->getScalarSizeInBits() == BitWidth) &&
112 KnownZero.getBitWidth() == BitWidth &&
113 KnownOne.getBitWidth() == BitWidth &&
115 "must have same BitWidth");
[all...]
H A DInstCombineCalls.cpp359 uint32_t BitWidth = IT->getBitWidth(); local
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(); local
379 APInt KnownZero(BitWidth, 0);
380 APInt KnownOne(BitWidth, 0);
381 ComputeMaskedBits(II->getArgOperand(0), APInt::getAllOnesValue(BitWidth),
394 uint32_t BitWidth = IT->getBitWidth(); local
488 unsigned BitWidth = cast<IntegerType>(LHS->getType())->getBitWidth(); local
[all...]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
H A DAPInt.cpp92 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;
168 ID.AddInteger(BitWidth);
254 assert(BitWidth
[all...]
/external/swiftshader/third_party/LLVM/lib/Support/
H A DAPInt.cpp89 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;
165 ID.AddInteger(BitWidth);
251 assert(BitWidth
[all...]
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DValueTracking.cpp38 if (unsigned BitWidth = Ty->getScalarSizeInBits())
39 return BitWidth;
65 unsigned BitWidth = Mask.getBitWidth(); local
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");
94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth,
697 unsigned BitWidth = getBitWidth(V->getType(), TD); local
773 unsigned BitWidth = getBitWidth(V->getType(), TD); local
[all...]
/external/llvm/include/llvm/IR/
H A DConstantRange.h52 explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true);
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. The
250 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/swiftshader/third_party/LLVM/utils/TableGen/
H A DTGValueTypes.cpp32 unsigned BitWidth; member in class:ExtendedIntegerType
35 : BitWidth(bits) {}
40 return BitWidth;
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
H A DAPInt.h78 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::APInt
102 APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {}
107 bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; }
142 unsigned wordBits = BitWidth % APINT_BITS_PER_WORD;
241 : BitWidth(numBits), VAL(0) {
242 assert(BitWidth && "bitwidth too small");
283 APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) {
291 APInt(APInt &&that) : BitWidth(that.BitWidth), VA
451 getSignBit(unsigned BitWidth) argument
[all...]
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DAPInt.h74 unsigned BitWidth; ///< The number of bits in this APInt. member in class:llvm::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");
283 explicit APInt() : BitWidth(
420 getSignBit(unsigned BitWidth) argument
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp54 unsigned BitWidth = Inst.getType()->getScalarSizeInBits(); local
55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
56 APInt DemandedMask(APInt::getAllOnesValue(BitWidth));
109 uint32_t BitWidth = DemandedMask.getBitWidth(); local
112 (!VTy->isIntOrIntVectorTy() || VTy->getScalarSizeInBits() == BitWidth) &&
113 KnownZero.getBitWidth() == BitWidth &&
114 KnownOne.getBitWidth() == BitWidth &&
116 "must have same BitWidth");
141 APInt LHSKnownZero(BitWidth,
844 unsigned BitWidth = Ty->getIntegerBitWidth(); 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);
283 unsigned BitWidth = getSizeInBits(); local
284 if (BitWidth <= 8)
286 return getIntegerVT(Context, 1 << Log2_32_Ceil(BitWidth));
[all...]
/external/swiftshader/third_party/LLVM/lib/ExecutionEngine/MCJIT/
H A DMCJIT.cpp186 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth(); local
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 <
[all...]
/external/clang/lib/Basic/
H A DTargetInfo.cpp186 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, argument
202 if (getCharWidth() >= BitWidth)
204 if (getShortWidth() >= BitWidth)
206 if (getIntWidth() >= BitWidth)
185 getIntTypeByWidth( unsigned BitWidth, bool IsSigned) const argument
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DAPSIntType.cpp42 if (MinBits <= BitWidth)
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/
H A DValueTypes.h300 static MVT getFloatingPointVT(unsigned BitWidth) { argument
301 switch (BitWidth) {
315 static MVT getIntegerVT(unsigned BitWidth) { argument
316 switch (BitWidth) {
405 static EVT getFloatingPointVT(unsigned BitWidth) { argument
406 return MVT::getFloatingPointVT(BitWidth);
411 static EVT getIntegerVT(LLVMContext &Context, unsigned BitWidth) { argument
412 MVT M = MVT::getIntegerVT(BitWidth);
415 return getExtendedIntegerVT(Context, BitWidth);
448 unsigned BitWidth local
615 unsigned BitWidth = getSizeInBits(); local
[all...]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
H A Dtarget_machine_features.h61 (primitive_util::BitWidth(type) / 8);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DFunctionLoweringInfo.cpp402 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument
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(); local
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/
H A DFunctionLoweringInfo.cpp243 FunctionLoweringInfo::GetLiveOutRegInfo(unsigned Reg, unsigned BitWidth) { argument
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(); local
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...]

Completed in 2582 milliseconds

12345678