mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[OPENMP51]Initial support for the dispatch directive.
Added basic parsing/sema/serialization support for dispatch directive. Differential Revision: https://reviews.llvm.org/D99537
This commit is contained in:
parent
86e58242f1
commit
137540f63d
@ -1655,6 +1655,14 @@ def OMP_interop : Directive<"interop"> {
|
||||
VersionedClause<OMPC_Use>,
|
||||
];
|
||||
}
|
||||
def OMP_dispatch : Directive<"dispatch"> {
|
||||
let allowedClauses = [
|
||||
VersionedClause<OMPC_Device>,
|
||||
VersionedClause<OMPC_IsDevicePtr>,
|
||||
VersionedClause<OMPC_NoWait>,
|
||||
VersionedClause<OMPC_Depend>
|
||||
];
|
||||
}
|
||||
def OMP_Unknown : Directive<"unknown"> {
|
||||
let isDefault = true;
|
||||
}
|
||||
|
@ -1078,6 +1078,7 @@ __OMP_TRAIT_PROPERTY(user, condition, true)
|
||||
__OMP_TRAIT_PROPERTY(user, condition, false)
|
||||
__OMP_TRAIT_PROPERTY(user, condition, unknown)
|
||||
|
||||
__OMP_TRAIT_SELECTOR_AND_PROPERTY(construct, dispatch)
|
||||
|
||||
// Note that we put isa last so that the other conditions are checked first.
|
||||
// This allows us to issue warnings wrt. isa only if we match otherwise.
|
||||
|
Loading…
Reference in New Issue
Block a user