xref: /freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/OMP.h (revision 0fca6ea1d4eea4c934cfff25ac9ee8ad6fe95583)
1 //===-- OMP.h - Core OpenMP definitions and declarations ---------- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the core set of OpenMP definitions and declarations.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_FRONTEND_OPENMP_OMP_H
14 #define LLVM_FRONTEND_OPENMP_OMP_H
15 
16 #include "llvm/Frontend/OpenMP/OMP.h.inc"
17 
18 #include "llvm/ADT/ArrayRef.h"
19 #include "llvm/ADT/SmallVector.h"
20 
21 namespace llvm::omp {
22 ArrayRef<Directive> getLeafConstructs(Directive D);
23 ArrayRef<Directive> getLeafConstructsOrSelf(Directive D);
24 
25 ArrayRef<Directive>
26 getLeafOrCompositeConstructs(Directive D, SmallVectorImpl<Directive> &Output);
27 
28 Directive getCompoundConstruct(ArrayRef<Directive> Parts);
29 
30 bool isLeafConstruct(Directive D);
31 bool isCompositeConstruct(Directive D);
32 bool isCombinedConstruct(Directive D);
33 } // namespace llvm::omp
34 
35 #endif // LLVM_FRONTEND_OPENMP_OMP_H
36