Searched refs:TypeWidth (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 173 static void DefineTypeSize(const Twine &MacroName, unsigned TypeWidth, in DefineTypeSize() argument 176 llvm::APInt MaxVal = isSigned ? llvm::APInt::getSignedMaxValue(TypeWidth) in DefineTypeSize() 177 : llvm::APInt::getMaxValue(TypeWidth); in DefineTypeSize() 236 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntType() local 241 if (TypeWidth == 64) in DefineExactWidthIntType() 246 if (TypeWidth == 16) in DefineExactWidthIntType() 251 DefineType(Prefix + Twine(TypeWidth) + "_TYPE__", Ty, Builder); in DefineExactWidthIntType() 252 DefineFmt(LangOpts, Prefix + Twine(TypeWidth), Ty, TI, Builder); in DefineExactWidthIntType() 255 Builder.defineMacro(Prefix + Twine(TypeWidth) + "_C_SUFFIX__", ConstSuffix); in DefineExactWidthIntType() 261 int TypeWidth = TI.getTypeWidth(Ty); in DefineExactWidthIntTypeSize() local [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineShifts.cpp | 548 unsigned TypeWidth = InnerShift->getType()->getScalarSizeInBits(); in canEvaluateShiftedShift() local 549 if (InnerShiftConst->ugt(OuterShAmt) && InnerShiftConst->ult(TypeWidth)) { in canEvaluateShiftedShift() 552 IsInnerShl ? TypeWidth - InnerShAmt : InnerShAmt - OuterShAmt; in canEvaluateShiftedShift() 553 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift() 630 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() local 654 if (InnerShAmt + OuterShAmt >= TypeWidth) in foldShiftedShift() 665 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift() 666 : APInt::getHighBitsSet(TypeWidth, TypeWidth - OuterShAmt); in foldShiftedShift() 738 unsigned TypeWidth = I->getType()->getScalarSizeInBits(); in getShiftedValue() local 739 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
|
H A D | InstCombineCasts.cpp | 1266 unsigned TypeWidth = Src->getType()->getScalarSizeInBits(); in visitZExt() local 1267 if (Log2_32(*MaxVScale) < TypeWidth) { in visitZExt()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaDecl.cpp | 18193 uint64_t TypeWidth = Context.getIntWidth(FieldTy); in VerifyBitField() local 18194 bool BitfieldIsOverwide = Value.ugt(TypeWidth); in VerifyBitField() 18205 CStdConstraintViolation ? TypeWidth : TypeStorageSize; in VerifyBitField() 18217 << (unsigned)TypeWidth; in VerifyBitField()
|