clang API Documentation

Defines
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.

Defines

#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, OMPC_SCHEDULE_##Name)
#define OPENMP_DEFAULT_KIND(Name)
#define OPENMP_PROC_BIND_KIND(Name)
#define OPENMP_SCHEDULE_KIND(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_TEAMS_CLAUSE(Name)

Detailed Description

This file implements the OpenMP enum and support functions.

Definition in file OpenMPKinds.cpp.


Define Documentation

#define OPENMP_ATOMIC_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_CLAUSE (   Name,
  Class 
)    .Case(#Name, OMPC_##Name)
#define OPENMP_CLAUSE (   Name,
  Class 
)
Value:
case OMPC_##Name:                                                            \
    return #Name;
#define OPENMP_DEFAULT_KIND (   Name)    .Case(#Name, OMPC_DEFAULT_##Name)
#define OPENMP_DEFAULT_KIND (   Name)
Value:
case OMPC_DEFAULT_##Name:                                                    \
    return #Name;
#define OPENMP_DIRECTIVE (   Name)    .Case(#Name, OMPD_##Name)
#define OPENMP_DIRECTIVE (   Name)
Value:
case OMPD_##Name:                                                            \
    return #Name;
#define OPENMP_DIRECTIVE_EXT (   Name,
  Str 
)    .Case(Str, OMPD_##Name)
#define OPENMP_DIRECTIVE_EXT (   Name,
  Str 
)
Value:
case OMPD_##Name:                                                            \
    return Str;
#define OPENMP_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_PARALLEL_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_PARALLEL_FOR_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_PARALLEL_FOR_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_PARALLEL_SECTIONS_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_PROC_BIND_KIND (   Name)    .Case(#Name, OMPC_PROC_BIND_##Name)
#define OPENMP_PROC_BIND_KIND (   Name)
Value:
case OMPC_PROC_BIND_##Name:                                                  \
    return #Name;
#define OPENMP_SCHEDULE_KIND (   Name)    .Case(#Name, OMPC_SCHEDULE_##Name)
#define OPENMP_SCHEDULE_KIND (   Name)
Value:
case OMPC_SCHEDULE_##Name:                                                   \
    return #Name;
#define OPENMP_SECTIONS_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_SIMD_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_SINGLE_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_TARGET_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_TASK_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;
#define OPENMP_TEAMS_CLAUSE (   Name)
Value:
case OMPC_##Name:                                                            \
    return true;