/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | ModuleUtils.cpp | 125 Function *Ctor = Function::createWithDefaultAttr( in createSanitizerCtor() local 128 Ctor->addAttribute(AttributeList::FunctionIndex, Attribute::NoUnwind); in createSanitizerCtor() 129 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtor() 131 return Ctor; in createSanitizerCtor() 143 Function *Ctor = createSanitizerCtor(M, CtorName); in createSanitizerCtorAndInitFunctions() local 144 IRBuilder<> IRB(Ctor->getEntryBlock().getTerminator()); in createSanitizerCtorAndInitFunctions() 152 return std::make_pair(Ctor, InitFunction); in createSanitizerCtorAndInitFunctions() 163 if (Function *Ctor = M.getFunction(CtorName)) in getOrCreateSanitizerCtorAndInitFunctions() local 166 if (Ctor->arg_size() == 0 || in getOrCreateSanitizerCtorAndInitFunctions() 167 Ctor->getReturnType() == Type::getVoidTy(M.getContext())) in getOrCreateSanitizerCtorAndInitFunctions() [all …]
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/ |
H A D | MachinePassRegistry.h | 53 PassCtorTy Ctor; // Pass creator. variable 57 : Name(N), Description(D), Ctor(C) {} in MachinePassRegistryNode() 64 PassCtorTy getCtor() const { return Ctor; } in getCtor() 91 PassCtorTy Ctor = nullptr; in setDefault() local 95 Ctor = R->getCtor(); in setDefault() 99 assert(Ctor && "Unregistered pass name"); in setDefault() 100 setDefault(Ctor); in setDefault()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/ |
H A D | Parser.cpp | 441 llvm::Optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); in parseIdentifierPrefixImpl() local 444 return parseMatcherExpressionImpl(NameToken, OpenToken, Ctor, Value); in parseIdentifierPrefixImpl() 471 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, in parseMatcherBuilder() argument 480 ScopedContextEntry SCE(this, Ctor); in parseMatcherBuilder() 554 S->buildMatcherCtor(Ctor, NameToken.Range, Args, Error); in parseMatcherBuilder() 631 llvm::Optional<MatcherCtor> Ctor, in parseMatcherExpressionImpl() argument 633 if (!Ctor) { in parseMatcherExpressionImpl() 639 if (Ctor && *Ctor && S->isBuilderMatcher(*Ctor)) in parseMatcherExpressionImpl() 640 return parseMatcherBuilder(*Ctor, NameToken, OpenToken, Value); in parseMatcherExpressionImpl() 648 ScopedContextEntry SCE(this, Ctor ? *Ctor : nullptr); in parseMatcherExpressionImpl() [all …]
|
H A D | Registry.cpp | 577 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { in nodeMatcherType() argument 578 return Ctor->nodeMatcherType(); in nodeMatcherType() 586 bool Registry::isBuilderMatcher(MatcherCtor Ctor) { in isBuilderMatcher() argument 587 return Ctor->isBuilderMatcher(); in isBuilderMatcher() 591 Registry::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, in buildMatcherCtor() argument 594 Ctor->buildMatcherCtor(NameRange, Args, Error).release()); in buildMatcherCtor() 639 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() local 644 Ctor->isConvertibleTo(Kind.getMatcherKind()) && in getAcceptedCompletionTypes() 645 (Ctor->isVariadic() || ArgNumber < Ctor->getNumArgs())) in getAcceptedCompletionTypes() 646 Ctor->getArgKinds(Kind.getMatcherKind(), ArgNumber, NextTypeSet); in getAcceptedCompletionTypes() [all …]
|
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/Dynamic/ |
H A D | Parser.h | 88 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, 144 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, 153 bool isBuilderMatcher(MatcherCtor Ctor) const override; 253 bool parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, 257 llvm::Optional<MatcherCtor> Ctor,
|
H A D | Registry.h | 88 static bool isBuilderMatcher(MatcherCtor Ctor); 138 static VariantMatcher constructMatcher(MatcherCtor Ctor, 149 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Registry.h | 29 std::unique_ptr<T> (*Ctor)(); variable 33 : Name(N), Desc(D), Ctor(C) {} in SimpleRegistryEntry() 37 std::unique_ptr<T> instantiate() const { return Ctor(); } in instantiate()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
H A D | UndefinedArraySubscriptChecker.cpp | 44 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt() local 45 if (Ctor->isDefaulted()) in checkPreStmt()
|
H A D | Iterator.cpp | 39 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(Method)) { in isIterator() local 40 if (Ctor->isCopyConstructor()) { in isIterator() 41 HasCopyCtor = !Ctor->isDeleted() && Ctor->getAccess() == AS_public; in isIterator()
|
H A D | DynamicTypePropagation.cpp | 264 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPreCall() local 273 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPreCall() 280 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) in checkPreCall() 281 recordFixedType(Target, Ctor->getDecl(), C); in checkPreCall() 363 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPostCall() local 365 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPostCall() 376 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { in checkPostCall() 388 LCtx->getParentMap().getParent(Ctor->getOriginExpr()))) in checkPostCall()
|
H A D | BlockInCriticalSectionChecker.cpp | 110 if (const auto *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in isLockFunction() local 111 auto IdentifierInfo = Ctor->getDecl()->getParent()->getIdentifier(); in isLockFunction()
|
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ |
H A D | PassInfo.h | 91 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument 92 NormalCtor = Ctor; in setNormalCtor()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
H A D | CGClass.cpp | 731 const CXXConstructorDecl *Ctor) { in IsConstructorDelegationValid() argument 745 if (Ctor->getParent()->getNumVBases()) { in IsConstructorDelegationValid() 765 if (Ctor->getType()->castAs<FunctionProtoType>()->isVariadic()) in IsConstructorDelegationValid() 769 if (Ctor->isDelegatingConstructor()) in IsConstructorDelegationValid() 842 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); in EmitConstructorBody() local 851 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) && in EmitConstructorBody() 853 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getEndLoc()); in EmitConstructorBody() 858 Stmt *Body = Ctor->getBody(Definition); in EmitConstructorBody() 859 assert(Definition == Ctor && "emitting wrong constructor body"); in EmitConstructorBody() 876 EmitCtorPrologue(Ctor, CtorType, Args); in EmitConstructorBody() [all …]
|
H A D | CGExprCXX.cpp | 281 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(MD)) { in EmitCXXMemberOrOperatorMemberCallExpr() local 288 *this, Ctor, This.getPointer(*this), /*ImplicitParam=*/nullptr, in EmitCXXMemberOrOperatorMemberCallExpr() 291 EmitCXXConstructorCall(Ctor, Ctor_Complete, /*ForVirtualBase=*/false, in EmitCXXMemberOrOperatorMemberCallExpr() 1153 CXXConstructorDecl *Ctor = CCE->getConstructor(); in EmitNewArrayInitializer() local 1154 if (Ctor->isTrivial()) { in EmitNewArrayInitializer() 1157 if (!CCE->requiresZeroInitialization() || Ctor->getParent()->isEmpty()) in EmitNewArrayInitializer() 1176 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, in EmitNewArrayInitializer()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Index/ |
H A D | IndexDecl.cpp | 256 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) { in VisitFunctionDecl() local 257 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl() 258 Ctor->getParent(), Ctor->getDeclContext(), in VisitFunctionDecl() 262 for (const auto *Init : Ctor->inits()) { in VisitFunctionDecl()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
H A D | CallGraph.cpp | 97 CXXConstructorDecl *Ctor = E->getConstructor(); in VisitCXXConstructExpr() local 98 if (FunctionDecl *Def = Ctor->getDefinition()) in VisitCXXConstructExpr()
|
H A D | ExprMutationAnalyzer.cpp | 590 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(&Func)) { in FunctionParmMutationAnalyzer() local 593 for (const CXXCtorInitializer *Init : Ctor->inits()) { in FunctionParmMutationAnalyzer() 595 for (const ParmVarDecl *Parm : Ctor->parameters()) { in FunctionParmMutationAnalyzer()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
H A D | UninitializedObjectChecker.cpp | 117 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, 473 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, in willObjectBeAnalyzedLater() argument 476 const TypedValueRegion *CurrRegion = getConstructedRegion(Ctor, Context); in willObjectBeAnalyzedLater()
|
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 487 Function *Ctor = nullptr; in instrumentModule() local 490 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorTracePcGuardName, in instrumentModule() 494 Ctor = CreateInitCallsForSections(M, SanCovModuleCtor8bitCountersName, in instrumentModule() 498 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorBoolFlagName, in instrumentModule() 502 if (Ctor && Options.PCTable) { in instrumentModule() 506 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator()); in instrumentModule()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/ |
H A D | USRFindingAction.cpp | 173 if (const auto *Ctor = in addUSRsOfCtorDtors() local 175 USRSet.insert(getUSRForDecl(Ctor)); in addUSRsOfCtorDtors()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineCXX.cpp | 45 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in performTrivialCopy() local 46 assert(Ctor->getDecl()->isTrivial()); in performTrivialCopy() 47 assert(Ctor->getDecl()->isCopyOrMoveConstructor()); in performTrivialCopy() 48 ThisVal = Ctor->getCXXThisVal(); in performTrivialCopy() 49 ThisRD = Ctor->getDecl()->getParent(); in performTrivialCopy()
|
H A D | CallEvent.cpp | 509 if (const auto Ctor = Element.getAs<CFGConstructor>()) { in getConstructionContext() local 510 return Ctor->getConstructionContext(); in getConstructionContext() 1404 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getCaller() local 1405 Loc ThisPtr = SVB.getCXXThis(Ctor, CalleeCtx); in getCaller()
|
H A D | ExprEngineCallAndReturn.cpp | 751 const CXXConstructorCall &Ctor = cast<CXXConstructorCall>(Call); in mayInlineCallKind() local 753 const CXXConstructExpr *CtorExpr = Ctor.getOriginExpr(); in mayInlineCallKind() 777 if (Ctor.getDecl()->getParent()->hasTrivialDestructor()) in mayInlineCallKind()
|
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
H A D | JumpDiagnostics.cpp | 205 const CXXConstructorDecl *Ctor = CCE->getConstructor(); in GetDiagForGotoScopeDecl() local 206 if (Ctor->isTrivial() && Ctor->isDefaultConstructor() && in GetDiagForGotoScopeDecl() 210 else if (!Ctor->getParent()->isPOD()) in GetDiagForGotoScopeDecl()
|
H A D | SemaDeclCXX.cpp | 4860 CXXConstructorDecl *Ctor; member 4867 BaseAndFieldInfo(Sema &S, CXXConstructorDecl *Ctor, bool ErrorsInInits) in BaseAndFieldInfo() 4868 : S(S), Ctor(Ctor), AnyErrorsInInits(ErrorsInInits) { in BaseAndFieldInfo() 4869 bool Generated = Ctor->isImplicit() || Ctor->isDefaulted(); in BaseAndFieldInfo() 4870 if (Ctor->getInheritedConstructor()) in BaseAndFieldInfo() 4872 else if (Generated && Ctor->isCopyConstructor()) in BaseAndFieldInfo() 4874 else if (Generated && Ctor->isMoveConstructor()) in BaseAndFieldInfo() 4991 SemaRef.BuildCXXDefaultInitExpr(Info.Ctor->getLocation(), Field); in CollectFieldInitializer() 5021 if (BuildImplicitMemberInitializer(Info.S, Info.Ctor, Info.IIK, Field, in CollectFieldInitializer() 6276 auto *Ctor = dyn_cast<CXXConstructorDecl>(MD); in checkClassLevelDLLAttribute() local [all …]
|