Searched refs:Ctor (Results 1 - 25 of 64) sorted by relevance

123

/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
H A DMachinePassRegistry.h53 PassCtorTy Ctor; // Pass creator. member in class:llvm::MachinePassRegistryNode
57 : Name(N), Description(D), Ctor(C) {}
64 PassCtorTy getCtor() const { return Ctor; }
91 PassCtorTy Ctor = nullptr; local
95 Ctor = R->getCtor();
99 assert(Ctor && "Unregistered pass name");
100 setDefault(Ctor);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/Dynamic/
H A DRegistry.h88 static bool isBuilderMatcher(MatcherCtor Ctor);
125 /// \param Ctor The matcher constructor to instantiate.
138 static VariantMatcher constructMatcher(MatcherCtor Ctor,
149 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
H A DParser.h75 /// \param Ctor A matcher constructor looked up by lookupMatcherCtor.
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,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp125 Function *Ctor = Function::createWithDefaultAttr( local
128 Ctor->addAttribute(AttributeList::FunctionIndex, Attribute::NoUnwind);
129 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor);
131 return Ctor;
143 Function *Ctor = createSanitizerCtor(M, CtorName); local
144 IRBuilder<> IRB(Ctor->getEntryBlock().getTerminator());
152 return std::make_pair(Ctor, InitFunction);
163 if (Function *Ctor = M.getFunction(CtorName))
166 if (Ctor->arg_size() == 0 ||
167 Ctor
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/
H A DPassInfo.h91 void setNormalCtor(NormalCtor_t Ctor) { argument
92 NormalCtor = Ctor;
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedArraySubscriptChecker.cpp44 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D))
45 if (Ctor->isDefaulted())
H A DBlockInCriticalSectionChecker.cpp110 if (const auto *Ctor = dyn_cast<CXXConstructorCall>(&Call)) {
111 auto IdentifierInfo = Ctor->getDecl()->getParent()->getIdentifier();
H A DIterator.cpp39 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(Method)) {
40 if (Ctor->isCopyConstructor()) {
41 HasCopyCtor = !Ctor->isDeleted() && Ctor->getAccess() == AS_public;
H A DDynamicTypePropagation.cpp264 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) {
273 switch (Ctor->getOriginExpr()->getConstructionKind()) {
280 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion())
281 recordFixedType(Target, Ctor->getDecl(), C);
363 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) {
365 switch (Ctor->getOriginExpr()->getConstructionKind()) {
376 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) {
388 LCtx->getParentMap().getParent(Ctor->getOriginExpr())))
/netbsd-current/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp441 llvm::Optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); local
444 return parseMatcherExpressionImpl(NameToken, OpenToken, Ctor, Value);
471 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, argument
480 ScopedContextEntry SCE(this, Ctor);
554 S->buildMatcherCtor(Ctor, NameToken.Range, Args, Error);
631 llvm::Optional<MatcherCtor> Ctor,
633 if (!Ctor) {
639 if (Ctor && *Ctor && S->isBuilderMatcher(*Ctor))
629 parseMatcherExpressionImpl(const TokenInfo &NameToken, const TokenInfo &OpenToken, llvm::Optional<MatcherCtor> Ctor, VariantValue *Value) argument
836 actOnMatcherExpression( MatcherCtor Ctor, SourceRange NameRange, StringRef BindID, ArrayRef<ParserValue> Args, Diagnostics *Error) argument
866 buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, ArrayRef<ParserValue> Args, Diagnostics *Error) const argument
[all...]
H A DRegistry.cpp577 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { argument
578 return Ctor->nodeMatcherType();
586 bool Registry::isBuilderMatcher(MatcherCtor Ctor) { argument
587 return Ctor->isBuilderMatcher();
591 Registry::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, argument
594 Ctor->buildMatcherCtor(NameRange, Args, Error).release());
639 MatcherCtor Ctor = CtxEntry.first; local
644 Ctor->isConvertibleTo(Kind.getMatcherKind()) &&
645 (Ctor->isVariadic() || ArgNumber < Ctor
760 constructMatcher(MatcherCtor Ctor, SourceRange NameRange, ArrayRef<ParserValue> Args, Diagnostics *Error) argument
767 constructBoundMatcher(MatcherCtor Ctor, SourceRange NameRange, StringRef BindID, ArrayRef<ParserValue> Args, Diagnostics *Error) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DRegistry.h29 std::unique_ptr<T> (*Ctor)(); member in class:llvm::SimpleRegistryEntry::std
33 : Name(N), Desc(D), Ctor(C) {}
37 std::unique_ptr<T> instantiate() const { return Ctor(); }
/netbsd-current/external/apache2/llvm/dist/clang/lib/Analysis/
H A DCallGraph.cpp97 CXXConstructorDecl *Ctor = E->getConstructor(); local
98 if (FunctionDecl *Def = Ctor->getDefinition())
H A DExprMutationAnalyzer.cpp590 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(&Func)) {
593 for (const CXXCtorInitializer *Init : Ctor->inits()) {
595 for (const ParmVarDecl *Parm : Ctor->parameters()) {
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp114 /// Checks whether the object constructed by \p Ctor will be analyzed later
117 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor,
473 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, argument
476 const TypedValueRegion *CurrRegion = getConstructedRegion(Ctor, Context);
483 // If \p Ctor was called by another constructor.
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGClass.cpp731 const CXXConstructorDecl *Ctor) {
745 if (Ctor->getParent()->getNumVBases()) {
765 if (Ctor->getType()->castAs<FunctionProtoType>()->isVariadic())
769 if (Ctor->isDelegatingConstructor())
842 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); local
851 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) &&
853 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getEndLoc());
858 Stmt *Body = Ctor->getBody(Definition);
859 assert(Definition == Ctor
730 IsConstructorDelegationValid( const CXXConstructorDecl *Ctor) argument
2104 canEmitDelegateCallArgs(CodeGenFunction &CGF, const CXXConstructorDecl *Ctor, CXXCtorType Type, CallArgList &Args) argument
2252 EmitInlinedInheritingCXXConstructorCall( const CXXConstructorDecl *Ctor, CXXCtorType CtorType, bool ForVirtualBase, bool Delegating, CallArgList &Args) argument
2353 EmitDelegateCXXConstructorCall(const CXXConstructorDecl *Ctor, CXXCtorType CtorType, const FunctionArgList &Args, SourceLocation Loc) argument
2410 EmitDelegatingCXXConstructorCall(const CXXConstructorDecl *Ctor, const FunctionArgList &Args) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp173 if (const auto *Ctor =
175 USRSet.insert(getUSRForDecl(Ctor));
/netbsd-current/external/apache2/llvm/dist/clang/lib/Index/
H A DIndexDecl.cpp256 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) {
257 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(),
258 Ctor->getParent(), Ctor->getDeclContext(),
262 for (const auto *Init : Ctor->inits()) {
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp45 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) {
46 assert(Ctor->getDecl()->isTrivial());
47 assert(Ctor->getDecl()->isCopyOrMoveConstructor());
48 ThisVal = Ctor->getCXXThisVal();
49 ThisRD = Ctor->getDecl()->getParent();
H A DCallEvent.cpp509 if (const auto Ctor = Element.getAs<CFGConstructor>()) {
510 return Ctor->getConstructionContext();
1404 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); local
1405 Loc ThisPtr = SVB.getCXXThis(Ctor, CalleeCtx);
H A DExprEngineCallAndReturn.cpp751 const CXXConstructorCall &Ctor = cast<CXXConstructorCall>(Call); local
753 const CXXConstructExpr *CtorExpr = Ctor.getOriginExpr();
777 if (Ctor.getDecl()->getParent()->hasTrivialDestructor())
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp487 Function *Ctor = nullptr; local
490 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorTracePcGuardName,
494 Ctor = CreateInitCallsForSections(M, SanCovModuleCtor8bitCountersName,
498 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorBoolFlagName,
502 if (Ctor && Options.PCTable) {
506 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator());
/netbsd-current/external/apache2/llvm/dist/clang/lib/Sema/
H A DJumpDiagnostics.cpp205 const CXXConstructorDecl *Ctor = CCE->getConstructor(); local
206 if (Ctor->isTrivial() && Ctor->isDefaultConstructor() &&
210 else if (!Ctor->getParent()->isPOD())
H A DSemaDeclCXX.cpp4860 CXXConstructorDecl *Ctor;
4867 BaseAndFieldInfo(Sema &S, CXXConstructorDecl *Ctor, bool ErrorsInInits)
4868 : S(S), Ctor(Ctor), AnyErrorsInInits(ErrorsInInits) {
4869 bool Generated = Ctor->isImplicit() || Ctor->isDefaulted();
4870 if (Ctor->getInheritedConstructor())
4872 else if (Generated && Ctor->isCopyConstructor())
4874 else if (Generated && Ctor->isMoveConstructor())
4991 SemaRef.BuildCXXDefaultInitExpr(Info.Ctor
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTargetPassConfig.cpp1324 RegisterRegAlloc::FunctionPassCtor Ctor = RegisterRegAlloc::getDefault(); local
1325 if (Ctor != useDefaultRegisterAllocator)
1326 return Ctor();

Completed in 393 milliseconds

123