Searched refs:TypeBits (Results 1 – 7 of 7) sorted by relevance
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 330 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() local 335 if (Op1->uge(TypeBits)) { in FoldShiftByConstant() 339 I.setOperand(1, ConstantInt::get(I.getType(), TypeBits-1)); in FoldShiftByConstant() 423 uint32_t Op1Val = Op1->getLimitedValue(TypeBits); in FoldShiftByConstant() 425 APInt::getHighBitsSet(TypeBits, TypeBits-Op1Val))); in FoldShiftByConstant() 456 uint32_t Op1Val = Op1->getLimitedValue(TypeBits); in FoldShiftByConstant() 458 APInt::getHighBitsSet(TypeBits, TypeBits-Op1Val))); in FoldShiftByConstant() 509 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant() 532 uint32_t ShiftAmt1 = ShiftAmt1C->getLimitedValue(TypeBits); in FoldShiftByConstant() 533 uint32_t ShiftAmt2 = Op1->getLimitedValue(TypeBits); in FoldShiftByConstant() [all …]
|
D | InstCombineCompares.cpp | 909 uint32_t TypeBits = CmpRHSV.getBitWidth(); in FoldICmpShrCst() local 910 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in FoldICmpShrCst() 911 if (ShAmtVal >= TypeBits || ShAmtVal == 0) in FoldICmpShrCst() 924 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst() 931 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal)); in FoldICmpShrCst() 979 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in FoldICmpShrCst() 1243 uint32_t TypeBits = RHSV.getBitWidth(); in visitICmpInstWithInstAndIntCst() local 1248 if (ShAmt->uge(TypeBits)) in visitICmpInstWithInstAndIntCst() 1272 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in visitICmpInstWithInstAndIntCst() 1274 ConstantInt::get(ICI.getContext(), APInt::getLowBitsSet(TypeBits, in visitICmpInstWithInstAndIntCst() [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 350 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() local 352 assert(!COp1->uge(TypeBits) && in FoldShiftByConstant() 435 uint32_t Op1Val = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant() 437 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant() 471 uint32_t Op1Val = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant() 473 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant() 526 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant() 562 uint32_t ShiftAmt1 = ShiftAmt1C->getLimitedValue(TypeBits); in FoldShiftByConstant() 563 uint32_t ShiftAmt2 = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant() 575 if (AmtSum >= TypeBits) { in FoldShiftByConstant() [all …]
|
D | InstCombineCompares.cpp | 1349 uint32_t TypeBits = CmpRHSV.getBitWidth(); in FoldICmpShrCst() local 1350 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in FoldICmpShrCst() 1351 if (ShAmtVal >= TypeBits || ShAmtVal == 0) in FoldICmpShrCst() 1364 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst() 1371 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal)); in FoldICmpShrCst() 1417 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in FoldICmpShrCst() 1922 uint32_t TypeBits = RHSV.getBitWidth(); in visitICmpInstWithInstAndIntCst() local 1945 if (RHSLog2 == TypeBits-1) { in visitICmpInstWithInstAndIntCst() 1959 ConstantInt::get(RHS->getType(), TypeBits-1)); in visitICmpInstWithInstAndIntCst() 1964 ConstantInt::get(RHS->getType(), TypeBits-1)); in visitICmpInstWithInstAndIntCst() [all …]
|
/external/clang/include/clang/AST/ |
D | Type.h | 1479 TypeBitfields TypeBits; 1494 TypeBits.FromAST = V; 1507 TypeBits.TC = tc; 1508 TypeBits.Dependent = Dependent; 1509 TypeBits.InstantiationDependent = Dependent || InstantiationDependent; 1510 TypeBits.VariablyModified = VariablyModified; 1511 TypeBits.ContainsUnexpandedParameterPack = ContainsUnexpandedParameterPack; 1512 TypeBits.CacheValid = false; 1513 TypeBits.CachedLocalOrUnnamed = false; 1514 TypeBits.CachedLinkage = NoLinkage; [all …]
|
/external/clang/lib/AST/ |
D | Type.cpp | 2510 switch (TypeBits.TC) { in getTypeClassName() 3250 return CachedProperties(T->TypeBits.getLinkage(), in get() 3251 T->TypeBits.hasLocalOrUnnamedType()); in get() 3256 if (T->TypeBits.isCacheValid()) return; in ensure() 3263 T->TypeBits.CacheValid = true; in ensure() 3264 T->TypeBits.CachedLinkage = CT->TypeBits.CachedLinkage; in ensure() 3265 T->TypeBits.CachedLocalOrUnnamed = CT->TypeBits.CachedLocalOrUnnamed; in ensure() 3271 T->TypeBits.CacheValid = true; in ensure() 3272 T->TypeBits.CachedLinkage = Result.getLinkage(); in ensure() 3273 T->TypeBits.CachedLocalOrUnnamed = Result.hasLocalOrUnnamedType(); in ensure() [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitcodeReader.cpp | 2858 static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { in readWideAPInt() argument 2863 return APInt(TypeBits, Words); in readWideAPInt()
|