]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/llvm/tools/clang/include/clang/Basic/OpenMPKinds.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / llvm / tools / clang / include / clang / Basic / OpenMPKinds.h
1 //===--- OpenMPKinds.h - OpenMP enums ---------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 ///
10 /// \file
11 /// \brief Defines some OpenMP-specific enums and functions.
12 ///
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CLANG_BASIC_OPENMPKINDS_H
16 #define LLVM_CLANG_BASIC_OPENMPKINDS_H
17
18 #include "llvm/ADT/StringRef.h"
19
20 namespace clang {
21
22 /// \brief OpenMP directives.
23 enum OpenMPDirectiveKind {
24   OMPD_unknown = 0,
25 #define OPENMP_DIRECTIVE(Name) \
26   OMPD_##Name,
27 #include "clang/Basic/OpenMPKinds.def"
28   NUM_OPENMP_DIRECTIVES
29 };
30
31 OpenMPDirectiveKind getOpenMPDirectiveKind(llvm::StringRef Str);
32 const char *getOpenMPDirectiveName(OpenMPDirectiveKind Kind);
33
34 }
35
36 #endif
37