clang  14.0.0git
Macros
OpenMPKinds.cpp File Reference
#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"
Include dependency graph for OpenMPKinds.cpp:

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_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_DEVICE_TYPE_KIND(Name)   .Case(#Name, OMPC_DEVICE_TYPE_##Name)
 
#define OPENMP_LASTPRIVATE_KIND(Name)   .Case(#Name, OMPC_LASTPRIVATE_##Name)
 
#define OPENMP_ORDER_KIND(Name)   .Case(#Name, OMPC_ORDER_##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 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_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_LASTPRIVATE_KIND(Name)
 
#define OPENMP_ORDER_KIND(Name)
 
#define OPENMP_DEPEND_KIND(Name)
 
#define OPENMP_DEVICE_MODIFIER(Name)
 
#define OPENMP_REDUCTION_MODIFIER(Name)
 
#define OPENMP_ADJUST_ARGS_KIND(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;

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

#define OPENMP_ORDER_KIND (   Name)    .Case(#Name, OMPC_ORDER_##Name)

◆ OPENMP_ORDER_KIND [2/2]

#define OPENMP_ORDER_KIND (   Name)
Value:
case OMPC_ORDER_##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;
Value
Value
Definition: UninitializedValues.cpp:102
clang::api_notes::SwiftNewTypeKind::Enum
@ Enum