| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | ModuleUtils.cpp | 238 Function *Ctor = Function::createWithDefaultAttr( in createSanitizerCtor() local 242 Ctor->addFnAttr(Attribute::NoUnwind); in createSanitizerCtor() 243 setKCFIType(M, *Ctor, "_ZTSFvvE"); // void (*)(void) in createSanitizerCtor() 244 BasicBlock *CtorBB = BasicBlock::Create(M.getContext(), "", Ctor); in createSanitizerCtor() 247 appendToUsed(M, {Ctor}); in createSanitizerCtor() 248 return Ctor; in createSanitizerCtor() 260 Function *Ctor = createSanitizerCtor(M, CtorName); in createSanitizerCtorAndInitFunctions() local 263 BasicBlock *RetBB = &Ctor->getEntryBlock(); in createSanitizerCtorAndInitFunctions() 266 auto *EntryBB = BasicBlock::Create(M.getContext(), "entry", Ctor, RetBB); in createSanitizerCtorAndInitFunctions() 268 BasicBlock::Create(M.getContext(), "callfunc", Ctor, RetBB); in createSanitizerCtorAndInitFunctions() [all …]
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Parser.cpp | 438 std::optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); in parseIdentifierPrefixImpl() local 441 return parseMatcherExpressionImpl(NameToken, OpenToken, Ctor, Value); in parseIdentifierPrefixImpl() 468 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, in parseMatcherBuilder() argument 477 ScopedContextEntry SCE(this, Ctor); in parseMatcherBuilder() 551 S->buildMatcherCtor(Ctor, NameToken.Range, Args, Error); in parseMatcherBuilder() 628 std::optional<MatcherCtor> Ctor, in parseMatcherExpressionImpl() argument 630 if (!Ctor) { in parseMatcherExpressionImpl() 636 if (Ctor && *Ctor && S->isBuilderMatcher(*Ctor)) in parseMatcherExpressionImpl() 637 return parseMatcherBuilder(*Ctor, NameToken, OpenToken, Value); in parseMatcherExpressionImpl() 645 ScopedContextEntry SCE(this, Ctor.value_or(nullptr)); in parseMatcherExpressionImpl() [all …]
|
| H A D | Registry.cpp | 622 ASTNodeKind Registry::nodeMatcherType(MatcherCtor Ctor) { in nodeMatcherType() argument 623 return Ctor->nodeMatcherType(); in nodeMatcherType() 631 bool Registry::isBuilderMatcher(MatcherCtor Ctor) { in isBuilderMatcher() argument 632 return Ctor->isBuilderMatcher(); in isBuilderMatcher() 636 Registry::buildMatcherCtor(MatcherCtor Ctor, SourceRange NameRange, in buildMatcherCtor() argument 639 Ctor->buildMatcherCtor(NameRange, Args, Error).release()); in buildMatcherCtor() 683 MatcherCtor Ctor = CtxEntry.first; in getAcceptedCompletionTypes() local 688 Ctor->isConvertibleTo(Kind.getMatcherKind()) && in getAcceptedCompletionTypes() 689 (Ctor->isVariadic() || ArgNumber < Ctor->getNumArgs())) in getAcceptedCompletionTypes() 690 Ctor->getArgKinds(Kind.getMatcherKind(), ArgNumber, NextTypeSet); in getAcceptedCompletionTypes() [all …]
|
| /freebsd/contrib/llvm-project/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 std::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,
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerBinaryMetadata.cpp | 222 Function *Ctor = in run() local 239 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run() 241 Ctor->setLinkage(GlobalValue::ExternalLinkage); in run() 244 Ctor->setVisibility(GlobalValue::HiddenVisibility); in run() 246 CtorComdatKey = Ctor; in run() 249 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in run()
|
| H A D | RealtimeSanitizer.cpp | 90 [&](Function *Ctor, FunctionCallee) { appendToGlobalCtors(M, Ctor, 0); }); in run() argument
|
| H A D | SanitizerCoverage.cpp | 527 Function *Ctor = nullptr; in instrumentModule() local 530 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorTracePcGuardName, in instrumentModule() 534 Ctor = CreateInitCallsForSections(M, SanCovModuleCtor8bitCountersName, in instrumentModule() 538 Ctor = CreateInitCallsForSections(M, SanCovModuleCtorBoolFlagName, in instrumentModule() 542 if (Ctor && Options.PCTable) { in instrumentModule() 546 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator()); in instrumentModule() 550 if (Ctor && Options.CollectControlFlow) { in instrumentModule() 554 IRBuilder<> IRBCtor(Ctor->getEntryBlock().getTerminator()); in instrumentModule()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ |
| H A D | PassInfo.h | 80 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument 81 NormalCtor = Ctor; in setNormalCtor()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetMachine.cpp | 198 RegisterRegAlloc::FunctionPassCtor Ctor = SGPRRegisterRegAlloc::getDefault(); in initializeDefaultSGPRRegisterAllocatorOnce() local 200 if (!Ctor) { in initializeDefaultSGPRRegisterAllocatorOnce() 201 Ctor = SGPRRegAlloc; in initializeDefaultSGPRRegisterAllocatorOnce() 207 RegisterRegAlloc::FunctionPassCtor Ctor = VGPRRegisterRegAlloc::getDefault(); in initializeDefaultVGPRRegisterAllocatorOnce() local 209 if (!Ctor) { in initializeDefaultVGPRRegisterAllocatorOnce() 210 Ctor = VGPRRegAlloc; in initializeDefaultVGPRRegisterAllocatorOnce() 216 RegisterRegAlloc::FunctionPassCtor Ctor = WWMRegisterRegAlloc::getDefault(); in initializeDefaultWWMRegisterAllocatorOnce() local 218 if (!Ctor) { in initializeDefaultWWMRegisterAllocatorOnce() 219 Ctor = WWMRegAlloc; in initializeDefaultWWMRegisterAllocatorOnce() 1592 RegisterRegAlloc::FunctionPassCtor Ctor = SGPRRegisterRegAlloc::getDefault(); in createSGPRAllocPass() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetMachine.cpp | 359 RegisterRegAlloc::FunctionPassCtor Ctor = RVVRegisterRegAlloc::getDefault(); in initializeDefaultRVVRegisterAllocatorOnce() local 361 if (!Ctor) { in initializeDefaultRVVRegisterAllocatorOnce() 362 Ctor = RVVRegAlloc; in initializeDefaultRVVRegisterAllocatorOnce() 441 RegisterRegAlloc::FunctionPassCtor Ctor = RVVRegisterRegAlloc::getDefault(); in createRVVRegAllocPass() local 442 if (Ctor != useDefaultRegisterAllocator) in createRVVRegAllocPass() 443 return Ctor(); in createRVVRegAllocPass()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| 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 | 257 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPreCall() local 266 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPreCall() 273 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) in checkPreCall() 274 recordFixedType(Target, Ctor->getDecl(), C); in checkPreCall() 356 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPostCall() local 358 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPostCall() 369 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { in checkPostCall() 381 LCtx->getParentMap().getParent(Ctor->getOriginExpr()))) in checkPostCall()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | CheckExprLifetime.cpp | 411 static bool isCopyLikeConstructor(const CXXConstructorDecl *Ctor) { in isCopyLikeConstructor() argument 412 if (!Ctor || Ctor->param_size() != 1) in isCopyLikeConstructor() 415 Ctor->getParamDecl(0)->getType()->getAs<ReferenceType>(); in isCopyLikeConstructor() 432 shouldTrackFirstArgumentForConstructor(const CXXConstructExpr *Ctor) { in shouldTrackFirstArgumentForConstructor() argument 433 const auto *LHSRecordDecl = Ctor->getConstructor()->getParent(); in shouldTrackFirstArgumentForConstructor() 440 if (Ctor->getConstructor()->param_empty() || in shouldTrackFirstArgumentForConstructor() 454 auto RHSArgType = Ctor->getArg(0)->getType(); in shouldTrackFirstArgumentForConstructor() 495 Ctor->getConstructor()->getPrimaryTemplate(); in shouldTrackFirstArgumentForConstructor() 688 } else if (auto *Ctor = dyn_cast<CXXConstructExpr>(Call); in visitFunctionCallArguments() local 689 Ctor && shouldTrackFirstArgumentForConstructor(Ctor)) { in visitFunctionCallArguments() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/WebKit/ |
| H A D | RawPtrRefLambdaCapturesChecker.cpp | 302 auto *Ctor = CE->getConstructor(); in checkASTDecl() local 303 if (!Ctor) in checkASTDecl() 305 auto clsName = safeGetName(Ctor->getParent()); in checkASTDecl() 312 if (CXXR == Ctor->getParent() && Ctor->isMoveConstructor() && in checkASTDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGClass.cpp | 727 const CXXConstructorDecl *Ctor) { in IsConstructorDelegationValid() argument 741 if (Ctor->getParent()->getNumVBases()) { in IsConstructorDelegationValid() 761 if (Ctor->getType()->castAs<FunctionProtoType>()->isVariadic()) in IsConstructorDelegationValid() 765 if (Ctor->isDelegatingConstructor()) in IsConstructorDelegationValid() 838 const CXXConstructorDecl *Ctor = cast<CXXConstructorDecl>(CurGD.getDecl()); in EmitConstructorBody() local 847 if (CtorType == Ctor_Complete && IsConstructorDelegationValid(Ctor) && in EmitConstructorBody() 849 EmitDelegateCXXConstructorCall(Ctor, Ctor_Base, Args, Ctor->getEndLoc()); in EmitConstructorBody() 854 Stmt *Body = Ctor->getBody(Definition); in EmitConstructorBody() 855 assert(Definition == Ctor && "emitting wrong constructor body"); in EmitConstructorBody() 873 EmitCtorPrologue(Ctor, CtorType, Args); in EmitConstructorBody() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Function.h | 90 Ctor, enumerator 162 bool isConstructor() const { return Kind == FunctionKind::Ctor; } in isConstructor()
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexDecl.cpp | 262 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/StaticAnalyzer/Core/ |
| H A D | ExprEngineCXX.cpp | 52 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in performTrivialCopy() local 53 assert(Ctor->getDecl()->isTrivial()); in performTrivialCopy() 54 assert(Ctor->getDecl()->isCopyOrMoveConstructor()); in performTrivialCopy() 55 ThisVal = Ctor->getCXXThisVal(); in performTrivialCopy() 56 ThisRD = Ctor->getDecl()->getParent(); in performTrivialCopy() 535 const auto *Ctor = in bindRequiredArrayElementToEnvironment() local 541 MRMgr.getElementRegion(Ctor->getType(), Idx, SourceArrayRegion, Ctx); in bindRequiredArrayElementToEnvironment() 543 return State->BindExpr(Ctor->getArg(0), LCtx, in bindRequiredArrayElementToEnvironment()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CallGraph.cpp | 96 CXXConstructorDecl *Ctor = E->getConstructor(); in VisitCXXConstructExpr() local 97 if (FunctionDecl *Def = Ctor->getDefinition()) in VisitCXXConstructExpr()
|
| /freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
| H A D | Visitor.cpp | 468 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(D)) in getMangledCtorDtor() local 469 GD = GlobalDecl(Ctor, CXXCtorType(Type)); in getMangledCtorDtor() 627 if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(M)) { in VisitCXXRecordDecl() local 629 if (Ctor->isDefaulted()) in VisitCXXRecordDecl()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedObjectChecker.cpp | 112 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, 470 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, in willObjectBeAnalyzedLater() argument 473 const TypedValueRegion *CurrRegion = getConstructedRegion(Ctor, Context); in willObjectBeAnalyzedLater()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | ASTOps.cpp | 206 void traverseConstructorInits(const CXXConstructorDecl *Ctor) { in traverseConstructorInits() argument 207 for (const CXXCtorInitializer *Init : Ctor->inits()) { in traverseConstructorInits()
|