clang 20.0.0git
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 "llvm/Frontend/OpenMP/OMPKinds.def"
#include "clang/Basic/OpenMPKinds.def"

Go to the source code of this file.

Macros

#define OMP_DEFAULT_KIND(Enum, Name)   .Case(Name, unsigned(Enum))
 
#define OMP_PROC_BIND_KIND(Enum, Name, Value)   .Case(Name, Value)
 
#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_DOACROSS_MODIFIER(Name)   .Case(#Name, OMPC_DOACROSS_##Name)
 
#define OPENMP_LINEAR_KIND(Name)   .Case(#Name, OMPC_LINEAR_##Name)
 
#define OPENMP_MAP_KIND(Name)    .Case(#Name, static_cast<unsigned>(OMPC_MAP_##Name))
 
#define OPENMP_MAP_MODIFIER_KIND(Name)    .Case(#Name, static_cast<unsigned>(OMPC_MAP_MODIFIER_##Name))
 
#define OPENMP_MOTION_MODIFIER_KIND(Name)    .Case(#Name, static_cast<unsigned>(OMPC_MOTION_MODIFIER_##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_ATOMIC_DEFAULT_MEM_ORDER_KIND(Name)    .Case(#Name, OMPC_ATOMIC_DEFAULT_MEM_ORDER_##Name)
 
#define OPENMP_ATOMIC_FAIL_MODIFIER(Name)   .Case(#Name, OMPC_##Name)
 
#define OPENMP_DEVICE_TYPE_KIND(Name)   .Case(#Name, OMPC_DEVICE_TYPE_##Name)
 
#define OPENMP_AT_KIND(Name)   .Case(#Name, OMPC_AT_##Name)
 
#define OPENMP_SEVERITY_KIND(Name)   .Case(#Name, OMPC_SEVERITY_##Name)
 
#define OPENMP_LASTPRIVATE_KIND(Name)   .Case(#Name, OMPC_LASTPRIVATE_##Name)
 
#define OPENMP_ORDER_KIND(Name)    .Case(#Name, static_cast<unsigned>(OMPC_ORDER_##Name))
 
#define OPENMP_ORDER_MODIFIER(Name)    .Case(#Name, static_cast<unsigned>(OMPC_ORDER_MODIFIER_##Name))
 
#define OPENMP_DEPEND_KIND(Name)   .Case(#Name, OMPC_DEPEND_##Name)
 
#define OPENMP_DEVICE_MODIFIER(Name)   .Case(#Name, OMPC_DEVICE_##Name)
 
#define OPENMP_REDUCTION_MODIFIER(Name)   .Case(#Name, OMPC_REDUCTION_##Name)
 
#define OPENMP_ADJUST_ARGS_KIND(Name)   .Case(#Name, OMPC_ADJUST_ARGS_##Name)
 
#define OPENMP_BIND_KIND(Name)   .Case(#Name, OMPC_BIND_##Name)
 
#define OPENMP_GRAINSIZE_MODIFIER(Name)   .Case(#Name, OMPC_GRAINSIZE_##Name)
 
#define OPENMP_NUMTASKS_MODIFIER(Name)   .Case(#Name, OMPC_NUMTASKS_##Name)
 
#define OMP_DEFAULT_KIND(Enum, Name)
 
#define OMP_PROC_BIND_KIND(Enum, Name, Value)
 
#define OPENMP_SCHEDULE_KIND(Name)
 
#define OPENMP_SCHEDULE_MODIFIER(Name)
 
#define OPENMP_DEPEND_KIND(Name)
 
#define OPENMP_DOACROSS_MODIFIER(Name)
 
#define OPENMP_LINEAR_KIND(Name)
 
#define OPENMP_MAP_KIND(Name)
 
#define OPENMP_MAP_MODIFIER_KIND(Name)
 
#define OPENMP_MOTION_MODIFIER_KIND(Name)
 
#define OPENMP_DIST_SCHEDULE_KIND(Name)
 
#define OPENMP_DEFAULTMAP_KIND(Name)
 
#define OPENMP_DEFAULTMAP_MODIFIER(Name)
 
#define OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND(Name)
 
#define OPENMP_DEVICE_TYPE_KIND(Name)
 
#define OPENMP_AT_KIND(Name)
 
#define OPENMP_SEVERITY_KIND(Name)
 
#define OPENMP_LASTPRIVATE_KIND(Name)
 
#define OPENMP_ORDER_KIND(Name)
 
#define OPENMP_ORDER_MODIFIER(Name)
 
#define OPENMP_DEPEND_KIND(Name)
 
#define OPENMP_DEVICE_MODIFIER(Name)
 
#define OPENMP_REDUCTION_MODIFIER(Name)
 
#define OPENMP_ADJUST_ARGS_KIND(Name)
 
#define OPENMP_BIND_KIND(Name)
 
#define OPENMP_GRAINSIZE_MODIFIER(Name)
 
#define OPENMP_NUMTASKS_MODIFIER(Name)
 

Detailed Description

This file implements the OpenMP enum and support functions.

Definition in file OpenMPKinds.cpp.

Macro Definition Documentation

◆ OMP_DEFAULT_KIND [1/2]

#define OMP_DEFAULT_KIND (   Enum,
  Name 
)    .Case(Name, unsigned(Enum))

◆ OMP_DEFAULT_KIND [2/2]

#define OMP_DEFAULT_KIND (   Enum,
  Name 
)
Value:
case Enum: \
return Name;
@ Enum
The "enum" keyword introduces the elaborated-type-specifier.

◆ OMP_PROC_BIND_KIND [1/2]

#define OMP_PROC_BIND_KIND (   Enum,
  Name,
  Value 
)    .Case(Name, Value)

◆ OMP_PROC_BIND_KIND [2/2]

#define OMP_PROC_BIND_KIND (   Enum,
  Name,
  Value 
)
Value:
case Value: \
return Name;

◆ OPENMP_ADJUST_ARGS_KIND [1/2]

#define OPENMP_ADJUST_ARGS_KIND (   Name)    .Case(#Name, OMPC_ADJUST_ARGS_##Name)

◆ OPENMP_ADJUST_ARGS_KIND [2/2]

#define OPENMP_ADJUST_ARGS_KIND (   Name)
Value:
case OMPC_ADJUST_ARGS_##Name: \
return #Name;

◆ OPENMP_AT_KIND [1/2]

#define OPENMP_AT_KIND (   Name)    .Case(#Name, OMPC_AT_##Name)

◆ OPENMP_AT_KIND [2/2]

#define OPENMP_AT_KIND (   Name)
Value:
case OMPC_AT_##Name: \
return #Name;

◆ OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND [1/2]

#define OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND (   Name)     .Case(#Name, OMPC_ATOMIC_DEFAULT_MEM_ORDER_##Name)

◆ OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND [2/2]

#define OPENMP_ATOMIC_DEFAULT_MEM_ORDER_KIND (   Name)
Value:
case OMPC_ATOMIC_DEFAULT_MEM_ORDER_##Name: \
return #Name;

◆ OPENMP_ATOMIC_FAIL_MODIFIER

#define OPENMP_ATOMIC_FAIL_MODIFIER (   Name)    .Case(#Name, OMPC_##Name)

◆ OPENMP_BIND_KIND [1/2]

#define OPENMP_BIND_KIND (   Name)    .Case(#Name, OMPC_BIND_##Name)

◆ OPENMP_BIND_KIND [2/2]

#define OPENMP_BIND_KIND (   Name)
Value:
case OMPC_BIND_##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/4]

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

◆ OPENMP_DEPEND_KIND [2/4]

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

◆ OPENMP_DEPEND_KIND [3/4]

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

◆ OPENMP_DEPEND_KIND [4/4]

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

◆ OPENMP_DEVICE_MODIFIER [1/2]

#define OPENMP_DEVICE_MODIFIER (   Name)    .Case(#Name, OMPC_DEVICE_##Name)

◆ OPENMP_DEVICE_MODIFIER [2/2]

#define OPENMP_DEVICE_MODIFIER (   Name)
Value:
case OMPC_DEVICE_##Name: \
return #Name;

◆ OPENMP_DEVICE_TYPE_KIND [1/2]

#define OPENMP_DEVICE_TYPE_KIND (   Name)    .Case(#Name, OMPC_DEVICE_TYPE_##Name)

◆ OPENMP_DEVICE_TYPE_KIND [2/2]

#define OPENMP_DEVICE_TYPE_KIND (   Name)
Value:
case OMPC_DEVICE_TYPE_##Name: \
return #Name;

◆ 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_DOACROSS_MODIFIER [1/2]

#define OPENMP_DOACROSS_MODIFIER (   Name)    .Case(#Name, OMPC_DOACROSS_##Name)

◆ OPENMP_DOACROSS_MODIFIER [2/2]

#define OPENMP_DOACROSS_MODIFIER (   Name)
Value:
case OMPC_DOACROSS_##Name: \
return #Name;

◆ OPENMP_GRAINSIZE_MODIFIER [1/2]

#define OPENMP_GRAINSIZE_MODIFIER (   Name)    .Case(#Name, OMPC_GRAINSIZE_##Name)

◆ OPENMP_GRAINSIZE_MODIFIER [2/2]

#define OPENMP_GRAINSIZE_MODIFIER (   Name)
Value:
case OMPC_GRAINSIZE_##Name: \
return #Name;

◆ OPENMP_LASTPRIVATE_KIND [1/2]

#define OPENMP_LASTPRIVATE_KIND (   Name)    .Case(#Name, OMPC_LASTPRIVATE_##Name)

◆ OPENMP_LASTPRIVATE_KIND [2/2]

#define OPENMP_LASTPRIVATE_KIND (   Name)
Value:
case OMPC_LASTPRIVATE_##Name: \
return #Name;

◆ 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, static_cast<unsigned>(OMPC_MAP_##Name))

◆ OPENMP_MAP_KIND [2/2]

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

◆ OPENMP_MAP_MODIFIER_KIND [1/2]

#define OPENMP_MAP_MODIFIER_KIND (   Name)     .Case(#Name, static_cast<unsigned>(OMPC_MAP_MODIFIER_##Name))

◆ OPENMP_MAP_MODIFIER_KIND [2/2]

#define OPENMP_MAP_MODIFIER_KIND (   Name)
Value:
case OMPC_MAP_MODIFIER_##Name: \
return #Name;

◆ OPENMP_MOTION_MODIFIER_KIND [1/2]

#define OPENMP_MOTION_MODIFIER_KIND (   Name)     .Case(#Name, static_cast<unsigned>(OMPC_MOTION_MODIFIER_##Name))

◆ OPENMP_MOTION_MODIFIER_KIND [2/2]

#define OPENMP_MOTION_MODIFIER_KIND (   Name)
Value:
case OMPC_MOTION_MODIFIER_##Name: \
return #Name;

◆ OPENMP_NUMTASKS_MODIFIER [1/2]

#define OPENMP_NUMTASKS_MODIFIER (   Name)    .Case(#Name, OMPC_NUMTASKS_##Name)

◆ OPENMP_NUMTASKS_MODIFIER [2/2]

#define OPENMP_NUMTASKS_MODIFIER (   Name)
Value:
case OMPC_NUMTASKS_##Name: \
return #Name;

◆ OPENMP_ORDER_KIND [1/2]

#define OPENMP_ORDER_KIND (   Name)     .Case(#Name, static_cast<unsigned>(OMPC_ORDER_##Name))

◆ OPENMP_ORDER_KIND [2/2]

#define OPENMP_ORDER_KIND (   Name)
Value:
case OMPC_ORDER_##Name: \
return #Name;

◆ OPENMP_ORDER_MODIFIER [1/2]

#define OPENMP_ORDER_MODIFIER (   Name)     .Case(#Name, static_cast<unsigned>(OMPC_ORDER_MODIFIER_##Name))

◆ OPENMP_ORDER_MODIFIER [2/2]

#define OPENMP_ORDER_MODIFIER (   Name)
Value:
case OMPC_ORDER_MODIFIER_##Name: \
return #Name;

◆ OPENMP_REDUCTION_MODIFIER [1/2]

#define OPENMP_REDUCTION_MODIFIER (   Name)    .Case(#Name, OMPC_REDUCTION_##Name)

◆ OPENMP_REDUCTION_MODIFIER [2/2]

#define OPENMP_REDUCTION_MODIFIER (   Name)
Value:
case OMPC_REDUCTION_##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_SEVERITY_KIND [1/2]

#define OPENMP_SEVERITY_KIND (   Name)    .Case(#Name, OMPC_SEVERITY_##Name)

◆ OPENMP_SEVERITY_KIND [2/2]

#define OPENMP_SEVERITY_KIND (   Name)
Value:
case OMPC_SEVERITY_##Name: \
return #Name;