LLVM 20.0.0git
OMP.h
Go to the documentation of this file.
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"
20#include "llvm/ADT/StringRef.h"
21
22namespace llvm::omp {
25
28
30
34
35/// Create a nicer version of a function name for humans to look at.
36std::string prettifyFunctionName(StringRef FunctionName);
37
38/// Deconstruct an OpenMP kernel name into the parent function name and the line
39/// number.
40std::string deconstructOpenMPKernelName(StringRef KernelName, unsigned &LineNo);
41
42} // namespace llvm::omp
43
44#endif // LLVM_FRONTEND_OPENMP_OMP_H
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
This file defines the SmallVector class.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:587
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
Definition: OMP.h:22
bool isCombinedConstruct(Directive D)
Definition: OMP.cpp:190
std::string deconstructOpenMPKernelName(StringRef KernelName, unsigned &LineNo)
Deconstruct an OpenMP kernel name into the parent function name and the line number.
Definition: OMP.cpp:210
ArrayRef< Directive > getLeafOrCompositeConstructs(Directive D, SmallVectorImpl< Directive > &Output)
Definition: OMP.cpp:102
bool isCompositeConstruct(Directive D)
Definition: OMP.cpp:182
Directive getCompoundConstruct(ArrayRef< Directive > Parts)
Definition: OMP.cpp:129
bool isLeafConstruct(Directive D)
Definition: OMP.cpp:180
ArrayRef< Directive > getLeafConstructsOrSelf(Directive D)
Definition: OMP.cpp:91
std::string prettifyFunctionName(StringRef FunctionName)
Create a nicer version of a function name for humans to look at.
Definition: OMP.cpp:196
ArrayRef< Directive > getLeafConstructs(Directive D)
Definition: OMP.cpp:83