26void OMPThreadPrivateDecl::anchor() {}
32 auto *
D = OMPDeclarativeDirective::createDirective<OMPThreadPrivateDecl>(
33 C, DC, {}, VL.size(), L);
41 return OMPDeclarativeDirective::createEmptyDirective<OMPThreadPrivateDecl>(
47 "Number of variables is not the same as the preallocated buffer");
48 llvm::copy(VL, getVars().begin());
55void OMPAllocateDecl::anchor() { }
60 auto *
D = OMPDeclarativeDirective::createDirective<OMPAllocateDecl>(
61 C, DC, CL, VL.size(), L);
70 return OMPDeclarativeDirective::createEmptyDirective<OMPAllocateDecl>(
76 "Number of variables is not the same as the preallocated buffer");
77 llvm::copy(VL, getVars().begin());
84void OMPRequiresDecl::anchor() {}
89 return OMPDeclarativeDirective::createDirective<OMPRequiresDecl>(
C, DC, CL, 0,
96 return OMPDeclarativeDirective::createEmptyDirective<OMPRequiresDecl>(
104OMPDeclareReductionDecl::OMPDeclareReductionDecl(
108 PrevDeclInScope(PrevDeclInScope) {
112void OMPDeclareReductionDecl::anchor() {}
129 return cast_or_null<OMPDeclareReductionDecl>(
134 return cast_or_null<OMPDeclareReductionDecl>(
142void OMPDeclareMapperDecl::anchor() {}
148 return OMPDeclarativeDirective::createDirective<OMPDeclareMapperDecl>(
149 C, DC, Clauses, 1, L, Name,
T, VarName, PrevDeclInScope);