Home
last modified time | relevance | path

Searched refs:Ctor (Results 1 – 25 of 68) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DModuleUtils.cpp194 Function *Ctor = Function::createWithDefaultAttr( in createSanitizerCtor() local
198 Ctor->addFnAttr(Attribute::NoUnwind); in createSanitizerCtor()
199 setKCFIType(M, *Ctor, "_ZTSFvvE"); // void (*)(void) in createSanitizerCtor()
200 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtor()
203 appendToUsed(M, {Ctor}); in createSanitizerCtor()
204 return Ctor; in createSanitizerCtor()
216 Function *Ctor = createSanitizerCtor(M, CtorName); in createSanitizerCtorAndInitFunctions() local
219 BasicBlock *RetBB = &Ctor->getEntryBlock(); in createSanitizerCtorAndInitFunctions()
222 auto *EntryBB = BasicBlock::Create(M.getContext(), "entry", Ctor, RetBB); in createSanitizerCtorAndInitFunctions()
224 BasicBlock::Create(M.getContext(), "callfunc", Ctor, RetBB); in createSanitizerCtorAndInitFunctions()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachinePassRegistry.h53 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()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/
H A DParser.h88 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 std::optional<MatcherCtor> Ctor,
H A DRegistry.h88 static bool isBuilderMatcher(MatcherCtor Ctor);
138 static VariantMatcher constructMatcher(MatcherCtor Ctor,
149 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp619 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { in nodeMatcherType() argument
620 return Ctor->nodeMatcherType(); in nodeMatcherType()
628 bool Registry::isBuilderMatcher(MatcherCtor Ctor) { in isBuilderMatcher() argument
629 return Ctor->isBuilderMatcher(); in isBuilderMatcher()
633 Registry::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, in buildMatcherCtor() argument
636 Ctor->buildMatcherCtor(NameRange, Args, Error).release()); in buildMatcherCtor()
680 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() local
685 Ctor->isConvertibleTo(Kind.getMatcherKind()) && in getAcceptedCompletionTypes()
686 (Ctor->isVariadic() || ArgNumber < Ctor->getNumArgs())) in getAcceptedCompletionTypes()
687 Ctor->getArgKinds(Kind.getMatcherKind(), ArgNumber, NextTypeSet); in getAcceptedCompletionTypes()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerBinaryMetadata.cpp224 Function *Ctor = in run() local
241 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run()
243 Ctor->setLinkage(GlobalValue::ExternalLinkage); in run()
246 Ctor->setVisibility(GlobalValue::HiddenVisibility); in run()
248 CtorComdatKey = Ctor; in run()
251 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in run()
H A DSanitizerCoverage.cpp488 Function *Ctor = nullptr; in instrumentModule() local
491 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorTracePcGuardName, in instrumentModule()
495 Ctor = CreateInitCallsForSections(M, SanCovModuleCtor8bitCountersName, in instrumentModule()
499 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorBoolFlagName, in instrumentModule()
503 if (Ctor && Options.PCTable) { in instrumentModule()
507 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator()); in instrumentModule()
511 if (Ctor && Options.CollectControlFlow) { in instrumentModule()
515 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator()); in instrumentModule()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DRegistry.h29 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()
/freebsd/contrib/llvm-project/llvm/include/llvm/
H A DPassInfo.h91 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
92 NormalCtor = Ctor; in setNormalCtor()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetMachine.cpp302 RegisterRegAlloc::FunctionPassCtor Ctor = RVVRegisterRegAlloc::getDefault(); in initializeDefaultRVVRegisterAllocatorOnce() local
304 if (!Ctor) { in initializeDefaultRVVRegisterAllocatorOnce()
305 Ctor = RVVRegAlloc; in initializeDefaultRVVRegisterAllocatorOnce()
388 RegisterRegAlloc::FunctionPassCtor Ctor = RVVRegisterRegAlloc::getDefault(); in createRVVRegAllocPass() local
389 if (Ctor != useDefaultRegisterAllocator) in createRVVRegAllocPass()
390 return Ctor(); in createRVVRegAllocPass()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGClass.cpp731 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()
877 EmitCtorPrologue(Ctor, CtorType, Args); in EmitConstructorBody()
[all …]
H A DCGHLSLRuntime.cpp414 for (const auto &Ctor : CA->operands()) { in gatherFunctions() local
415 if (isa<ConstantAggregateZero>(Ctor)) in gatherFunctions()
417 ConstantStruct *CS = cast<ConstantStruct>(Ctor); in gatherFunctions()
H A DCGExprCXX.cpp289 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(MD)) { in EmitCXXMemberOrOperatorMemberCallExpr() local
296 *this, {Ctor, Ctor_Complete}, This.getPointer(*this), in EmitCXXMemberOrOperatorMemberCallExpr()
300 EmitCXXConstructorCall(Ctor, Ctor_Complete, /*ForVirtualBase=*/false, in EmitCXXMemberOrOperatorMemberCallExpr()
1180 CXXConstructorDecl *Ctor = CCE->getConstructor(); in EmitNewArrayInitializer() local
1181 if (Ctor->isTrivial()) { in EmitNewArrayInitializer()
1184 if (!CCE->requiresZeroInitialization() || Ctor->getParent()->isEmpty()) in EmitNewArrayInitializer()
1203 EmitCXXAggrConstructorCall(Ctor, NumElements, CurPtr, CCE, in EmitNewArrayInitializer()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetMachine.cpp126 RegisterRegAlloc::FunctionPassCtor Ctor = SGPRRegisterRegAlloc::getDefault(); in initializeDefaultSGPRRegisterAllocatorOnce() local
128 if (!Ctor) { in initializeDefaultSGPRRegisterAllocatorOnce()
129 Ctor = SGPRRegAlloc; in initializeDefaultSGPRRegisterAllocatorOnce()
135 RegisterRegAlloc::FunctionPassCtor Ctor = VGPRRegisterRegAlloc::getDefault(); in initializeDefaultVGPRRegisterAllocatorOnce() local
137 if (!Ctor) { in initializeDefaultVGPRRegisterAllocatorOnce()
138 Ctor = VGPRRegAlloc; in initializeDefaultVGPRRegisterAllocatorOnce()
1381 RegisterRegAlloc::FunctionPassCtor Ctor = SGPRRegisterRegAlloc::getDefault(); in createSGPRAllocPass() local
1382 if (Ctor != useDefaultRegisterAllocator) in createSGPRAllocPass()
1383 return Ctor(); in createSGPRAllocPass()
1396 RegisterRegAlloc::FunctionPassCtor Ctor = VGPRRegisterRegAlloc::getDefault(); in createVGPRAllocPass() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp262 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) { in VisitFunctionDecl() local
263 IndexCtx.handleReference(Ctor->getParent(), Ctor->getLocation(), in VisitFunctionDecl()
264 Ctor->getParent(), Ctor->getDeclContext(), in VisitFunctionDecl()
268 for (const auto *Init : Ctor->inits()) { in VisitFunctionDecl()
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp469 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(D)) in getMangledCtorDtor() local
470 GD = GlobalDecl(Ctor, CXXCtorType(Type)); in getMangledCtorDtor()
628 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(M)) { in VisitCXXRecordDecl() local
630 if (Ctor->isDefaulted()) in VisitCXXRecordDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DASTOps.cpp200 void TraverseConstructorInits(const CXXConstructorDecl *Ctor) { in TraverseConstructorInits() argument
201 for (const CXXCtorInitializer *Init : Ctor->inits()) { in TraverseConstructorInits()
H A DDataflowEnvironment.cpp318 void TraverseConstructorInits(const CXXConstructorDecl *Ctor, in TraverseConstructorInits() argument
321 for (const CXXCtorInitializer *Init : Ctor->inits()) { in TraverseConstructorInits()
1213 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(FuncDecl)) in buildResultObjectMap() local
1214 Visitor.TraverseConstructorInits(Ctor, ThisPointeeLoc); in buildResultObjectMap()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngineCXX.cpp49 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in performTrivialCopy() local
50 assert(Ctor->getDecl()->isTrivial()); in performTrivialCopy()
51 assert(Ctor->getDecl()->isCopyOrMoveConstructor()); in performTrivialCopy()
52 ThisVal = Ctor->getCXXThisVal(); in performTrivialCopy()
53 ThisRD = Ctor->getDecl()->getParent(); in performTrivialCopy()
H A DCallEvent.cpp509 if (const auto Ctor = Element.getAs<CFGConstructor>()) { in getConstructionContext() local
510 return Ctor->getConstructionContext(); in getConstructionContext()
1443 const auto *Ctor = cast<CXXMethodDecl>(CalleeCtx->getDecl()); in getCaller() local
1444 Loc ThisPtr = SVB.getCXXThis(Ctor, CalleeCtx); in getCaller()
H A DExprEngineCallAndReturn.cpp861 const CXXConstructorCall &Ctor = cast<CXXConstructorCall>(Call); in mayInlineCallKind() local
863 const CXXConstructExpr *CtorExpr = Ctor.getOriginExpr(); in mayInlineCallKind()
884 if (Ctor.getDecl()->getParent()->hasTrivialDestructor()) in mayInlineCallKind()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp674 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(&Func)) { in FunctionParmMutationAnalyzer() local
677 for (const CXXCtorInitializer *Init : Ctor->inits()) { in FunctionParmMutationAnalyzer()
680 for (const ParmVarDecl *Parm : Ctor->parameters()) { in FunctionParmMutationAnalyzer()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DJumpDiagnostics.cpp205 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 DSemaDeclCXX.cpp5027 CXXConstructorDecl *Ctor; member
5034 BaseAndFieldInfo(Sema &S, CXXConstructorDecl *Ctor, bool ErrorsInInits) in BaseAndFieldInfo()
5035 : S(S), Ctor(Ctor), AnyErrorsInInits(ErrorsInInits) { in BaseAndFieldInfo()
5036 bool Generated = Ctor->isImplicit() || Ctor->isDefaulted(); in BaseAndFieldInfo()
5037 if (Ctor->getInheritedConstructor()) in BaseAndFieldInfo()
5039 else if (Generated && Ctor->isCopyConstructor()) in BaseAndFieldInfo()
5041 else if (Generated && Ctor->isMoveConstructor()) in BaseAndFieldInfo()
5158 SemaRef.BuildCXXDefaultInitExpr(Info.Ctor->getLocation(), Field); in CollectFieldInitializer()
5188 if (BuildImplicitMemberInitializer(Info.S, Info.Ctor, Info.IIK, Field, in CollectFieldInitializer()
6487 auto *Ctor = dyn_cast<CXXConstructorDecl>(MD); in checkClassLevelDLLAttribute() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.cpp2466 const CXXConstructorDecl *Ctor = E->getConstructor(); in VisitCXXConstructExpr() local
2469 if (Ctor->isDefaulted() && Ctor->isCopyOrMoveConstructor() && in VisitCXXConstructExpr()
2470 Ctor->isTrivial() && in VisitCXXConstructExpr()
2478 if (Ctor->isTrivial()) in VisitCXXConstructExpr()
2498 if (Ctor->isTrivial()) in VisitCXXConstructExpr()
2502 const Function *Func = getFunction(Ctor); in VisitCXXConstructExpr()
2756 const CXXConstructorDecl *Ctor = E->getConstructor(); in VisitCXXInheritedCtorInitExpr() local
2757 assert(!Ctor->isTrivial() && in VisitCXXInheritedCtorInitExpr()
2759 const Function *F = this->getFunction(Ctor); in VisitCXXInheritedCtorInitExpr()
2773 for (const ParmVarDecl *PD : Ctor->parameters()) { in VisitCXXInheritedCtorInitExpr()
[all …]

123