Home
last modified time | relevance | path

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

123

/src/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 …]
/src/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()
/src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DParser.cpp439 std::optional<MatcherCtor> Ctor = S->lookupMatcherCtor(NameToken.Text); in parseIdentifierPrefixImpl() local
442 return parseMatcherExpressionImpl(NameToken, OpenToken, Ctor, Value); in parseIdentifierPrefixImpl()
469 bool Parser::parseMatcherBuilder(MatcherCtor Ctor, const TokenInfo &NameToken, in parseMatcherBuilder() argument
478 ScopedContextEntry SCE(this, Ctor); in parseMatcherBuilder()
552 S->buildMatcherCtor(Ctor, NameToken.Range, Args, Error); in parseMatcherBuilder()
629 std::optional<MatcherCtor> Ctor, in parseMatcherExpressionImpl() argument
631 if (!Ctor) { in parseMatcherExpressionImpl()
637 if (Ctor && *Ctor && S->isBuilderMatcher(*Ctor)) in parseMatcherExpressionImpl()
638 return parseMatcherBuilder(*Ctor, NameToken, OpenToken, Value); in parseMatcherExpressionImpl()
646 ScopedContextEntry SCE(this, Ctor.value_or(nullptr)); in parseMatcherExpressionImpl()
[all …]
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 …]
/src/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,
/src/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()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DUndefinedArraySubscriptChecker.cpp44 if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) in checkPreStmt() local
45 if (Ctor->isDefaulted()) in checkPreStmt()
H A DIterator.cpp39 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 DDynamicTypePropagation.cpp261 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPreCall() local
270 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPreCall()
277 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) in checkPreCall()
278 recordFixedType(Target, Ctor->getDecl(), C); in checkPreCall()
360 if (const CXXConstructorCall *Ctor = dyn_cast<CXXConstructorCall>(&Call)) { in checkPostCall() local
362 switch (Ctor->getOriginExpr()->getConstructionKind()) { in checkPostCall()
373 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { in checkPostCall()
385 LCtx->getParentMap().getParent(Ctor->getOriginExpr()))) in checkPostCall()
/src/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()
/src/contrib/llvm-project/llvm/include/llvm/
H A DPassInfo.h91 void setNormalCtor(NormalCtor_t Ctor) { in setNormalCtor() argument
92 NormalCtor = Ctor; in setNormalCtor()
/src/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()
/src/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()
/src/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 …]
/src/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()
/src/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp97 CXXConstructorDecl *Ctor = E->getConstructor(); in VisitCXXConstructExpr() local
98 if (FunctionDecl *Def = Ctor->getDefinition()) in VisitCXXConstructExpr()
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()
/src/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()
/src/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()
/src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
H A DUninitializedObjectChecker.cpp112 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor,
468 static bool willObjectBeAnalyzedLater(const CXXConstructorDecl *Ctor, in willObjectBeAnalyzedLater() argument
471 const TypedValueRegion *CurrRegion = getConstructedRegion(Ctor, Context); in willObjectBeAnalyzedLater()
/src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRFindingAction.cpp171 if (const auto *Ctor = in addUSRsOfCtorDtors() local
173 USRSet.insert(getUSRForDecl(Ctor)); in addUSRsOfCtorDtors()
/src/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()

123