clang API Documentation

Namespaces | Defines | Enumerations | Functions
OpenMPKinds.h File Reference

Defines some OpenMP-specific enums and functions. More...

#include "llvm/ADT/StringRef.h"
#include "clang/Basic/OpenMPKinds.def"
Include dependency graph for OpenMPKinds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  clang

Defines

#define OPENMP_DIRECTIVE(Name)   OMPD_##Name,
#define OPENMP_DIRECTIVE_EXT(Name, Str)   OMPD_##Name,
#define OPENMP_CLAUSE(Name, Class)   OMPC_##Name,
#define OPENMP_DEFAULT_KIND(Name)   OMPC_DEFAULT_##Name,
#define OPENMP_PROC_BIND_KIND(Name)   OMPC_PROC_BIND_##Name,
#define OPENMP_SCHEDULE_KIND(Name)   OMPC_SCHEDULE_##Name,

Enumerations

enum  clang::OpenMPDirectiveKind
 OpenMP directives. More...
enum  clang::OpenMPClauseKind
 OpenMP clauses. More...
enum  clang::OpenMPDefaultClauseKind
 OpenMP attributes for 'default' clause. More...
enum  clang::OpenMPProcBindClauseKind
 OpenMP attributes for 'proc_bind' clause. More...
enum  clang::OpenMPScheduleClauseKind
 OpenMP attributes for 'schedule' clause. More...

Functions

OpenMPDirectiveKind clang::getOpenMPDirectiveKind (llvm::StringRef Str)
const char * clang::getOpenMPDirectiveName (OpenMPDirectiveKind Kind)
OpenMPClauseKind clang::getOpenMPClauseKind (llvm::StringRef Str)
const char * clang::getOpenMPClauseName (OpenMPClauseKind Kind)
unsigned clang::getOpenMPSimpleClauseType (OpenMPClauseKind Kind, llvm::StringRef Str)
const char * clang::getOpenMPSimpleClauseTypeName (OpenMPClauseKind Kind, unsigned Type)
bool clang::isAllowedClauseForDirective (OpenMPDirectiveKind DKind, OpenMPClauseKind CKind)
bool clang::isOpenMPLoopDirective (OpenMPDirectiveKind DKind)
 Checks if the specified directive is a directive with an associated loop construct.
bool clang::isOpenMPWorksharingDirective (OpenMPDirectiveKind DKind)
 Checks if the specified directive is a worksharing directive.
bool clang::isOpenMPParallelDirective (OpenMPDirectiveKind DKind)
 Checks if the specified directive is a parallel-kind directive.
bool clang::isOpenMPTeamsDirective (OpenMPDirectiveKind DKind)
 Checks if the specified directive is a teams-kind directive.
bool clang::isOpenMPSimdDirective (OpenMPDirectiveKind DKind)
 Checks if the specified directive is a simd directive.
bool clang::isOpenMPPrivate (OpenMPClauseKind Kind)
 Checks if the specified clause is one of private clauses like 'private', 'firstprivate', 'reduction' etc..
bool clang::isOpenMPThreadPrivate (OpenMPClauseKind Kind)
 Checks if the specified clause is one of threadprivate clauses like 'threadprivate', 'copyin' or 'copyprivate'.

Detailed Description

Defines some OpenMP-specific enums and functions.

Definition in file OpenMPKinds.h.


Define Documentation

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

Definition at line 34 of file OpenMPKinds.h.

#define OPENMP_DEFAULT_KIND (   Name)    OMPC_DEFAULT_##Name,

Definition at line 43 of file OpenMPKinds.h.

#define OPENMP_DIRECTIVE (   Name)    OMPD_##Name,

Definition at line 24 of file OpenMPKinds.h.

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

Definition at line 26 of file OpenMPKinds.h.

#define OPENMP_PROC_BIND_KIND (   Name)    OMPC_PROC_BIND_##Name,

Definition at line 51 of file OpenMPKinds.h.

#define OPENMP_SCHEDULE_KIND (   Name)    OMPC_SCHEDULE_##Name,

Definition at line 59 of file OpenMPKinds.h.