| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | MisplacedWideningCastCheck.cpp | 86 return T->isIntegerType() ? Context.getIntWidth(T) : 1024U; in getMaxCalculationWidth() 91 return Context.getIntWidth(E->getType()); in getMaxCalculationWidth() 202 if (Context.getIntWidth(CastType) < Context.getIntWidth(CalcType)) in check() 208 if (Context.getIntWidth(CastType) == Context.getIntWidth(CalcType)) { in check() 221 if (Context.getIntWidth(CalcType) >= getMaxCalculationWidth(Context, Calc)) in check()
|
| H A D | ImplicitWideningOfMultiplicationResultCheck.cpp | 82 unsigned SrcWidth = Context->getIntWidth(ETy); in handleImplicitCastExpr() 83 unsigned TgtWidth = Context->getIntWidth(Ty); in handleImplicitCastExpr() 190 if (Context->getIntWidth(IndexExprType) >= Context->getIntWidth(SizeTy)) in handlePointerOffsetting()
|
| H A D | TooSmallLoopVariableCheck.cpp | 103 ? Context.getIntWidth(IntExprType) in calcMagnitudeBits() 104 : Context.getIntWidth(IntExprType) - 1; in calcMagnitudeBits()
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Context.cpp | 71 switch (Ctx.getIntWidth(T)) { in classify() 86 switch (Ctx.getIntWidth(T)) { in classify()
|
| H A D | ByteCodeExprGen.h | 89 unsigned getIntWidth(QualType Ty) { in getIntWidth() function 91 return ASTContext.getIntWidth(Ty); in getIntWidth() 198 unsigned NumBits = getIntWidth(Ty); in emitConst()
|
| H A D | ByteCodeExprGen.cpp | 136 return emitConst(*T, getIntWidth(LitTy), LE->getValue(), LE); in VisitIntegerLiteral()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 208 if (getCharWidth() < getIntWidth()) in getTypeConstantSuffix() 212 if (getShortWidth() < getIntWidth()) in getTypeConstantSuffix() 250 case UnsignedInt: return getIntWidth(); in getTypeWidth() 264 if (getIntWidth() == BitWidth) in getIntTypeByWidth() 279 if (getIntWidth() >= BitWidth) in getLeastIntTypeByWidth()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ConversionChecker.cpp | 163 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision() 177 unsigned CorrectedSrcWidth = AC.getIntWidth(SubType); in isLossOfPrecision()
|
| H A D | UndefResultChecker.cpp | 63 B->getRHS(), C.getASTContext().getIntWidth(B->getLHS()->getType())); in isShiftOverflow()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 940 && TI.getIntWidth() == 32) { in InitializePredefinedMacros() 946 && TI.getIntWidth() == 32) { in InitializePredefinedMacros() 957 Builder.defineMacro("__INT_WIDTH__", Twine(TI.getIntWidth())); in InitializePredefinedMacros() 985 DefineTypeSizeof("__SIZEOF_INT__", TI.getIntWidth(), TI, Builder); in InitializePredefinedMacros() 1063 if (TI.getIntWidth() > TI.getShortWidth()) in InitializePredefinedMacros() 1066 if (TI.getLongWidth() > TI.getIntWidth()) in InitializePredefinedMacros() 1082 if (TI.getIntWidth() > TI.getShortWidth()) { in InitializePredefinedMacros() 1088 if (TI.getLongWidth() > TI.getIntWidth()) { in InitializePredefinedMacros()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | BasicValueFactory.h | 156 return APSIntType(Ctx.getIntWidth(T), in getAPSIntType() 230 return getValue(b ? 1 : 0, Ctx.getIntWidth(T), in getTruthValue()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | HLSLExternalSemaSource.cpp | 64 IntegerLiteral::Create(AST, llvm::APInt(AST.getIntWidth(AST.IntTy), 4), in defineHLSLVectorAlias()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | PopulateSwitch.cpp | 129 unsigned EnumIntWidth = Ctx.getIntWidth(QualType(EnumT, 0)); in REGISTER_TWEAK()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.cpp | 61 unsigned IntBitWidth = Ctx.getIntWidth(Ctx.IntTy); in AST_MATCHER() 277 unsigned DestWidth = Context.getIntWidth(DestType); in isFloatExactlyRepresentable()
|
| /llvm-project-15.0.7/clang/lib/Basic/Targets/ |
| H A D | NVPTX.cpp | 117 IntWidth = HostTarget->getIntWidth(); in NVPTXTargetInfo()
|
| H A D | Mips.cpp | 186 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | MicrosoftCXXABI.cpp | 307 unsigned IntSize = Target.getIntWidth(); in getMemberPointerInfo()
|
| H A D | ASTContext.cpp | 2069 Width = Target->getIntWidth(); in getTypeInfoImpl() 6958 return 1 + (getIntWidth(BoolTy) << 3); in getIntegerRank() 6963 return 2 + (getIntWidth(CharTy) << 3); in getIntegerRank() 6966 return 3 + (getIntWidth(ShortTy) << 3); in getIntegerRank() 6969 return 4 + (getIntWidth(IntTy) << 3); in getIntegerRank() 6972 return 5 + (getIntWidth(LongTy) << 3); in getIntegerRank() 6975 return 6 + (getIntWidth(LongLongTy) << 3); in getIntegerRank() 6978 return 7 + (getIntWidth(Int128Ty) << 3); in getIntegerRank() 7078 uint64_t PromotableSize = getIntWidth(Promotable); in getPromotedIntegerType() 7079 uint64_t IntSize = getIntWidth(IntTy); in getPromotedIntegerType() [all …]
|
| H A D | ExprConstant.cpp | 2543 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleFloatToIntCast() 2624 unsigned DestWidth = Info.Ctx.getIntWidth(DestType); in HandleIntToIntCast() 3000 APSInt EltResult{Info.Ctx.getIntWidth(EltTy), in handleVectorVectorBinOp() 7102 unsigned IntWidth = Info.Ctx.getIntWidth(QualType(T, 0)); in visit() 9060 unsigned SrcWidth = Info.Ctx.getIntWidth(ForType); in getAlignmentArgument() 10542 APSInt EltResult{Ctx.getIntWidth(ResultTy), in handleVectorUnaryOperator() 11059 assert(V.getWidth() == Info.Ctx.getIntWidth(E->getType()) && in Success() 11157 == Info.Ctx.getIntWidth(E->getType())); in CheckReferencedDecl() 12683 APSInt Value(Info.Ctx.getIntWidth(E->getType()), in VisitBinOp() 13491 Info.Ctx.getIntWidth(DestType), in VisitCastExpr() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | SValBuilder.cpp | 692 const unsigned BitWidth = Context.getIntWidth(CastTy); in VisitLocGotoLabel() 759 const unsigned BitWidth = Context.getIntWidth(CastTy); in VisitLocMemRegionVal() 936 const unsigned CastSize = Context.getIntWidth(CastTy); in VisitNonLocLocAsInteger()
|
| /llvm-project-15.0.7/lldb/unittests/SymbolFile/DWARF/ |
| H A D | DWARFASTParserClangTests.cpp | 336 ASSERT_EQ(sizeof(int) * 8, ast.getIntWidth(ast.IntTy)); in TEST_F()
|
| /llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/ |
| H A D | UdtRecordCompleter.cpp | 170 unsigned type_width = decl->getASTContext().getIntWidth(qual_type); in visitKnownMember()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | LiteralSupport.cpp | 1640 assert(PP.getTargetInfo().getIntWidth() <= 64 && in CharLiteralParser() 1641 (PP.getTargetInfo().getIntWidth() & 7) == 0 && in CharLiteralParser() 1749 llvm::APInt LitVal(PP.getTargetInfo().getIntWidth(), 0); in CharLiteralParser()
|
| H A D | PPExpressions.cpp | 396 NumBits = TI.getIntWidth(); in EvaluateValue()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | TargetInfo.h | 460 unsigned getIntWidth() const { return IntWidth; } in getIntWidth() function
|