Skip to content

Commit e108ff6

Browse files
Resolving flang issues
1 parent 074b225 commit e108ff6

File tree

6 files changed

+9
-1
lines changed

6 files changed

+9
-1
lines changed

clang/lib/CodeGen/CGDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ void CodeGenFunction::EmitDecl(const Decl &D, bool EvaluateConditionDecl) {
131131
case Decl::UnnamedGlobalConstant:
132132
case Decl::TemplateParamObject:
133133
case Decl::OMPThreadPrivate:
134+
case Decl::OMPGroupPrivate:
134135
case Decl::OMPAllocate:
135136
case Decl::OMPCapturedExpr:
136137
case Decl::OMPRequires:

clang/lib/Serialization/ASTCommon.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ bool serialization::isRedeclarableDeclKind(unsigned Kind) {
441441
case Decl::Captured:
442442
case Decl::Import:
443443
case Decl::OMPThreadPrivate:
444+
case Decl::OMPGroupPrivate:
444445
case Decl::OMPAllocate:
445446
case Decl::OMPRequires:
446447
case Decl::OMPCapturedExpr:

clang/tools/libclang/CIndex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7213,6 +7213,7 @@ CXCursor clang_getCursorDefinition(CXCursor C) {
72137213
case Decl::CXXDeductionGuide:
72147214
case Decl::Import:
72157215
case Decl::OMPThreadPrivate:
7216+
case Decl::OMPGroupPrivate:
72167217
case Decl::OMPAllocate:
72177218
case Decl::OMPDeclareReduction:
72187219
case Decl::OMPDeclareMapper:

flang/include/flang/Lower/OpenMP/Clauses.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,14 @@ struct MemoryOrder {
328328
struct Threadprivate {
329329
using EmptyTrait = std::true_type;
330330
};
331+
struct Groupprivate {
332+
using EmptyTrait = std::true_type;
333+
};
331334

332335
using ClauseBase = tomp::ClauseT<TypeTy, IdTy, ExprTy,
333336
// Extras...
334337
CancellationConstructType, Depobj, Flush,
335-
MemoryOrder, Threadprivate>;
338+
MemoryOrder, Threadprivate, Groupprivate>;
336339

337340
struct Clause : public ClauseBase {
338341
Clause(ClauseBase &&base, const parser::CharBlock source = {})

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ MAKE_EMPTY_CLASS(Depobj, Depobj);
254254
MAKE_EMPTY_CLASS(Flush, Flush);
255255
MAKE_EMPTY_CLASS(MemoryOrder, MemoryOrder);
256256
MAKE_EMPTY_CLASS(Threadprivate, Threadprivate);
257+
MAKE_EMPTY_CLASS(Groupprivate, Groupprivate);
257258

258259
MAKE_INCOMPLETE_CLASS(AdjustArgs, AdjustArgs);
259260
MAKE_INCOMPLETE_CLASS(AppendArgs, AppendArgs);

flang/lib/Semantics/check-omp-structure.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,6 +2790,7 @@ CHECK_SIMPLE_CLAUSE(NumTasks, OMPC_num_tasks)
27902790
CHECK_SIMPLE_CLAUSE(Order, OMPC_order)
27912791
CHECK_SIMPLE_CLAUSE(Read, OMPC_read)
27922792
CHECK_SIMPLE_CLAUSE(Threadprivate, OMPC_threadprivate)
2793+
CHECK_SIMPLE_CLAUSE(Groupprivate, OMPC_groupprivate)
27932794
CHECK_SIMPLE_CLAUSE(Threads, OMPC_threads)
27942795
CHECK_SIMPLE_CLAUSE(Inbranch, OMPC_inbranch)
27952796
CHECK_SIMPLE_CLAUSE(Link, OMPC_link)

0 commit comments

Comments
 (0)