Searched refs:getBitWidth (Results 1 - 25 of 169) sorted by relevance

1234567

/external/llvm/lib/IR/
H A DOperator.cpp17 assert(Offset.getBitWidth() ==
33 Offset += APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx));
38 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth());
39 Offset += Index * APInt(Offset.getBitWidth(),
H A DConstantRange.cpp48 assert(Lower.getBitWidth() == Upper.getBitWidth() &&
59 uint32_t W = CR.getBitWidth();
152 unsigned BitWidth = C.getBitWidth();
204 return contains(APInt::getSignedMaxValue(getBitWidth())) &&
205 contains(APInt::getSignedMinValue(getBitWidth()));
212 APInt Size(getBitWidth()+1, 0);
213 Size.setBit(getBitWidth());
218 return (Upper - Lower).zext(getBitWidth()+1);
226 return APInt::getMaxValue(getBitWidth());
[all...]
H A DMDBuilder.cpp67 assert(Lo.getBitWidth() == Hi.getBitWidth() && "Mismatched bitwidths!");
69 Type *Ty = IntegerType::get(Context, Lo.getBitWidth());
H A DType.cpp54 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth;
74 return thisPTy->getBitWidth() == thatPTy->getBitWidth();
76 thisPTy->getBitWidth() == 64)
82 if (thatPTy->getBitWidth() == 64)
123 case Type::IntegerTyID: return cast<IntegerType>(this)->getBitWidth();
124 case Type::VectorTyID: return cast<VectorType>(this)->getBitWidth();
170 return cast<IntegerType>(this)->getBitWidth();
323 unsigned BitWidth = getBitWidth();
328 return APInt::getAllOnesValue(getBitWidth());
[all...]
H A DValueTypes.cpp108 return ITy->getBitWidth();
110 return VTy->getBitWidth();
284 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth());
309 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth());
/external/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp49 if (Imm.getBitWidth() <= 64) {
90 if (Idx == 0 && Imm.getBitWidth() <= 64) {
100 if (Idx == 1 && Imm.getBitWidth() <= 64) {
111 if (Idx == 1 && Imm.getBitWidth() <= 64) {
121 if (Idx == 1 && Imm.getBitWidth() <= 64) {
129 if (Idx == 1 && Imm.getBitWidth() <= 64) {
139 if (Idx == 1 && Imm.getBitWidth() <= 64) {
205 if (Idx == 1 && Imm.getBitWidth() <= 64) {
215 if (Idx == 1 && Imm.getBitWidth() <= 64) {
221 if ((Idx < 2) || (Imm.getBitWidth() <
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DAPSIntType.h29 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {}
31 uint32_t getBitWidth() const { return BitWidth; } function in class:clang::ento::APSIntType
/external/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp184 if ((ITy->getBitWidth() == 8 || ITy->getBitWidth() == 16 ||
185 ITy->getBitWidth() == 32) &&
187 if (ITy->getBitWidth() == 8)
189 if (ITy->getBitWidth() == 16)
192 assert(ITy->getBitWidth() == 32 && "Unknown width");
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp198 From.getBitWidth() == To.getBitWidth() &&
273 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() &&
321 if (ComparisonType.getBitWidth() == WraparoundType.getBitWidth() &&
H A DBasicValueFactory.cpp184 if (Amt >= V1.getBitWidth())
202 if (Amt >= V1.getBitWidth())
/external/llvm/lib/Analysis/
H A DDemandedBits.cpp75 unsigned BitWidth = AB.getBitWidth();
236 if ((AOut & APInt::getHighBitsSet(AOut.getBitWidth(),
237 AOut.getBitWidth() - BitWidth))
286 AliveBits[&I] = APInt(IT->getBitWidth(), 0);
297 AliveBits[J] = APInt::getAllOnesValue(IT->getBitWidth());
329 unsigned BitWidth = IT->getBitWidth();
/external/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp51 if (Imm.getBitWidth() <= 64) {
85 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<16>(Imm.getSExtValue()))
89 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
94 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue())))
158 if (Idx == ImmIdx && Imm.getBitWidth() <= 64) {
163 if (Imm.getBitWidth() <= 32 &&
/external/llvm/include/llvm/ADT/
H A DAPSInt.h296 if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
300 if (I1.getBitWidth() > I2.getBitWidth())
301 return compareValues(I1, I2.extend(I1.getBitWidth()));
302 else if (I2.getBitWidth() > I1.getBitWidth())
303 return compareValues(I1.extend(I2.getBitWidth()), I2);
H A DAPInt.h547 assert(NewLen >= V.getBitWidth() && "Can't splat to smaller bit width!");
550 for (unsigned I = V.getBitWidth(); I < NewLen; I <<= 1)
559 if (I1.getBitWidth() == I2.getBitWidth())
562 if (I1.getBitWidth() > I2.getBitWidth())
563 return I1 == I2.zext(I1.getBitWidth());
565 return I1.zext(I2.getBitWidth()) == I2;
778 return APInt(getBitWidth(), VAL & RHS.VAL);
793 return APInt(getBitWidth(), VA
[all...]
/external/llvm/include/llvm/IR/
H A DConstantRange.h106 uint32_t getBitWidth() const { return Lower.getBitWidth(); } function in class:llvm::ConstantRange
H A DDerivedTypes.h62 unsigned getBitWidth() const { return getSubclassData(); } function in class:llvm::IntegerType
68 return ~uint64_t(0UL) >> (64-getBitWidth());
74 return 1ULL << (getBitWidth()-1);
432 unsigned getBitWidth() const { function in class:llvm::VectorType
/external/llvm/unittests/ADT/
H A DAPSIntTest.cpp46 EXPECT_EQ(64u, APSInt::get(7).getBitWidth());
50 EXPECT_EQ(64u, APSInt::get(-7).getBitWidth());
57 EXPECT_EQ(64u, APSInt::getUnsigned(7).getBitWidth());
61 EXPECT_EQ(64u, APSInt::getUnsigned(-7).getBitWidth());
/external/clang/lib/Lex/
H A DPPExpressions.cpp42 unsigned getBitWidth() const { return Val.getBitWidth(); } function in class:__anon1423::PPValue
312 if (Result.Val.getBitWidth() > Val.getBitWidth()) {
313 Result.Val = Val.extend(Result.Val.getBitWidth());
315 assert(Result.Val.getBitWidth() == Val.getBitWidth() &&
494 PPValue RHS(LHS.getBitWidth());
537 llvm::APSInt Res(LHS.getBitWidth());
608 if (ShAmt >= LHS.getBitWidth())
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp402 APInt One(Idx->getBitWidth(), 1);
504 APInt One(RHS->getBitWidth(), 1);
550 if (A.getBitWidth() < B.getBitWidth())
551 A = A.sext(B.getBitWidth());
552 else if (A.getBitWidth() > B.getBitWidth())
553 B = B.sext(A.getBitWidth());
568 IndexOffset.getBitWidth(),
590 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth());
[all...]
H A DSROA.cpp713 APInt(Offset.getBitWidth(), SL->getElementOffset(ElementIdx));
717 APInt Index = OpC->getValue().sextOrTrunc(Offset.getBitWidth());
718 GEPOffset += Index * APInt(Offset.getBitWidth(),
1101 if (UserITy->getBitWidth() % 8 != 0 ||
1102 UserITy->getBitWidth() / 8 > (EndOffset - B->beginOffset()))
1107 if (!ITy || ITy->getBitWidth() < UserITy->getBitWidth())
1419 APInt ElementSize(Offset.getBitWidth(), ElementSizeInBits / 8);
1431 APInt ElementSize(Offset.getBitWidth(), DL.getTypeAllocSize(ElementTy));
1451 Offset -= APInt(Offset.getBitWidth(), S
[all...]
/external/llvm/lib/ExecutionEngine/Orc/
H A DOrcMCJITReplacement.cpp91 unsigned BitWidth = cast<IntegerType>(RetTy)->getBitWidth();
/external/llvm/lib/Support/
H A DAPInt.cpp128 if (BitWidth == RHS.getBitWidth()) {
440 return APInt(val, getBitWidth());
448 return APInt(val, getBitWidth());
457 APInt Result(val, getBitWidth());
676 assert(getBitWidth() % SplatSizeInBits == 0 &&
1421 APInt signedMin = APInt::getSignedMinValue(d.getBitWidth());
1425 t = signedMin + (d.lshr(d.getBitWidth() - 1));
1427 p = d.getBitWidth() - 1; // initialize p
1451 mag.s = p - d.getBitWidth(); // resulting shift
1467 APInt allOnes = APInt::getAllOnesValue(d.getBitWidth())
[all...]
H A DStringRef.cpp474 if (BitWidth < Result.getBitWidth())
475 BitWidth = Result.getBitWidth(); // don't shrink the result
476 else if (BitWidth > Result.getBitWidth())
/external/llvm/include/llvm/Analysis/
H A DMemoryBuiltins.h173 return SizeOffset.first.getBitWidth() > 1;
177 return SizeOffset.second.getBitWidth() > 1;
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
184 KnownZero.getBitWidth() == Min.getBitWidth() &&
185 KnownZero.getBitWidth() == Max.getBitWidth() &&
195 Min.setBit(Min.getBitWidth()-1);
196 Max.clearBit(Max.getBitWidth()-1);
207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth()
[all...]

Completed in 300 milliseconds

1234567