Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp211 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntType() local
216 if (TypeWidth == 64) in DefineExactWidthIntType()
221 if (TypeWidth == 16) in DefineExactWidthIntType()
227 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineExactWidthIntType()
236 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntTypeSize() local
241 if (TypeWidth == 64) in DefineExactWidthIntTypeSize()
258 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineLeastWidthIntType()
261 static void DefineFastIntType(unsigned TypeWidth, bool IsSigned, in DefineFastIntType() argument
273 DefineFmt(Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineFastIntType()
283 if (TypeWidth == TypeAlign && (TypeWidth & (TypeWidth - 1)) == 0 && in getLockFreeValue()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp460 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift() local
461 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift()
464 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift()
465 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
536 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() local
560 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift()
571 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
572 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp162 uint64_t TypeWidth = Ctx.getTypeSize(SymbolType); in MakeSymIntVal() local
164 if (ValWidth < TypeWidth) { in MakeSymIntVal()
167 } else if (ValWidth == TypeWidth) { in MakeSymIntVal()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp16672 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField() local
16673 bool BitfieldIsOverwide = Value.ugt(TypeWidth); in VerifyBitField()
16684 CStdConstraintViolation ? TypeWidth : TypeStorageSize; in VerifyBitField()
16696 << (unsigned)TypeWidth; in VerifyBitField()