Debian Codegraph @

clang/lib/CIR/CodeGen/CIRGenDeclOpenMP.cpp

raw
1 //===----------------------------------------------------------------------===//
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 contains code to emit Decl nodes as CIR code.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "CIRGenFunction.h"
14 #include "clang/AST/DeclOpenMP.h"
15
16 using namespace clang;
17 using namespace clang::CIRGen;
18
19 void CIRGenModule::emitOMPThreadPrivateDecl(const OMPThreadPrivateDecl *d) {
20 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
21 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
22 // if this decl requires we differentiate those, we probably need to split
23 // this function into multiples.
24 errorNYI(d->getSourceRange(), "OpenMP OMPThreadPrivateDecl");
25 }
26
27 void CIRGenFunction::emitOMPThreadPrivateDecl(const OMPThreadPrivateDecl &d) {
28 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
29 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
30 // if this decl requires we differentiate those, we probably need to split
31 // this function into multiples.
32 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPThreadPrivateDecl");
33 }
34
35 void CIRGenModule::emitOMPGroupPrivateDecl(const OMPGroupPrivateDecl *d) {
36 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
37 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
38 // if this decl requires we differentiate those, we probably need to split
39 // this function into multiples.
40 errorNYI(d->getSourceRange(), "OpenMP OMPGroupPrivateDecl");
41 }
42
43 void CIRGenFunction::emitOMPGroupPrivateDecl(const OMPGroupPrivateDecl &d) {
44 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
45 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
46 // if this decl requires we differentiate those, we probably need to split
47 // this function into multiples.
48 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPGroupPrivateDecl");
49 }
50
51 void CIRGenModule::emitOMPCapturedExpr(const OMPCapturedExprDecl *d) {
52 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
53 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
54 // if this decl requires we differentiate those, we probably need to split
55 // this function into multiples.
56 errorNYI(d->getSourceRange(), "OpenMP OMPCapturedExpr");
57 }
58
59 void CIRGenFunction::emitOMPCapturedExpr(const OMPCapturedExprDecl &d) {
60 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
61 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
62 // if this decl requires we differentiate those, we probably need to split
63 // this function into multiples.
64 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPCapturedExpr");
65 }
66
67 void CIRGenModule::emitOMPAllocateDecl(const OMPAllocateDecl *d) {
68 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
69 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
70 // if this decl requires we differentiate those, we probably need to split
71 // this function into multiples.
72 errorNYI(d->getSourceRange(), "OpenMP OMPAllocateDecl");
73 }
74
75 void CIRGenFunction::emitOMPAllocateDecl(const OMPAllocateDecl &d) {
76 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
77 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
78 // if this decl requires we differentiate those, we probably need to split
79 // this function into multiples.
80 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPAllocateDecl");
81 }
82
83 void CIRGenModule::emitOMPDeclareReduction(const OMPDeclareReductionDecl *d) {
84 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
85 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
86 // if this decl requires we differentiate those, we probably need to split
87 // this function into multiples.
88 errorNYI(d->getSourceRange(), "OpenMP OMPDeclareReduction");
89 }
90
91 void CIRGenFunction::emitOMPDeclareReduction(const OMPDeclareReductionDecl &d) {
92 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
93 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
94 // if this decl requires we differentiate those, we probably need to split
95 // this function into multiples.
96 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPDeclareReduction");
97 }
98
99 void CIRGenModule::emitOMPDeclareMapper(const OMPDeclareMapperDecl *d) {
100 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
101 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
102 // if this decl requires we differentiate those, we probably need to split
103 // this function into multiples.
104 errorNYI(d->getSourceRange(), "OpenMP OMPDeclareMapper");
105 }
106
107 void CIRGenFunction::emitOMPDeclareMapper(const OMPDeclareMapperDecl &d) {
108 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
109 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
110 // if this decl requires we differentiate those, we probably need to split
111 // this function into multiples.
112 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPDeclareMapper");
113 }
114
115 void CIRGenModule::emitOMPRequiresDecl(const OMPRequiresDecl *d) {
116 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
117 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
118 // if this decl requires we differentiate those, we probably need to split
119 // this function into multiples.
120 errorNYI(d->getSourceRange(), "OpenMP OMPRequiresDecl");
121 }
122
123 void CIRGenFunction::emitOMPRequiresDecl(const OMPRequiresDecl &d) {
124 // TODO(OpenMP): We don't properly differentiate between 'emitDecl' and
125 // 'emitGlobal' and 'emitTopLevelDecl' in CIRGenDecl.cpp/CIRGenModule.cpp, so
126 // if this decl requires we differentiate those, we probably need to split
127 // this function into multiples.
128 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenMP OMPRequiresDecl");
129 }