-
Notifications
You must be signed in to change notification settings - Fork 15k
[clang][OpenMP] New OpenMP 6.0 threadset clause #135807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 19 commits
924b89f
1571311
14d1984
88f75e7
48522e4
a9401e6
b64cf92
68b691b
04e706d
812fe2b
149f264
6ecfbc0
8694708
fdb4841
ea0e55f
2602c6c
18e880a
b0b3fdb
451633e
6404c00
42f62c6
cbf4671
a5dc8d2
9e74f9b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3743,6 +3743,7 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, | |
| DestructorsFlag = 0x8, | ||
| PriorityFlag = 0x20, | ||
| DetachableFlag = 0x40, | ||
| FreeAgentFlag = 0x80, | ||
| }; | ||
| unsigned Flags = Data.Tied ? TiedFlag : 0; | ||
| bool NeedsCleanup = false; | ||
|
|
@@ -3752,6 +3753,11 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc, | |
| if (NeedsCleanup) | ||
| Flags = Flags | DestructorsFlag; | ||
| } | ||
| if (const auto *Clause = D.getSingleClause<OMPThreadsetClause>()) { | ||
|
||
| OpenMPThreadsetKind Kind = Clause->getThreadsetKind(); | ||
| if (Kind == OMPC_THREADSET_omp_pool) | ||
| Flags = Flags | FreeAgentFlag; | ||
| } | ||
| if (Data.Priority.getInt()) | ||
| Flags = Flags | PriorityFlag; | ||
| if (D.hasClausesOfKind<OMPDetachClause>()) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this flag implemented in runtime already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes @alexey-bataev - #144409