Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DInitPreprocessor.cpp168 static void DefineTypeSize(const Twine &MacroName, unsigned TypeWidth, in DefineTypeSize() argument
171 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize()
172 : llvm::APInt::getMaxValue(TypeWidth); in DefineTypeSize()
223 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()
242 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix); in DefineExactWidthIntType()
248 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntTypeSize() local
[all …]
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp190 uint64_t TypeWidth = Ctx.getTypeSize(SymbolType); in MakeSymIntVal() local
192 if (ValWidth < TypeWidth) { in MakeSymIntVal()
195 } else if (ValWidth == TypeWidth) { in MakeSymIntVal()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaDecl.cpp17784 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField() local
17785 bool BitfieldIsOverwide = Value.ugt(TypeWidth); in VerifyBitField()
17796 CStdConstraintViolation ? TypeWidth : TypeStorageSize; in VerifyBitField()
17808 << (unsigned)TypeWidth; in VerifyBitField()