Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp223 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntType() local
228 if (TypeWidth == 64) in DefineExactWidthIntType()
233 if (TypeWidth == 16) in DefineExactWidthIntType()
238 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); in DefineExactWidthIntType()
239 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineExactWidthIntType()
248 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntTypeSize() local
253 if (TypeWidth == 64) in DefineExactWidthIntTypeSize()
277 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineLeastWidthIntType()
280 static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, in DefineFastIntType() argument
296 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineFastIntType()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp538 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift() local
539 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift()
542 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift()
543 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
620 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() local
644 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift()
655 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
656 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
728 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in getShiftedValue() local
729 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
H A DInstCombineCasts.cpp1228 unsigned TypeWidth = Src->getType()->getScalarSizeInBits(); in visitZExt() local
1229 if (Log2_32(*MaxVScale) < TypeWidth) { in visitZExt()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp204 uint64_t TypeWidth = Ctx.getTypeSize(SymbolType); in MakeSymIntVal() local
206 if (ValWidth < TypeWidth) { in MakeSymIntVal()
209 } else if (ValWidth == TypeWidth) { in MakeSymIntVal()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp18394 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField() local
18395 bool BitfieldIsOverwide = Value.ugt(TypeWidth); in VerifyBitField()
18406 CStdConstraintViolation ? TypeWidth : TypeStorageSize; in VerifyBitField()
18418 << (unsigned)TypeWidth; in VerifyBitField()