Home
last modified time | relevance | path

Searched refs:getIntWidth (Results 1 – 25 of 47) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMisplacedWideningCastCheck.cpp86 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 DImplicitWideningOfMultiplicationResultCheck.cpp82 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 DTooSmallLoopVariableCheck.cpp103 ? Context.getIntWidth(IntExprType) in calcMagnitudeBits()
104 : Context.getIntWidth(IntExprType) - 1; in calcMagnitudeBits()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DContext.cpp71 switch (Ctx.getIntWidth(T)) { in classify()
86 switch (Ctx.getIntWidth(T)) { in classify()
H A DByteCodeExprGen.h89 unsigned getIntWidth(QualType Ty) { in getIntWidth() function
91 return ASTContext.getIntWidth(Ty); in getIntWidth()
198 unsigned NumBits = getIntWidth(Ty); in emitConst()
H A DByteCodeExprGen.cpp136 return emitConst(*T, getIntWidth(LitTy), LE->getValue(), LE); in VisitIntegerLiteral()
/llvm-project-15.0.7/clang/lib/Basic/
H A DTargetInfo.cpp208 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 DConversionChecker.cpp163 RepresentsUntilExp = AC.getIntWidth(DestType); in isLossOfPrecision()
177 unsigned CorrectedSrcWidth = AC.getIntWidth(SubType); in isLossOfPrecision()
H A DUndefResultChecker.cpp63 B->getRHS(), C.getASTContext().getIntWidth(B->getLHS()->getType())); in isShiftOverflow()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DInitPreprocessor.cpp940 && 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 DBasicValueFactory.h156 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 DHLSLExternalSemaSource.cpp64 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 DPopulateSwitch.cpp129 unsigned EnumIntWidth = Ctx.getIntWidth(QualType(EnumT, 0)); in REGISTER_TWEAK()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp61 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 DNVPTX.cpp117 IntWidth = HostTarget->getIntWidth(); in NVPTXTargetInfo()
H A DMips.cpp186 Builder.defineMacro("_MIPS_SZINT", Twine(getIntWidth())); in getTargetDefines()
/llvm-project-15.0.7/clang/lib/AST/
H A DMicrosoftCXXABI.cpp307 unsigned IntSize = Target.getIntWidth(); in getMemberPointerInfo()
H A DASTContext.cpp2069 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 DExprConstant.cpp2543 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 DSValBuilder.cpp692 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 DDWARFASTParserClangTests.cpp336 ASSERT_EQ(sizeof(int) * 8, ast.getIntWidth(ast.IntTy)); in TEST_F()
/llvm-project-15.0.7/lldb/source/Plugins/SymbolFile/NativePDB/
H A DUdtRecordCompleter.cpp170 unsigned type_width = decl->getASTContext().getIntWidth(qual_type); in visitKnownMember()
/llvm-project-15.0.7/clang/lib/Lex/
H A DLiteralSupport.cpp1640 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 DPPExpressions.cpp396 NumBits = TI.getIntWidth(); in EvaluateValue()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTargetInfo.h460 unsigned getIntWidth() const { return IntWidth; } in getIntWidth() function

12