diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Frontend/OpenMP/OMP.td | 91 |
1 files changed, 28 insertions, 63 deletions
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMP.td b/llvm/include/llvm/Frontend/OpenMP/OMP.td index 68f7eca..c67b54a 100644 --- a/llvm/include/llvm/Frontend/OpenMP/OMP.td +++ b/llvm/include/llvm/Frontend/OpenMP/OMP.td @@ -448,10 +448,6 @@ def OMPC_Doacross : Clause<"doacross"> { let clangClass = "OMPDoacrossClause"; } -def OMPC_OMPX_Attribute : Clause<"ompx_attribute"> { - let clangClass = "OMPXAttributeClause"; -} - //===----------------------------------------------------------------------===// // Definition of OpenMP directives //===----------------------------------------------------------------------===// @@ -464,8 +460,7 @@ def OMP_Parallel : Directive<"parallel"> { VersionedClause<OMPC_Shared>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Copyin>, - VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Allocate> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Default>, @@ -650,8 +645,7 @@ def OMP_Target : Directive<"target"> { VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_InReduction, 50>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Device>, @@ -667,8 +661,7 @@ def OMP_Teams : Directive<"teams"> { VersionedClause<OMPC_FirstPrivate>, VersionedClause<OMPC_Shared>, VersionedClause<OMPC_Reduction>, - VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Allocate> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Default>, @@ -751,8 +744,7 @@ def OMP_TargetParallel : Directive<"target parallel"> { VersionedClause<OMPC_IsDevicePtr>, VersionedClause<OMPC_HasDeviceAddr, 51>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_DefaultMap>, @@ -787,8 +779,7 @@ def OMP_TargetParallelFor : Directive<"target parallel for"> { VersionedClause<OMPC_HasDeviceAddr, 51>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_OMPX_DynCGroupMem>, @@ -853,8 +844,7 @@ def OMP_ParallelFor : Directive<"parallel for"> { VersionedClause<OMPC_Ordered>, VersionedClause<OMPC_Linear>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_ParallelDo : Directive<"parallel do"> { @@ -899,8 +889,7 @@ def OMP_ParallelForSimd : Directive<"parallel for simd"> { VersionedClause<OMPC_Ordered>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NonTemporal, 50>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_ParallelDoSimd : Directive<"parallel do simd"> { @@ -940,8 +929,7 @@ def OMP_ParallelMaster : Directive<"parallel master"> { VersionedClause<OMPC_Copyin>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_ProcBind>, - VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Allocate> ]; } def OMP_ParallelMasked : Directive<"parallel masked"> { @@ -956,8 +944,7 @@ def OMP_ParallelMasked : Directive<"parallel masked"> { VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_ProcBind>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_Filter>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Filter> ]; } def OMP_ParallelSections : Directive<"parallel sections"> { @@ -971,8 +958,7 @@ def OMP_ParallelSections : Directive<"parallel sections"> { VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Copyin>, VersionedClause<OMPC_LastPrivate>, - VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Allocate> ]; let allowedOnceClauses = [ VersionedClause<OMPC_NumThreads> @@ -1141,8 +1127,7 @@ def OMP_DistributeParallelFor : Directive<"distribute parallel for"> { VersionedClause<OMPC_Copyin>, VersionedClause<OMPC_Schedule>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_DistributeParallelDo : Directive<"distribute parallel do"> { @@ -1189,8 +1174,7 @@ def OMP_DistributeParallelForSimd : Directive<"distribute parallel for simd"> { VersionedClause<OMPC_SimdLen>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NonTemporal, 50>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_DistributeParallelDoSimd : Directive<"distribute parallel do simd"> { @@ -1272,8 +1256,7 @@ def OMP_TargetParallelForSimd : Directive<"target parallel for simd"> { VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NonTemporal, 50>, VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_OMPX_DynCGroupMem>, @@ -1326,8 +1309,7 @@ def OMP_TargetSimd : Directive<"target simd"> { VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Collapse>, @@ -1355,8 +1337,7 @@ def OMP_TeamsDistribute : Directive<"teams distribute"> { VersionedClause<OMPC_LastPrivate>, VersionedClause<OMPC_Collapse>, VersionedClause<OMPC_DistSchedule>, - VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Allocate> ]; } def OMP_TeamsDistributeSimd : Directive<"teams distribute simd"> { @@ -1369,8 +1350,7 @@ def OMP_TeamsDistributeSimd : Directive<"teams distribute simd"> { VersionedClause<OMPC_NonTemporal, 50>, VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, - VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Shared> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Collapse>, @@ -1408,8 +1388,7 @@ def OMP_TeamsDistributeParallelForSimd : VersionedClause<OMPC_ThreadLimit>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NonTemporal, 50>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_TeamsDistributeParallelDoSimd : @@ -1459,8 +1438,7 @@ def OMP_TeamsDistributeParallelFor : VersionedClause<OMPC_ThreadLimit>, VersionedClause<OMPC_Copyin>, VersionedClause<OMPC_Allocate>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_TeamsDistributeParallelDo : @@ -1501,8 +1479,7 @@ def OMP_TargetTeams : Directive<"target teams"> { VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Shared> ]; let allowedOnceClauses = [ @@ -1528,8 +1505,7 @@ def OMP_TargetTeamsDistribute : Directive<"target teams distribute"> { VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_UsesAllocators, 50>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_LastPrivate>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_LastPrivate> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Device>, @@ -1570,8 +1546,7 @@ def OMP_TargetTeamsDistributeParallelFor : VersionedClause<OMPC_Schedule>, VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_OMPX_DynCGroupMem>, @@ -1642,8 +1617,7 @@ def OMP_TargetTeamsDistributeParallelForSimd : VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NonTemporal, 50>, VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_OMPX_DynCGroupMem>, @@ -1704,8 +1678,7 @@ def OMP_TargetTeamsDistributeSimd : VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Device>, @@ -1800,8 +1773,7 @@ def OMP_ParallelMasterTaskloop : VersionedClause<OMPC_Allocate>, VersionedClause<OMPC_NumThreads>, VersionedClause<OMPC_ProcBind>, - VersionedClause<OMPC_Copyin>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Copyin> ]; } def OMP_ParallelMaskedTaskloop : @@ -1826,8 +1798,7 @@ def OMP_ParallelMaskedTaskloop : VersionedClause<OMPC_NumThreads>, VersionedClause<OMPC_ProcBind>, VersionedClause<OMPC_Copyin>, - VersionedClause<OMPC_Filter>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Filter> ]; } def OMP_MasterTaskloopSimd : Directive<"master taskloop simd"> { @@ -1912,8 +1883,7 @@ def OMP_ParallelMasterTaskloopSimd : VersionedClause<OMPC_SafeLen>, VersionedClause<OMPC_SimdLen>, VersionedClause<OMPC_NonTemporal, 50>, - VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Order, 50> ]; } def OMP_ParallelMaskedTaskloopSimd : @@ -1944,8 +1914,7 @@ def OMP_ParallelMaskedTaskloopSimd : VersionedClause<OMPC_SimdLen>, VersionedClause<OMPC_NonTemporal, 50>, VersionedClause<OMPC_Order, 50>, - VersionedClause<OMPC_Filter>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_Filter> ]; } def OMP_Depobj : Directive<"depobj"> { @@ -2052,7 +2021,6 @@ def OMP_teams_loop : Directive<"teams loop"> { VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_OMPX_Attribute>, ]; let allowedOnceClauses = [ VersionedClause<OMPC_Bind, 50>, @@ -2077,8 +2045,7 @@ def OMP_target_teams_loop : Directive<"target teams loop"> { VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, + VersionedClause<OMPC_UsesAllocators, 50> ]; let allowedOnceClauses = [ VersionedClause<OMPC_Bind, 50>, @@ -2101,7 +2068,6 @@ def OMP_parallel_loop : Directive<"parallel loop"> { VersionedClause<OMPC_Private>, VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, - VersionedClause<OMPC_OMPX_Attribute>, ]; let allowedOnceClauses = [ VersionedClause<OMPC_Bind, 50>, @@ -2128,7 +2094,6 @@ def OMP_target_parallel_loop : Directive<"target parallel loop"> { VersionedClause<OMPC_Reduction>, VersionedClause<OMPC_Shared>, VersionedClause<OMPC_UsesAllocators, 50>, - VersionedClause<OMPC_OMPX_Attribute>, ]; let allowedOnceClauses = [ VersionedClause<OMPC_Bind, 50>, |