clang  6.0.0svn
Macros
OpenMPKinds.cpp File Reference

This file implements the OpenMP enum and support functions. More...

#include "clang/Basic/OpenMPKinds.h"
#include "clang/Basic/IdentifierTable.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include <cassert>
#include "clang/Basic/OpenMPKinds.def"
Include dependency graph for OpenMPKinds.cpp:

Go to the source code of this file.

Macros

#define OPENMP_DIRECTIVE(Name)   .Case(#Name, OMPD_##Name)
 
#define OPENMP_DIRECTIVE_EXT(Name, Str)   .Case(Str, OMPD_##Name)
 
#define OPENMP_DIRECTIVE(Name)
 
#define OPENMP_DIRECTIVE_EXT(Name, Str)
 
#define OPENMP_CLAUSE(Name, Class)   .Case(#Name, OMPC_##Name)
 
#define OPENMP_CLAUSE(Name, Class)
 
#define OPENMP_DEFAULT_KIND(Name)   .Case(#Name, OMPC_DEFAULT_##Name)
 
#define OPENMP_PROC_BIND_KIND(Name)   .Case(#Name, OMPC_PROC_BIND_##Name)
 
#define OPENMP_SCHEDULE_KIND(Name)   .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_##Name))
 
#define OPENMP_SCHEDULE_MODIFIER(Name)   .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_MODIFIER_##Name))
 
#define OPENMP_DEPEND_KIND(Name)   .Case(#Name, OMPC_DEPEND_##Name)
 
#define OPENMP_LINEAR_KIND(Name)   .Case(#Name, OMPC_LINEAR_##Name)
 
#define OPENMP_MAP_KIND(Name)   .Case(#Name, OMPC_MAP_##Name)
 
#define OPENMP_DIST_SCHEDULE_KIND(Name)   .Case(#Name, OMPC_DIST_SCHEDULE_##Name)
 
#define OPENMP_DEFAULTMAP_KIND(Name)   .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_##Name))
 
#define OPENMP_DEFAULTMAP_MODIFIER(Name)   .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_MODIFIER_##Name))
 
#define OPENMP_DEFAULT_KIND(Name)
 
#define OPENMP_PROC_BIND_KIND(Name)
 
#define OPENMP_SCHEDULE_KIND(Name)
 
#define OPENMP_SCHEDULE_MODIFIER(Name)
 
#define OPENMP_DEPEND_KIND(Name)
 
#define OPENMP_LINEAR_KIND(Name)
 
#define OPENMP_MAP_KIND(Name)
 
#define OPENMP_DIST_SCHEDULE_KIND(Name)
 
#define OPENMP_DEFAULTMAP_KIND(Name)
 
#define OPENMP_DEFAULTMAP_MODIFIER(Name)
 
#define OPENMP_PARALLEL_CLAUSE(Name)
 
#define OPENMP_SIMD_CLAUSE(Name)
 
#define OPENMP_FOR_CLAUSE(Name)
 
#define OPENMP_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_SECTIONS_CLAUSE(Name)
 
#define OPENMP_SINGLE_CLAUSE(Name)
 
#define OPENMP_PARALLEL_FOR_CLAUSE(Name)
 
#define OPENMP_PARALLEL_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_PARALLEL_SECTIONS_CLAUSE(Name)
 
#define OPENMP_TASK_CLAUSE(Name)
 
#define OPENMP_ATOMIC_CLAUSE(Name)
 
#define OPENMP_TARGET_CLAUSE(Name)
 
#define OPENMP_TARGET_DATA_CLAUSE(Name)
 
#define OPENMP_TARGET_ENTER_DATA_CLAUSE(Name)
 
#define OPENMP_TARGET_EXIT_DATA_CLAUSE(Name)
 
#define OPENMP_TARGET_PARALLEL_CLAUSE(Name)
 
#define OPENMP_TARGET_PARALLEL_FOR_CLAUSE(Name)
 
#define OPENMP_TARGET_UPDATE_CLAUSE(Name)
 
#define OPENMP_TEAMS_CLAUSE(Name)
 
#define OPENMP_CANCEL_CLAUSE(Name)
 
#define OPENMP_ORDERED_CLAUSE(Name)
 
#define OPENMP_TASKLOOP_CLAUSE(Name)
 
#define OPENMP_TASKLOOP_SIMD_CLAUSE(Name)
 
#define OPENMP_CRITICAL_CLAUSE(Name)
 
#define OPENMP_DISTRIBUTE_CLAUSE(Name)
 
#define OPENMP_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name)
 
#define OPENMP_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_DISTRIBUTE_SIMD_CLAUSE(Name)
 
#define OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_TARGET_SIMD_CLAUSE(Name)
 
#define OPENMP_TEAMS_DISTRIBUTE_CLAUSE(Name)
 
#define OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE(Name)
 
#define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name)
 
#define OPENMP_TARGET_TEAMS_CLAUSE(Name)
 
#define OPENMP_TARGET_TEAMS_DISTRIBUTE_CLAUSE(Name)
 
#define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE(Name)
 
#define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE(Name)
 
#define OPENMP_TARGET_TEAMS_DISTRIBUTE_SIMD_CLAUSE(Name)
 
#define OPENMP_TASKGROUP_CLAUSE(Name)
 

Detailed Description

This file implements the OpenMP enum and support functions.

Definition in file OpenMPKinds.cpp.

Macro Definition Documentation

◆ OPENMP_ATOMIC_CLAUSE

#define OPENMP_ATOMIC_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_CANCEL_CLAUSE

#define OPENMP_CANCEL_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_CLAUSE [1/2]

#define OPENMP_CLAUSE (   Name,
  Class 
)    .Case(#Name, OMPC_##Name)

◆ OPENMP_CLAUSE [2/2]

#define OPENMP_CLAUSE (   Name,
  Class 
)
Value:
case OMPC_##Name: \
return #Name;

◆ OPENMP_CRITICAL_CLAUSE

#define OPENMP_CRITICAL_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_DEFAULT_KIND [1/2]

#define OPENMP_DEFAULT_KIND (   Name)    .Case(#Name, OMPC_DEFAULT_##Name)

◆ OPENMP_DEFAULT_KIND [2/2]

#define OPENMP_DEFAULT_KIND (   Name)
Value:
case OMPC_DEFAULT_##Name: \
return #Name;

◆ OPENMP_DEFAULTMAP_KIND [1/2]

#define OPENMP_DEFAULTMAP_KIND (   Name)    .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_##Name))

◆ OPENMP_DEFAULTMAP_KIND [2/2]

#define OPENMP_DEFAULTMAP_KIND (   Name)
Value:
case OMPC_DEFAULTMAP_##Name: \
return #Name;

◆ OPENMP_DEFAULTMAP_MODIFIER [1/2]

#define OPENMP_DEFAULTMAP_MODIFIER (   Name)    .Case(#Name, static_cast<unsigned>(OMPC_DEFAULTMAP_MODIFIER_##Name))

◆ OPENMP_DEFAULTMAP_MODIFIER [2/2]

#define OPENMP_DEFAULTMAP_MODIFIER (   Name)
Value:
case OMPC_DEFAULTMAP_MODIFIER_##Name: \
return #Name;

◆ OPENMP_DEPEND_KIND [1/2]

#define OPENMP_DEPEND_KIND (   Name)    .Case(#Name, OMPC_DEPEND_##Name)

◆ OPENMP_DEPEND_KIND [2/2]

#define OPENMP_DEPEND_KIND (   Name)
Value:
case OMPC_DEPEND_##Name: \
return #Name;

◆ OPENMP_DIRECTIVE [1/2]

#define OPENMP_DIRECTIVE (   Name)    .Case(#Name, OMPD_##Name)

◆ OPENMP_DIRECTIVE [2/2]

#define OPENMP_DIRECTIVE (   Name)
Value:
case OMPD_##Name: \
return #Name;

◆ OPENMP_DIRECTIVE_EXT [1/2]

#define OPENMP_DIRECTIVE_EXT (   Name,
  Str 
)    .Case(Str, OMPD_##Name)

◆ OPENMP_DIRECTIVE_EXT [2/2]

#define OPENMP_DIRECTIVE_EXT (   Name,
  Str 
)
Value:
case OMPD_##Name: \
return Str;

◆ OPENMP_DIST_SCHEDULE_KIND [1/2]

#define OPENMP_DIST_SCHEDULE_KIND (   Name)    .Case(#Name, OMPC_DIST_SCHEDULE_##Name)

◆ OPENMP_DIST_SCHEDULE_KIND [2/2]

#define OPENMP_DIST_SCHEDULE_KIND (   Name)
Value:
case OMPC_DIST_SCHEDULE_##Name: \
return #Name;

◆ OPENMP_DISTRIBUTE_CLAUSE

#define OPENMP_DISTRIBUTE_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_DISTRIBUTE_PARALLEL_FOR_CLAUSE

#define OPENMP_DISTRIBUTE_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE

#define OPENMP_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_DISTRIBUTE_SIMD_CLAUSE

#define OPENMP_DISTRIBUTE_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_FOR_CLAUSE

#define OPENMP_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_FOR_SIMD_CLAUSE

#define OPENMP_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_LINEAR_KIND [1/2]

#define OPENMP_LINEAR_KIND (   Name)    .Case(#Name, OMPC_LINEAR_##Name)

◆ OPENMP_LINEAR_KIND [2/2]

#define OPENMP_LINEAR_KIND (   Name)
Value:
case OMPC_LINEAR_##Name: \
return #Name;

◆ OPENMP_MAP_KIND [1/2]

#define OPENMP_MAP_KIND (   Name)    .Case(#Name, OMPC_MAP_##Name)

◆ OPENMP_MAP_KIND [2/2]

#define OPENMP_MAP_KIND (   Name)
Value:
case OMPC_MAP_##Name: \
return #Name;

◆ OPENMP_ORDERED_CLAUSE

#define OPENMP_ORDERED_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_PARALLEL_CLAUSE

#define OPENMP_PARALLEL_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_PARALLEL_FOR_CLAUSE

#define OPENMP_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_PARALLEL_FOR_SIMD_CLAUSE

#define OPENMP_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_PARALLEL_SECTIONS_CLAUSE

#define OPENMP_PARALLEL_SECTIONS_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_PROC_BIND_KIND [1/2]

#define OPENMP_PROC_BIND_KIND (   Name)    .Case(#Name, OMPC_PROC_BIND_##Name)

◆ OPENMP_PROC_BIND_KIND [2/2]

#define OPENMP_PROC_BIND_KIND (   Name)
Value:
case OMPC_PROC_BIND_##Name: \
return #Name;

◆ OPENMP_SCHEDULE_KIND [1/2]

#define OPENMP_SCHEDULE_KIND (   Name)    .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_##Name))

◆ OPENMP_SCHEDULE_KIND [2/2]

#define OPENMP_SCHEDULE_KIND (   Name)
Value:
case OMPC_SCHEDULE_##Name: \
return #Name;

◆ OPENMP_SCHEDULE_MODIFIER [1/2]

#define OPENMP_SCHEDULE_MODIFIER (   Name)    .Case(#Name, static_cast<unsigned>(OMPC_SCHEDULE_MODIFIER_##Name))

◆ OPENMP_SCHEDULE_MODIFIER [2/2]

#define OPENMP_SCHEDULE_MODIFIER (   Name)
Value:
case OMPC_SCHEDULE_MODIFIER_##Name: \
return #Name;

◆ OPENMP_SECTIONS_CLAUSE

#define OPENMP_SECTIONS_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_SIMD_CLAUSE

#define OPENMP_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_SINGLE_CLAUSE

#define OPENMP_SINGLE_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_CLAUSE

#define OPENMP_TARGET_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_DATA_CLAUSE

#define OPENMP_TARGET_DATA_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_ENTER_DATA_CLAUSE

#define OPENMP_TARGET_ENTER_DATA_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_EXIT_DATA_CLAUSE

#define OPENMP_TARGET_EXIT_DATA_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_PARALLEL_CLAUSE

#define OPENMP_TARGET_PARALLEL_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_PARALLEL_FOR_CLAUSE

#define OPENMP_TARGET_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE

#define OPENMP_TARGET_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_SIMD_CLAUSE

#define OPENMP_TARGET_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_TEAMS_CLAUSE

#define OPENMP_TARGET_TEAMS_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_TEAMS_DISTRIBUTE_CLAUSE

#define OPENMP_TARGET_TEAMS_DISTRIBUTE_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE

#define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE

#define OPENMP_TARGET_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_TEAMS_DISTRIBUTE_SIMD_CLAUSE

#define OPENMP_TARGET_TEAMS_DISTRIBUTE_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TARGET_UPDATE_CLAUSE

#define OPENMP_TARGET_UPDATE_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TASK_CLAUSE

#define OPENMP_TASK_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TASKGROUP_CLAUSE

#define OPENMP_TASKGROUP_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TASKLOOP_CLAUSE

#define OPENMP_TASKLOOP_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TASKLOOP_SIMD_CLAUSE

#define OPENMP_TASKLOOP_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TEAMS_CLAUSE

#define OPENMP_TEAMS_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TEAMS_DISTRIBUTE_CLAUSE

#define OPENMP_TEAMS_DISTRIBUTE_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE

#define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE

#define OPENMP_TEAMS_DISTRIBUTE_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;

◆ OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE

#define OPENMP_TEAMS_DISTRIBUTE_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name: \
return true;