Home
last modified time | relevance | path

Searched refs:NewDecl (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/IR/
H A DVPIntrinsicTest.cpp321 auto *NewDecl = VPIntrinsic::getDeclarationForParams( in TEST_F() local
323 ASSERT_TRUE(NewDecl); in TEST_F()
326 ASSERT_EQ(F.getIntrinsicID(), NewDecl->getIntrinsicID()); in TEST_F()
328 NewDecl->getFunctionType()->param_begin(); in TEST_F()
330 NewDecl->getFunctionType()->param_end(); in TEST_F()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTemplate.h634 DeclaratorDecl *NewDecl);
636 TagDecl *NewDecl);
H A DSema.h8271 void CheckConceptRedefinition(ConceptDecl *NewDecl, LookupResult &Previous,
9731 Decl *NewDecl; member
9735 : TmplAttr(A), Scope(S), NewDecl(D) in LateInstantiatedAttribute()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplate.cpp8668 ActOnDocumentableDecl(NewDecl); in ActOnTemplateDeclarator()
8669 return NewDecl; in ActOnTemplateDeclarator()
8701 if (NewDecl->hasAssociatedConstraints()) { in ActOnConceptDefinition()
8705 NewDecl->setInvalidDecl(); in ActOnConceptDefinition()
8718 ActOnDocumentableDecl(NewDecl); in ActOnConceptDefinition()
8720 PushOnScopeChains(NewDecl, S); in ActOnConceptDefinition()
8721 return NewDecl; in ActOnConceptDefinition()
8735 << NewDecl->getDeclName(); in CheckConceptRedefinition()
8744 << NewDecl->getDeclName(); in CheckConceptRedefinition()
8750 IsRedefinitionInModule(NewDecl, OldConcept)) { in CheckConceptRedefinition()
[all …]
H A DSemaTemplateInstantiateDecl.cpp52 assert((NewDecl->getFriendObjectKind() || in SubstQualifier()
57 const_cast<DeclContext *>(NewDecl->getFriendObjectKind() in SubstQualifier()
58 ? NewDecl->getLexicalDeclContext() in SubstQualifier()
68 NewDecl->setQualifierInfo(NewQualifierLoc); in SubstQualifier()
73 DeclaratorDecl *NewDecl) { in SubstQualifier() argument
74 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
78 TagDecl *NewDecl) { in SubstQualifier() argument
79 return ::SubstQualifier(SemaRef, OldDecl, NewDecl, TemplateArgs); in SubstQualifier()
4992 CXXRecordDecl *NewDecl; in InstantiateFunctionDefinition() member
4996 : TreeTransform(SemaRef), OldDecl(O), NewDecl(N) {} in InstantiateFunctionDefinition()
[all …]
H A DSemaDecl.cpp6943 if (!OldDecl || !NewDecl) in checkDLLAttributeRedeclaration()
6984 << NewDecl in checkDLLAttributeRedeclaration()
6988 NewDecl->setInvalidDecl(); in checkDLLAttributeRedeclaration()
7016 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7018 << NewDecl; in checkDLLAttributeRedeclaration()
7021 NewDecl->addAttr( in checkDLLAttributeRedeclaration()
7024 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7026 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
7037 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
7039 << NewDecl << OldImportAttr; in checkDLLAttributeRedeclaration()
[all …]
H A DSemaTemplateInstantiate.cpp2836 auto *ND = cast<NamedDecl>(I->NewDecl); in InstantiateClass()
2844 I->NewDecl->addAttr(NewAttr); in InstantiateClass()
H A DSemaDeclCXX.cpp13075 TypeAliasTemplateDecl *NewDecl = in ActOnAliasDeclaration() local
13079 NewTD->setDescribedAliasTemplate(NewDecl); in ActOnAliasDeclaration()
13081 NewDecl->setAccess(AS); in ActOnAliasDeclaration()
13084 NewDecl->setInvalidDecl(); in ActOnAliasDeclaration()
13086 NewDecl->setPreviousDecl(OldDecl); in ActOnAliasDeclaration()
13087 CheckRedeclarationInModule(NewDecl, OldDecl); in ActOnAliasDeclaration()
13090 NewND = NewDecl; in ActOnAliasDeclaration()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseTemplate.cpp851 NamedDecl *NewDecl = Actions.ActOnTypeParameter(getCurScope(), in ParseTypeParameter() local
860 cast<TemplateTypeParmDecl>(NewDecl), in ParseTypeParameter()
864 return NewDecl; in ParseTypeParameter()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARCOpts.cpp658 Function *NewDecl = EP.get(ARCRuntimeEntryPointKind::Retain); in OptimizeRetainRVCall() local
659 cast<CallInst>(RetainRV)->setCalledFunction(NewDecl); in OptimizeRetainRVCall()
767 Function *NewDecl = EP.get(ARCRuntimeEntryPointKind::Autorelease); in OptimizeAutoreleaseRVCall() local
768 AutoreleaseRVCI->setCalledFunction(NewDecl); in OptimizeAutoreleaseRVCall()
/llvm-project-15.0.7/llvm/lib/IR/
H A DFunction.cpp1799 Function *NewDecl = [&] { in remangleIntrinsicFunction() local
1814 NewDecl->setCallingConv(F->getCallingConv()); in remangleIntrinsicFunction()
1815 assert(NewDecl->getFunctionType() == F->getFunctionType() && in remangleIntrinsicFunction()
1817 return NewDecl; in remangleIntrinsicFunction()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp984 Function *NewDecl = in rewriteIntrinsicWithAddressSpace() local
987 II->setCalledFunction(NewDecl); in rewriteIntrinsicWithAddressSpace()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp367 Function *NewDecl = in rewriteIntrinsicOperands() local
370 II->setCalledFunction(NewDecl); in rewriteIntrinsicOperands()
/llvm-project-15.0.7/clang/lib/AST/
H A DASTContext.cpp1238 RecordDecl *NewDecl; in buildImplicitRecord() local
1240 NewDecl = CXXRecordDecl::Create(*this, TK, getTranslationUnitDecl(), Loc, in buildImplicitRecord()
1243 NewDecl = RecordDecl::Create(*this, TK, getTranslationUnitDecl(), Loc, Loc, in buildImplicitRecord()
1245 NewDecl->setImplicit(); in buildImplicitRecord()
1246 NewDecl->addAttr(TypeVisibilityAttr::CreateImplicit( in buildImplicitRecord()
1248 return NewDecl; in buildImplicitRecord()
1254 TypedefDecl *NewDecl = TypedefDecl::Create( in buildImplicitTypedef() local
1257 NewDecl->setImplicit(); in buildImplicitTypedef()
1258 return NewDecl; in buildImplicitTypedef()