Home
last modified time | relevance | path

Searched refs:TypeWidth (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp222 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntType() local
227 if (TypeWidth == 64) in DefineExactWidthIntType()
232 if (TypeWidth == 16) in DefineExactWidthIntType()
237 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); in DefineExactWidthIntType()
238 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineExactWidthIntType()
247 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntTypeSize() local
252 if (TypeWidth == 64) in DefineExactWidthIntTypeSize()
276 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineLeastWidthIntType()
279 static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, in DefineFastIntType() argument
295 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineFastIntType()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp503 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift() local
504 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift()
507 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift()
508 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
586 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() local
610 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift()
621 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
622 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
694 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in getShiftedValue() local
695 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
H A DInstCombineCasts.cpp1349 unsigned TypeWidth = Src->getType()->getScalarSizeInBits(); in visitZExt() local
1350 if (Log2_32(*MaxVScale) < TypeWidth) { in visitZExt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp189 uint64_t TypeWidth = Ctx.getTypeSize(SymbolType); in MakeSymIntVal() local
191 if (ValWidth < TypeWidth) { in MakeSymIntVal()
194 } else if (ValWidth == TypeWidth) { in MakeSymIntVal()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaDecl.cpp17321 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField() local
17322 bool BitfieldIsOverwide = Value.ugt(TypeWidth); in VerifyBitField()
17333 CStdConstraintViolation ? TypeWidth : TypeStorageSize; in VerifyBitField()
17345 << (unsigned)TypeWidth; in VerifyBitField()