Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp350 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 …]
DInstCombineCompares.cpp1349 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/llvm-project/llvm/include/llvm/ADT/
DBitfields.h102 static constexpr unsigned TypeBits = sizeof(Unsigned) * CHAR_BIT; member
103 static_assert(TypeBits >= Bits, "n-bit must fit in T");
109 static constexpr Unsigned Umax = AllOnes >> (TypeBits - Bits); // 00111111
237 static constexpr size_t TypeBits = sizeof(IntegerType) * CHAR_BIT;
238 static_assert(Bits <= TypeBits, "Bits may not be greater than T size");
/external/clang/include/clang/AST/
DType.h1479 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/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp680 unsigned TypeBits = Ty->getScalarSizeInBits(); in FoldShiftByConstant() local
681 assert(!Op1C->uge(TypeBits) && in FoldShiftByConstant()
711 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcSize, TypeBits)); in FoldShiftByConstant()
746 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
747 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
778 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
779 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
DInstCombineCompares.cpp2010 unsigned TypeBits = C.getBitWidth(); in foldICmpShlOne() local
2029 if (CLog2 == TypeBits - 1) { in foldICmpShlOne()
2037 Constant *BitWidthMinusOne = ConstantInt::get(ShiftType, TypeBits - 1); in foldICmpShlOne()
2078 unsigned TypeBits = C.getBitWidth(); in foldICmpShlConstant() local
2079 if (ShiftAmt->uge(TypeBits)) in foldICmpShlConstant()
2145 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2157 APInt::getOneBitSet(TypeBits, TypeBits - ShiftAmt->getZExtValue() - 1)); in foldICmpShlConstant()
2190 unsigned Amt = ShiftAmt->getLimitedValue(TypeBits - 1); in foldICmpShlConstant()
2192 DL.isLegalInteger(TypeBits - Amt)) { in foldICmpShlConstant()
2193 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp705 unsigned TypeBits = Op0->getType()->getScalarSizeInBits(); in FoldShiftByConstant() local
707 assert(!Op1C->uge(TypeBits) && in FoldShiftByConstant()
779 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
781 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
814 unsigned Op1Val = Op1C->getLimitedValue(TypeBits); in FoldShiftByConstant()
816 APInt Bits = APInt::getHighBitsSet(TypeBits, TypeBits - Op1Val); in FoldShiftByConstant()
DInstCombineCompares.cpp1968 unsigned TypeBits = C.getBitWidth(); in foldICmpShlOne() local
1987 if (CLog2 == TypeBits - 1) { in foldICmpShlOne()
1995 Constant *BitWidthMinusOne = ConstantInt::get(ShiftType, TypeBits - 1); in foldICmpShlOne()
2036 unsigned TypeBits = C.getBitWidth(); in foldICmpShlConstant() local
2037 if (ShiftAmt->uge(TypeBits)) in foldICmpShlConstant()
2103 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
2115 APInt::getOneBitSet(TypeBits, TypeBits - ShiftAmt->getZExtValue() - 1)); in foldICmpShlConstant()
2148 unsigned Amt = ShiftAmt->getLimitedValue(TypeBits - 1); in foldICmpShlConstant()
2150 DL.isLegalInteger(TypeBits - Amt)) { in foldICmpShlConstant()
2151 Type *TruncTy = IntegerType::get(Cmp.getContext(), TypeBits - Amt); in foldICmpShlConstant()
[all …]
/external/clang/lib/AST/
DType.cpp2510 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-project/clang/lib/AST/
DType.cpp2921 switch (TypeBits.TC) { in getTypeClassName()
3768 return CachedProperties(T->TypeBits.getLinkage(), in get()
3769 T->TypeBits.hasLocalOrUnnamedType()); in get()
3774 if (T->TypeBits.isCacheValid()) return; in ensure()
3781 T->TypeBits.CacheValid = true; in ensure()
3782 T->TypeBits.CachedLinkage = CT->TypeBits.CachedLinkage; in ensure()
3783 T->TypeBits.CachedLocalOrUnnamed = CT->TypeBits.CachedLocalOrUnnamed; in ensure()
3789 T->TypeBits.CacheValid = true; in ensure()
3790 T->TypeBits.CachedLinkage = Result.getLinkage(); in ensure()
3791 T->TypeBits.CachedLocalOrUnnamed = Result.hasLocalOrUnnamedType(); in ensure()
[all …]
/external/llvm-project/llvm/include/llvm/Bitcode/
DBitcodeReader.h266 APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits);
/external/llvm-project/clang/include/clang/AST/
DType.h1781 TypeBitfields TypeBits;
1805 TypeBits.FromAST = V;
1818 TypeBits.TC = tc;
1819 TypeBits.Dependence = static_cast<unsigned>(Dependence);
1820 TypeBits.CacheValid = false;
1821 TypeBits.CachedLocalOrUnnamed = false;
1822 TypeBits.CachedLinkage = NoLinkage;
1823 TypeBits.FromAST = false;
1830 TypeBits.Dependence = static_cast<unsigned>(D);
1846 TypeClass getTypeClass() const { return static_cast<TypeClass>(TypeBits.TC); }
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMInstrMVE.td5054 int TypeBits = !shl(8, s);
5055 string CanonLoadSuffix = ".u" # TypeBits;
5056 string CanonStoreSuffix = "." # TypeBits;
5057 list<string> suffixes = !foreach(letter, types, "." # letter # TypeBits);
5295 …rm_mve_vldr_gather_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, 0, UnsignedFlag)…
5297 …rm_mve_vldr_gather_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, memsz.shift, Uns…
5299 …_gather_offset_predicated GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, 0, UnsignedFlag,…
5301 …_gather_offset_predicated GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, memsz.shift, Uns…
5324 …tr_scatter_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), (VTI.Vec MQPR:$data), memsz.TypeBits, 0),
5326 …_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), (VTI.Vec MQPR:$data), memsz.TypeBits, memsz.shift),
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMInstrMVE.td6026 int TypeBits = !shl(8, s);
6027 string CanonLoadSuffix = ".u" # TypeBits;
6028 string CanonStoreSuffix = "." # TypeBits;
6029 list<string> suffixes = !foreach(letter, types, "." # letter # TypeBits);
6268 …rm_mve_vldr_gather_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, 0, UnsignedFlag)…
6270 …rm_mve_vldr_gather_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, memsz.shift, Uns…
6272 …_gather_offset_predicated GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, 0, UnsignedFlag,…
6274 …_gather_offset_predicated GPR:$base, (VTIs[0].Vec MQPR:$offsets), memsz.TypeBits, memsz.shift, Uns…
6297 …tr_scatter_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), (VTI.Vec MQPR:$data), memsz.TypeBits, 0),
6299 …_offset GPR:$base, (VTIs[0].Vec MQPR:$offsets), (VTI.Vec MQPR:$data), memsz.TypeBits, memsz.shift),
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2317 static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { in readWideAPInt() argument
2322 return APInt(TypeBits, Words); in readWideAPInt()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2858 static APInt readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { in readWideAPInt() argument
2863 return APInt(TypeBits, Words); in readWideAPInt()
/external/llvm-project/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2325 APInt llvm::readWideAPInt(ArrayRef<uint64_t> Vals, unsigned TypeBits) { in readWideAPInt() argument
2330 return APInt(TypeBits, Words); in readWideAPInt()