| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
| H A D | MPIFunctionClassifier.cpp | 21 void MPIFunctionClassifier::identifierInit(ASTContext &ASTCtx) { in identifierInit() argument 23 initPointToPointIdentifiers(ASTCtx); in identifierInit() 24 initCollectiveIdentifiers(ASTCtx); in identifierInit() 25 initAdditionalIdentifiers(ASTCtx); in identifierInit() 28 void MPIFunctionClassifier::initPointToPointIdentifiers(ASTContext &ASTCtx) { in initPointToPointIdentifiers() argument 30 IdentInfo_MPI_Send = &ASTCtx.Idents.get("MPI_Send"); in initPointToPointIdentifiers() 35 IdentInfo_MPI_Isend = &ASTCtx.Idents.get("MPI_Isend"); in initPointToPointIdentifiers() 41 IdentInfo_MPI_Ssend = &ASTCtx.Idents.get("MPI_Ssend"); in initPointToPointIdentifiers() 46 IdentInfo_MPI_Issend = &ASTCtx.Idents.get("MPI_Issend"); in initPointToPointIdentifiers() 52 IdentInfo_MPI_Bsend = &ASTCtx.Idents.get("MPI_Bsend"); in initPointToPointIdentifiers() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/ |
| H A D | DataflowAnalysis.h | 295 auto createAnalysis(ASTContext &ASTCtx, Environment &Env) 296 -> decltype(AnalysisT(ASTCtx, Env)) { 297 return AnalysisT(ASTCtx, Env); 300 auto createAnalysis(ASTContext &ASTCtx, Environment &Env) 301 -> decltype(AnalysisT(ASTCtx)) { 302 return AnalysisT(ASTCtx); 322 diagnoseFunction(const FunctionDecl &FuncDecl, ASTContext &ASTCtx, 333 AnalysisT Analysis = createAnalysis<AnalysisT>(ASTCtx, Env); 338 [&ASTCtx, &Diagnoser, 342 Elt, ASTCtx, [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/InstallAPI/ |
| H A D | Visitor.h | 31 InstallAPIVisitor(ASTContext &ASTCtx, InstallAPIContext &Ctx, in InstallAPIVisitor() argument 34 MC(ItaniumMangleContext::create(ASTCtx, ASTCtx.getDiagnostics())), in InstallAPIVisitor() 35 Layout(ASTCtx.getTargetInfo().getDataLayoutString()) {} in InstallAPIVisitor() 36 void HandleTranslationUnit(ASTContext &ASTCtx) override; 71 const ASTContext &ASTCtx, llvm::MachO::ObjCContainerRecord *Record,
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Checkers/ |
| H A D | MPIFunctionClassifier.h | 25 MPIFunctionClassifier(ASTContext &ASTCtx) { identifierInit(ASTCtx); } in MPIFunctionClassifier() argument 51 void identifierInit(ASTContext &ASTCtx); 52 void initPointToPointIdentifiers(ASTContext &ASTCtx); 53 void initCollectiveIdentifiers(ASTContext &ASTCtx); 54 void initAdditionalIdentifiers(ASTContext &ASTCtx);
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | AnalysisManager.cpp | 16 AnalysisManager::AnalysisManager(ASTContext &ASTCtx, Preprocessor &PP, in AnalysisManager() argument 24 ASTCtx, Options.UnoptimizedCFG, in AnalysisManager() 37 Ctx(ASTCtx), PP(PP), LangOpts(ASTCtx.getLangOpts()), in AnalysisManager()
|
| H A D | LoopUnrolling.cpp | 248 ASTContext &ASTCtx = in isPossiblyEscaped() local 254 *S, ASTCtx); in isPossiblyEscaped() 268 static bool shouldCompletelyUnroll(const Stmt *LoopStmt, ASTContext &ASTCtx, in shouldCompletelyUnroll() argument 276 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx); in shouldCompletelyUnroll() 320 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx, in updateLoopStack() argument 339 if (!shouldCompletelyUnroll(LoopStmt, ASTCtx, Pred, maxStep)) { in updateLoopStack()
|
| H A D | LoopWidening.cpp | 39 ASTContext &ASTCtx = LCtx->getAnalysisDeclContext()->getASTContext(); in getWidenedLoopState() local 55 *LCtx->getDecl()->getBody(), ASTCtx); in getWidenedLoopState()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | InterpBuiltinBitCast.cpp | 229 const ASTContext &ASTCtx = S.getASTContext(); in CheckBitcastType() local 233 VT->isPackedVectorBoolType(ASTCtx) ? 1 : ASTCtx.getTypeSize(EltTy); in CheckBitcastType() 235 if ((NElts * EltSize) % ASTCtx.getCharWidth() != 0) { in CheckBitcastType() 242 << QualType(VT, 0) << EltSize << NElts << ASTCtx.getCharWidth(); in CheckBitcastType() 247 &ASTCtx.getFloatTypeSemantics(EltTy) == &APFloat::x87DoubleExtended()) { in CheckBitcastType() 264 const ASTContext &ASTCtx = Ctx.getASTContext(); in readPointerToBuffer() local 266 ASTCtx.getTargetInfo().isLittleEndian() ? Endian::Little : Endian::Big; in readPointerToBuffer() 346 const ASTContext &ASTCtx = S.getASTContext(); in DoBitCast() local 348 ASTCtx.getTargetInfo().isLittleEndian() ? Endian::Little : Endian::Big; in DoBitCast() 361 const ASTContext &ASTCtx = S.getASTContext(); in DoBitCastPtr() local [all …]
|
| H A D | Pointer.cpp | 143 APValue Pointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 180 QualType AllocatedType = getDeclPtr().getFieldDesc()->getDataType(ASTCtx); in toAPValue() 203 const ASTRecordLayout &Layout = ASTCtx.getASTRecordLayout(FD->getParent()); in toAPValue() 205 return ASTCtx.toCharUnitsFromBits(Layout.getFieldOffset(FieldIndex)); in toAPValue() 225 Offset += (Index * ASTCtx.getTypeSizeInChars(ElemType)); in toAPValue() 254 Offset += (Index * ASTCtx.getTypeSizeInChars(ElemType)); in toAPValue() 273 const ASTRecordLayout &Layout = ASTCtx.getASTRecordLayout( in toAPValue() 644 const ASTContext &ASTCtx = Ctx.getASTContext(); in toRValue() local 648 Composite = [&Composite, &Ctx, &ASTCtx](QualType Ty, const Pointer &Ptr, in toRValue() 660 TYPE_SWITCH(*T, R = Ptr.deref<T>().toAPValue(ASTCtx)); in toRValue() [all …]
|
| H A D | InterpFrame.cpp | 107 static void print(llvm::raw_ostream &OS, const T &V, ASTContext &ASTCtx, in print() argument 111 V.toAPValue(ASTCtx).printPretty(OS, ASTCtx, Ty); in print() 113 if (std::optional<APValue> RValue = V.toRValue(ASTCtx, Ty)) in print() 114 RValue->printPretty(OS, ASTCtx, Ty); in print() 119 V.toAPValue(ASTCtx).printPretty(OS, ASTCtx, Ty); in print()
|
| H A D | MemberPointer.cpp | 74 APValue MemberPointer::toAPValue(const ASTContext &ASTCtx) const { in toAPValue() 80 return Base.toAPValue(ASTCtx); in toAPValue()
|
| H A D | Disasm.cpp | 554 const ASTContext &ASTCtx = Ctx->getASTContext(); in dump() local 562 std::get<APValue>(Value).dump(OS, ASTCtx); in dump() 576 P->toAPValue(ASTCtx).printPretty(OS, ASTCtx, SourceType); in dump() 578 FP->toAPValue(ASTCtx).printPretty(OS, ASTCtx, SourceType); in dump()
|
| H A D | InterpBuiltin.cpp | 1744 const ASTContext &ASTCtx = S.getASTContext(); in interp__builtin_memcpy() local 1772 << DiagPtr.toDiagnosticString(ASTCtx); in interp__builtin_memcpy() 1800 unsigned DestElemSize = ASTCtx.getTypeSizeInChars(DestElemType).getQuantity(); in interp__builtin_memcpy() 1804 ASTCtx.getTypeSizeInChars(ASTCtx.getWCharType()).getQuantity(); in interp__builtin_memcpy() 1825 unsigned SrcElemSize = ASTCtx.getTypeSizeInChars(SrcElemType).getQuantity(); in interp__builtin_memcpy() 1827 if (!ASTCtx.hasSameUnqualifiedType(DestElemType, SrcElemType)) { in interp__builtin_memcpy() 1843 if (!DestElemType.isTriviallyCopyableType(ASTCtx)) { in interp__builtin_memcpy() 1919 const ASTContext &ASTCtx = S.getASTContext(); in interp__builtin_memcmp() local 1928 << ASTCtx.BuiltinInfo.getQuotedName(ID) << PtrA.getType() in interp__builtin_memcmp() 1938 Bits(ASTCtx.getTypeSize(ElemTypeA) * PtrA.getNumElems())); in interp__builtin_memcmp() [all …]
|
| H A D | Pointer.h | 48 IntPointer atOffset(const ASTContext &ASTCtx, unsigned Offset) const; 49 IntPointer baseCast(const ASTContext &ASTCtx, unsigned BaseOffset) const; 148 APValue toAPValue(const ASTContext &ASTCtx) const;
|
| H A D | Compiler.cpp | 1545 const ASTContext &ASTCtx = Ctx.getASTContext(); in VisitFixedPointBinOp() local 1550 auto LHSSema = ASTCtx.getFixedPointSemantics(LHS->getType()); in VisitFixedPointBinOp() 1552 auto RHSSema = ASTCtx.getFixedPointSemantics(RHS->getType()); in VisitFixedPointBinOp() 1575 auto ResultSema = ASTCtx.getFixedPointSemantics(E->getType()).toOpaqueInt(); in VisitFixedPointBinOp() 2102 static CharUnits AlignOfType(QualType T, const ASTContext &ASTCtx, in AlignOfType() argument 2105 ASTCtx.getLangOpts().getClangABICompat() <= LangOptions::ClangABI::Ver7; in AlignOfType() 2120 return ASTCtx.toCharUnitsFromBits(ASTCtx.getPreferredTypeAlign(T)); in AlignOfType() 2122 return ASTCtx.getTypeAlignInChars(T); in AlignOfType() 2129 const ASTContext &ASTCtx = Ctx.getASTContext(); in VisitUnaryExprOrTypeTraitExpr() local 2147 Size = ASTCtx.getTypeSizeInChars(ArgType); in VisitUnaryExprOrTypeTraitExpr() [all …]
|
| H A D | Interp.cpp | 1810 const ASTContext &ASTCtx = S.getASTContext(); in CheckNewTypeMismatch() local 1813 AllocType = ASTCtx.getConstantArrayType( in CheckNewTypeMismatch() 1829 !ASTCtx.hasSimilarType(ASTCtx.getBaseElementType(AllocType), in CheckNewTypeMismatch() 1830 ASTCtx.getBaseElementType(StorageType))) { in CheckNewTypeMismatch()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ParentMapContext.h | 70 ASTContext &ASTCtx; 80 TraversalKindScope(ASTContext &ASTCtx, std::optional<TraversalKind> ScopeTK) in TraversalKindScope() argument 81 : Ctx(ASTCtx.getParentMapContext()) { in TraversalKindScope()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | LoopUnrolling.h | 37 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx,
|
| /freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
| H A D | Visitor.cpp | 77 void InstallAPIVisitor::HandleTranslationUnit(ASTContext &ASTCtx) { in HandleTranslationUnit() argument 78 if (ASTCtx.getDiagnostics().hasErrorOccurred()) in HandleTranslationUnit() 81 auto *D = ASTCtx.getTranslationUnitDecl(); in HandleTranslationUnit() 140 const ASTContext &ASTCtx, ObjCContainerRecord *Record, StringRef SuperClass, in recordObjCInstanceVariables() argument 147 if (ASTCtx.getLangOpts().ObjCRuntime.isFragile()) in recordObjCInstanceVariables()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ParentMapContext.cpp | 23 ParentMapContext::ParentMapContext(ASTContext &Ctx) : ASTCtx(Ctx) {} in ParentMapContext() 488 Parents = std::make_unique<ParentMap>(ASTCtx); in getParents()
|
| H A D | OpenMPClause.cpp | 2768 void OMPTraitInfo::getAsVariantMatchInfo(ASTContext &ASTCtx, in getAsVariantMatchInfo() argument 2783 Selector.ScoreOrCondition->getIntegerConstantExpr(ASTCtx)) in getAsVariantMatchInfo() 2795 if ((Score = Selector.ScoreOrCondition->getIntegerConstantExpr(ASTCtx))) in getAsVariantMatchInfo() 2943 ASTContext &ASTCtx, std::function<void(StringRef)> &&DiagUnknownTrait, in TargetOMPContext() argument 2946 : OMPContext(ASTCtx.getLangOpts().OpenMPIsTargetDevice, in TargetOMPContext() 2947 ASTCtx.getTargetInfo().getTriple(), in TargetOMPContext() 2948 ASTCtx.getLangOpts().OMPTargetTriples.empty() in TargetOMPContext() 2950 : ASTCtx.getLangOpts().OMPTargetTriples[0], in TargetOMPContext() 2953 return ASTCtx.getTargetInfo().isValidFeatureName(FeatureName); in TargetOMPContext() 2956 ASTCtx.getFunctionFeatureMap(FeatureMap, CurrentFunctionDecl);
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | BlockInCriticalSectionChecker.cpp | 107 const auto &ASTCtx = Call.getState()->getStateManager().getContext(); in initIdentifierInfo() local 108 Guard = &ASTCtx.Idents.get(GuardName); in initIdentifierInfo()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | AnalysisDeclContext.cpp | 67 ASTContext &ASTCtx, bool useUnoptimizedCFG, bool addImplicitDtors, in AnalysisDeclContextManager() argument 73 : Injector(std::move(injector)), FunctionBodyFarm(ASTCtx, Injector.get()), in AnalysisDeclContextManager()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 416 int countOptionalWrappers(const ASTContext &ASTCtx, QualType Type) { in countOptionalWrappers() argument 422 ASTCtx, in countOptionalWrappers() 423 valueTypeFromOptionalDecl(*Optional).getDesugaredType(ASTCtx)); in countOptionalWrappers()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
| H A D | AnalysisDeclContext.h | 447 ASTContext &ASTCtx, bool useUnoptimizedCFG = false,
|