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
21namespace llvm::omp {
22ArrayRef<Directive> getLeafConstructs(Directive D);
23ArrayRef<Directive> getLeafConstructsOrSelf(Directive D);
24
25ArrayRef<Directive>
26getLeafOrCompositeConstructs(Directive D, SmallVectorImpl<Directive> &Output);
27
28Directive getCompoundConstruct(ArrayRef<Directive> Parts);
29
30bool isLeafConstruct(Directive D);
31bool isCompositeConstruct(Directive D);
32bool isCombinedConstruct(Directive D);
33} // namespace llvm::omp
34
35#endif // LLVM_FRONTEND_OPENMP_OMP_H
36

source code of llvm/include/llvm/Frontend/OpenMP/OMP.h