mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[OpenMP51] Accept primary
as proc bind affinity policy in Clang
Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D99622
This commit is contained in:
parent
26663577f0
commit
4feb461822
@ -103,13 +103,15 @@ def OMPC_CopyPrivate : Clause<"copyprivate"> {
|
||||
def OMP_PROC_BIND_master : ClauseVal<"master",2,1> {}
|
||||
def OMP_PROC_BIND_close : ClauseVal<"close",3,1> {}
|
||||
def OMP_PROC_BIND_spread : ClauseVal<"spread",4,1> {}
|
||||
def OMP_PROC_BIND_default : ClauseVal<"default",5,0> {}
|
||||
def OMP_PROC_BIND_unknown : ClauseVal<"unknown",6,0> { let isDefault = true; }
|
||||
def OMP_PROC_BIND_primary : ClauseVal<"primary",5,1> {}
|
||||
def OMP_PROC_BIND_default : ClauseVal<"default",6,0> {}
|
||||
def OMP_PROC_BIND_unknown : ClauseVal<"unknown",7,0> { let isDefault = true; }
|
||||
def OMPC_ProcBind : Clause<"proc_bind"> {
|
||||
let clangClass = "OMPProcBindClause";
|
||||
let flangClass = "OmpProcBindClause";
|
||||
let enumClauseValue = "ProcBindKind";
|
||||
let allowedClauseValues = [
|
||||
OMP_PROC_BIND_primary,
|
||||
OMP_PROC_BIND_master,
|
||||
OMP_PROC_BIND_close,
|
||||
OMP_PROC_BIND_spread,
|
||||
|
@ -967,6 +967,7 @@ __OMP_DEFAULT_KIND(unknown)
|
||||
__OMP_PROC_BIND_KIND(master, 2)
|
||||
__OMP_PROC_BIND_KIND(close, 3)
|
||||
__OMP_PROC_BIND_KIND(spread, 4)
|
||||
__OMP_PROC_BIND_KIND(primary, 5)
|
||||
__OMP_PROC_BIND_KIND(default, 6)
|
||||
__OMP_PROC_BIND_KIND(unknown, 7)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user