Home
last modified time | relevance | path

Searched refs:TypeBits (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp349 uint32_t TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() local
351 assert(!COp1->uge(TypeBits) && in FoldShiftByConstant()
434 uint32_t Op1Val = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant()
436 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
470 uint32_t Op1Val = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant()
472 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
525 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
561 uint32_t ShiftAmt1 = ShiftAmt1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
562 uint32_t ShiftAmt2 = COp1->getLimitedValue(TypeBits); in FoldShiftByConstant()
574 if (AmtSum >= TypeBits) { in FoldShiftByConstant()
[all …]
DInstCombineCompares.cpp954 uint32_t TypeBits = CmpRHSV.getBitWidth(); in FoldICmpShrCst() local
955 uint32_t ShAmtVal = (uint32_t)ShAmt->getLimitedValue(TypeBits); in FoldICmpShrCst()
956 if (ShAmtVal >= TypeBits || ShAmtVal == 0) in FoldICmpShrCst()
969 (!Shr->isExact() || ShAmtVal == TypeBits - 1)) in FoldICmpShrCst()
976 ConstantInt::get(Shr->getType(), APInt::getOneBitSet(TypeBits, ShAmtVal)); in FoldICmpShrCst()
1023 APInt Val(APInt::getHighBitsSet(TypeBits, TypeBits - ShAmtVal)); in FoldICmpShrCst()
1491 uint32_t TypeBits = RHSV.getBitWidth(); in visitICmpInstWithInstAndIntCst() local
1514 if (RHSLog2 == TypeBits-1) { in visitICmpInstWithInstAndIntCst()
1528 ConstantInt::get(RHS->getType(), TypeBits-1)); in visitICmpInstWithInstAndIntCst()
1533 ConstantInt::get(RHS->getType(), TypeBits-1)); in visitICmpInstWithInstAndIntCst()
[all …]
/external/clang/lib/AST/
DType.cpp1495 switch (TypeBits.TC) { in getTypeClassName()
2117 return CachedProperties(T->TypeBits.getLinkage(), in get()
2118 T->TypeBits.hasLocalOrUnnamedType()); in get()
2123 if (T->TypeBits.isCacheValid()) return; in ensure()
2130 T->TypeBits.CacheValid = true; in ensure()
2131 T->TypeBits.CachedLinkage = CT->TypeBits.CachedLinkage; in ensure()
2132 T->TypeBits.CachedLocalOrUnnamed = CT->TypeBits.CachedLocalOrUnnamed; in ensure()
2138 T->TypeBits.CacheValid = true; in ensure()
2139 T->TypeBits.CachedLinkage = Result.getLinkage(); in ensure()
2140 T->TypeBits.CachedLocalOrUnnamed = Result.hasLocalOrUnnamedType(); in ensure()
[all …]
/external/clang/include/clang/AST/
DType.h1362 TypeBitfields TypeBits;
1377 TypeBits.FromAST = V;
1390 TypeBits.TC = tc;
1391 TypeBits.Dependent = Dependent;
1392 TypeBits.InstantiationDependent = Dependent || InstantiationDependent;
1393 TypeBits.VariablyModified = VariablyModified;
1394 TypeBits.ContainsUnexpandedParameterPack = ContainsUnexpandedParameterPack;
1395 TypeBits.CacheValid = false;
1396 TypeBits.CachedLocalOrUnnamed = false;
1397 TypeBits.CachedLinkage = NoLinkage;
[all …]
/external/v8/src/
Dcode-stubs.h1475 minor_key_ = TypeBits::encode(type); in ArgumentsAccessStub()
1486 Type type() const { return TypeBits::decode(minor_key_); } in type()
1495 class TypeBits : public BitField<Type, 0, 2> {};
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2070 static APInt ReadWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { in ReadWideAPInt() argument
2075 return APInt(TypeBits, Words); in ReadWideAPInt()