Debian Codegraph @

clang/lib/CIR/CodeGen/CIRGenStmtOpenMP.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 // Emit OpenMP Stmt nodes as CIR code.
10 //
11 //===----------------------------------------------------------------------===//
12
13 #include "CIRGenBuilder.h"
14 #include "CIRGenFunction.h"
15 #include "mlir/Dialect/OpenMP/OpenMPDialect.h"
16 #include "clang/AST/StmtOpenMP.h"
17
18 using namespace clang;
19 using namespace clang::CIRGen;
20
21 mlir::LogicalResult
22 CIRGenFunction::emitOMPScopeDirective(const OMPScopeDirective &s) {
23 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPScopeDirective");
24 return mlir::failure();
25 }
26 mlir::LogicalResult
27 CIRGenFunction::emitOMPErrorDirective(const OMPErrorDirective &s) {
28 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPErrorDirective");
29 return mlir::failure();
30 }
31 mlir::LogicalResult
32 CIRGenFunction::emitOMPParallelDirective(const OMPParallelDirective &s) {
33 mlir::LogicalResult res = mlir::success();
34 llvm::SmallVector<mlir::Type> retTy;
35 llvm::SmallVector<mlir::Value> operands;
36 mlir::Location begin = getLoc(s.getBeginLoc());
37 mlir::Location end = getLoc(s.getEndLoc());
38
39 auto parallelOp =
40 mlir::omp::ParallelOp::create(builder, begin, retTy, operands);
41 emitOpenMPClauses(parallelOp, s.clauses());
42
43 {
44 mlir::Block &block = parallelOp.getRegion().emplaceBlock();
45 mlir::OpBuilder::InsertionGuard guardCase(builder);
46 builder.setInsertionPointToEnd(&block);
47
48 LexicalScope ls{*this, begin, builder.getInsertionBlock()};
49
50 if (s.hasCancel())
51 getCIRGenModule().errorNYI(s.getBeginLoc(),
52 "OpenMP Parallel with Cancel");
53 if (s.getTaskReductionRefExpr())
54 getCIRGenModule().errorNYI(s.getBeginLoc(),
55 "OpenMP Parallel with Task Reduction");
56
57 res = emitStmt(s.getAssociatedStmt(), /*useCurrentScope=*/true);
58
59 mlir::omp::TerminatorOp::create(builder, end);
60 }
61 return res;
62 }
63
64 mlir::LogicalResult
65 CIRGenFunction::emitOMPTaskwaitDirective(const OMPTaskwaitDirective &s) {
66 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTaskwaitDirective");
67 return mlir::failure();
68 }
69 mlir::LogicalResult
70 CIRGenFunction::emitOMPTaskyieldDirective(const OMPTaskyieldDirective &s) {
71 getCIRGenModule().errorNYI(s.getSourceRange(),
72 "OpenMP OMPTaskyieldDirective");
73 return mlir::failure();
74 }
75 mlir::LogicalResult
76 CIRGenFunction::emitOMPBarrierDirective(const OMPBarrierDirective &s) {
77 mlir::omp::BarrierOp::create(builder, getLoc(s.getBeginLoc()));
78 assert(s.clauses().empty() && "omp barrier doesn't support clauses");
79 return mlir::success();
80 }
81 mlir::LogicalResult
82 CIRGenFunction::emitOMPMetaDirective(const OMPMetaDirective &s) {
83 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPMetaDirective");
84 return mlir::failure();
85 }
86 mlir::LogicalResult
87 CIRGenFunction::emitOMPCanonicalLoop(const OMPCanonicalLoop &s) {
88 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPCanonicalLoop");
89 return mlir::failure();
90 }
91 mlir::LogicalResult
92 CIRGenFunction::emitOMPSimdDirective(const OMPSimdDirective &s) {
93 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPSimdDirective");
94 return mlir::failure();
95 }
96 mlir::LogicalResult
97 CIRGenFunction::emitOMPTileDirective(const OMPTileDirective &s) {
98 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTileDirective");
99 return mlir::failure();
100 }
101 mlir::LogicalResult
102 CIRGenFunction::emitOMPUnrollDirective(const OMPUnrollDirective &s) {
103 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPUnrollDirective");
104 return mlir::failure();
105 }
106 mlir::LogicalResult
107 CIRGenFunction::emitOMPFuseDirective(const OMPFuseDirective &s) {
108 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPFuseDirective");
109 return mlir::failure();
110 }
111 mlir::LogicalResult
112 CIRGenFunction::emitOMPForDirective(const OMPForDirective &s) {
113 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPForDirective");
114 return mlir::failure();
115 }
116 mlir::LogicalResult
117 CIRGenFunction::emitOMPForSimdDirective(const OMPForSimdDirective &s) {
118 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPForSimdDirective");
119 return mlir::failure();
120 }
121 mlir::LogicalResult
122 CIRGenFunction::emitOMPSectionsDirective(const OMPSectionsDirective &s) {
123 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPSectionsDirective");
124 return mlir::failure();
125 }
126 mlir::LogicalResult
127 CIRGenFunction::emitOMPSectionDirective(const OMPSectionDirective &s) {
128 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPSectionDirective");
129 return mlir::failure();
130 }
131 mlir::LogicalResult
132 CIRGenFunction::emitOMPSingleDirective(const OMPSingleDirective &s) {
133 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPSingleDirective");
134 return mlir::failure();
135 }
136 mlir::LogicalResult
137 CIRGenFunction::emitOMPMasterDirective(const OMPMasterDirective &s) {
138 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPMasterDirective");
139 return mlir::failure();
140 }
141 mlir::LogicalResult
142 CIRGenFunction::emitOMPCriticalDirective(const OMPCriticalDirective &s) {
143 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPCriticalDirective");
144 return mlir::failure();
145 }
146 mlir::LogicalResult
147 CIRGenFunction::emitOMPParallelForDirective(const OMPParallelForDirective &s) {
148 getCIRGenModule().errorNYI(s.getSourceRange(),
149 "OpenMP OMPParallelForDirective");
150 return mlir::failure();
151 }
152 mlir::LogicalResult CIRGenFunction::emitOMPParallelForSimdDirective(
153 const OMPParallelForSimdDirective &s) {
154 getCIRGenModule().errorNYI(s.getSourceRange(),
155 "OpenMP OMPParallelForSimdDirective");
156 return mlir::failure();
157 }
158 mlir::LogicalResult CIRGenFunction::emitOMPParallelMasterDirective(
159 const OMPParallelMasterDirective &s) {
160 getCIRGenModule().errorNYI(s.getSourceRange(),
161 "OpenMP OMPParallelMasterDirective");
162 return mlir::failure();
163 }
164 mlir::LogicalResult CIRGenFunction::emitOMPParallelSectionsDirective(
165 const OMPParallelSectionsDirective &s) {
166 getCIRGenModule().errorNYI(s.getSourceRange(),
167 "OpenMP OMPParallelSectionsDirective");
168 return mlir::failure();
169 }
170 mlir::LogicalResult
171 CIRGenFunction::emitOMPTaskDirective(const OMPTaskDirective &s) {
172 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTaskDirective");
173 return mlir::failure();
174 }
175 mlir::LogicalResult
176 CIRGenFunction::emitOMPTaskgroupDirective(const OMPTaskgroupDirective &s) {
177 getCIRGenModule().errorNYI(s.getSourceRange(),
178 "OpenMP OMPTaskgroupDirective");
179 return mlir::failure();
180 }
181 mlir::LogicalResult
182 CIRGenFunction::emitOMPFlushDirective(const OMPFlushDirective &s) {
183 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPFlushDirective");
184 return mlir::failure();
185 }
186 mlir::LogicalResult
187 CIRGenFunction::emitOMPDepobjDirective(const OMPDepobjDirective &s) {
188 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPDepobjDirective");
189 return mlir::failure();
190 }
191 mlir::LogicalResult
192 CIRGenFunction::emitOMPScanDirective(const OMPScanDirective &s) {
193 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPScanDirective");
194 return mlir::failure();
195 }
196 mlir::LogicalResult
197 CIRGenFunction::emitOMPOrderedDirective(const OMPOrderedDirective &s) {
198 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPOrderedDirective");
199 return mlir::failure();
200 }
201 mlir::LogicalResult
202 CIRGenFunction::emitOMPAtomicDirective(const OMPAtomicDirective &s) {
203 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPAtomicDirective");
204 return mlir::failure();
205 }
206 mlir::LogicalResult
207 CIRGenFunction::emitOMPTargetDirective(const OMPTargetDirective &s) {
208 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTargetDirective");
209 return mlir::failure();
210 }
211 mlir::LogicalResult
212 CIRGenFunction::emitOMPTeamsDirective(const OMPTeamsDirective &s) {
213 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTeamsDirective");
214 return mlir::failure();
215 }
216 mlir::LogicalResult CIRGenFunction::emitOMPCancellationPointDirective(
217 const OMPCancellationPointDirective &s) {
218 getCIRGenModule().errorNYI(s.getSourceRange(),
219 "OpenMP OMPCancellationPointDirective");
220 return mlir::failure();
221 }
222 mlir::LogicalResult
223 CIRGenFunction::emitOMPCancelDirective(const OMPCancelDirective &s) {
224 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPCancelDirective");
225 return mlir::failure();
226 }
227 mlir::LogicalResult
228 CIRGenFunction::emitOMPTargetDataDirective(const OMPTargetDataDirective &s) {
229 getCIRGenModule().errorNYI(s.getSourceRange(),
230 "OpenMP OMPTargetDataDirective");
231 return mlir::failure();
232 }
233 mlir::LogicalResult CIRGenFunction::emitOMPTargetEnterDataDirective(
234 const OMPTargetEnterDataDirective &s) {
235 getCIRGenModule().errorNYI(s.getSourceRange(),
236 "OpenMP OMPTargetEnterDataDirective");
237 return mlir::failure();
238 }
239 mlir::LogicalResult CIRGenFunction::emitOMPTargetExitDataDirective(
240 const OMPTargetExitDataDirective &s) {
241 getCIRGenModule().errorNYI(s.getSourceRange(),
242 "OpenMP OMPTargetExitDataDirective");
243 return mlir::failure();
244 }
245 mlir::LogicalResult CIRGenFunction::emitOMPTargetParallelDirective(
246 const OMPTargetParallelDirective &s) {
247 getCIRGenModule().errorNYI(s.getSourceRange(),
248 "OpenMP OMPTargetParallelDirective");
249 return mlir::failure();
250 }
251 mlir::LogicalResult CIRGenFunction::emitOMPTargetParallelForDirective(
252 const OMPTargetParallelForDirective &s) {
253 getCIRGenModule().errorNYI(s.getSourceRange(),
254 "OpenMP OMPTargetParallelForDirective");
255 return mlir::failure();
256 }
257 mlir::LogicalResult
258 CIRGenFunction::emitOMPTaskLoopDirective(const OMPTaskLoopDirective &s) {
259 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPTaskLoopDirective");
260 return mlir::failure();
261 }
262 mlir::LogicalResult CIRGenFunction::emitOMPTaskLoopSimdDirective(
263 const OMPTaskLoopSimdDirective &s) {
264 getCIRGenModule().errorNYI(s.getSourceRange(),
265 "OpenMP OMPTaskLoopSimdDirective");
266 return mlir::failure();
267 }
268 mlir::LogicalResult CIRGenFunction::emitOMPMaskedTaskLoopDirective(
269 const OMPMaskedTaskLoopDirective &s) {
270 getCIRGenModule().errorNYI(s.getSourceRange(),
271 "OpenMP OMPMaskedTaskLoopDirective");
272 return mlir::failure();
273 }
274 mlir::LogicalResult CIRGenFunction::emitOMPMaskedTaskLoopSimdDirective(
275 const OMPMaskedTaskLoopSimdDirective &s) {
276 getCIRGenModule().errorNYI(s.getSourceRange(),
277 "OpenMP OMPMaskedTaskLoopSimdDirective");
278 return mlir::failure();
279 }
280 mlir::LogicalResult CIRGenFunction::emitOMPMasterTaskLoopDirective(
281 const OMPMasterTaskLoopDirective &s) {
282 getCIRGenModule().errorNYI(s.getSourceRange(),
283 "OpenMP OMPMasterTaskLoopDirective");
284 return mlir::failure();
285 }
286 mlir::LogicalResult CIRGenFunction::emitOMPMasterTaskLoopSimdDirective(
287 const OMPMasterTaskLoopSimdDirective &s) {
288 getCIRGenModule().errorNYI(s.getSourceRange(),
289 "OpenMP OMPMasterTaskLoopSimdDirective");
290 return mlir::failure();
291 }
292 mlir::LogicalResult CIRGenFunction::emitOMPParallelGenericLoopDirective(
293 const OMPParallelGenericLoopDirective &s) {
294 getCIRGenModule().errorNYI(s.getSourceRange(),
295 "OpenMP OMPParallelGenericLoopDirective");
296 return mlir::failure();
297 }
298 mlir::LogicalResult CIRGenFunction::emitOMPParallelMaskedDirective(
299 const OMPParallelMaskedDirective &s) {
300 getCIRGenModule().errorNYI(s.getSourceRange(),
301 "OpenMP OMPParallelMaskedDirective");
302 return mlir::failure();
303 }
304 mlir::LogicalResult CIRGenFunction::emitOMPParallelMaskedTaskLoopDirective(
305 const OMPParallelMaskedTaskLoopDirective &s) {
306 getCIRGenModule().errorNYI(s.getSourceRange(),
307 "OpenMP OMPParallelMaskedTaskLoopDirective");
308 return mlir::failure();
309 }
310 mlir::LogicalResult CIRGenFunction::emitOMPParallelMaskedTaskLoopSimdDirective(
311 const OMPParallelMaskedTaskLoopSimdDirective &s) {
312 getCIRGenModule().errorNYI(s.getSourceRange(),
313 "OpenMP OMPParallelMaskedTaskLoopSimdDirective");
314 return mlir::failure();
315 }
316 mlir::LogicalResult CIRGenFunction::emitOMPParallelMasterTaskLoopDirective(
317 const OMPParallelMasterTaskLoopDirective &s) {
318 getCIRGenModule().errorNYI(s.getSourceRange(),
319 "OpenMP OMPParallelMasterTaskLoopDirective");
320 return mlir::failure();
321 }
322 mlir::LogicalResult CIRGenFunction::emitOMPParallelMasterTaskLoopSimdDirective(
323 const OMPParallelMasterTaskLoopSimdDirective &s) {
324 getCIRGenModule().errorNYI(s.getSourceRange(),
325 "OpenMP OMPParallelMasterTaskLoopSimdDirective");
326 return mlir::failure();
327 }
328 mlir::LogicalResult
329 CIRGenFunction::emitOMPDistributeDirective(const OMPDistributeDirective &s) {
330 getCIRGenModule().errorNYI(s.getSourceRange(),
331 "OpenMP OMPDistributeDirective");
332 return mlir::failure();
333 }
334 mlir::LogicalResult CIRGenFunction::emitOMPDistributeParallelForDirective(
335 const OMPDistributeParallelForDirective &s) {
336 getCIRGenModule().errorNYI(s.getSourceRange(),
337 "OpenMP OMPDistributeParallelForDirective");
338 return mlir::failure();
339 }
340 mlir::LogicalResult CIRGenFunction::emitOMPDistributeParallelForSimdDirective(
341 const OMPDistributeParallelForSimdDirective &s) {
342 getCIRGenModule().errorNYI(s.getSourceRange(),
343 "OpenMP OMPDistributeParallelForSimdDirective");
344 return mlir::failure();
345 }
346 mlir::LogicalResult CIRGenFunction::emitOMPDistributeSimdDirective(
347 const OMPDistributeSimdDirective &s) {
348 getCIRGenModule().errorNYI(s.getSourceRange(),
349 "OpenMP OMPDistributeSimdDirective");
350 return mlir::failure();
351 }
352 mlir::LogicalResult CIRGenFunction::emitOMPTargetParallelGenericLoopDirective(
353 const OMPTargetParallelGenericLoopDirective &s) {
354 getCIRGenModule().errorNYI(s.getSourceRange(),
355 "OpenMP OMPTargetParallelGenericLoopDirective");
356 return mlir::failure();
357 }
358 mlir::LogicalResult CIRGenFunction::emitOMPTargetParallelForSimdDirective(
359 const OMPTargetParallelForSimdDirective &s) {
360 getCIRGenModule().errorNYI(s.getSourceRange(),
361 "OpenMP OMPTargetParallelForSimdDirective");
362 return mlir::failure();
363 }
364 mlir::LogicalResult
365 CIRGenFunction::emitOMPTargetSimdDirective(const OMPTargetSimdDirective &s) {
366 getCIRGenModule().errorNYI(s.getSourceRange(),
367 "OpenMP OMPTargetSimdDirective");
368 return mlir::failure();
369 }
370 mlir::LogicalResult CIRGenFunction::emitOMPTargetTeamsGenericLoopDirective(
371 const OMPTargetTeamsGenericLoopDirective &s) {
372 getCIRGenModule().errorNYI(s.getSourceRange(),
373 "OpenMP OMPTargetTeamsGenericLoopDirective");
374 return mlir::failure();
375 }
376 mlir::LogicalResult CIRGenFunction::emitOMPTargetUpdateDirective(
377 const OMPTargetUpdateDirective &s) {
378 getCIRGenModule().errorNYI(s.getSourceRange(),
379 "OpenMP OMPTargetUpdateDirective");
380 return mlir::failure();
381 }
382 mlir::LogicalResult CIRGenFunction::emitOMPTeamsDistributeDirective(
383 const OMPTeamsDistributeDirective &s) {
384 getCIRGenModule().errorNYI(s.getSourceRange(),
385 "OpenMP OMPTeamsDistributeDirective");
386 return mlir::failure();
387 }
388 mlir::LogicalResult CIRGenFunction::emitOMPTeamsDistributeSimdDirective(
389 const OMPTeamsDistributeSimdDirective &s) {
390 getCIRGenModule().errorNYI(s.getSourceRange(),
391 "OpenMP OMPTeamsDistributeSimdDirective");
392 return mlir::failure();
393 }
394 mlir::LogicalResult
395 CIRGenFunction::emitOMPTeamsDistributeParallelForSimdDirective(
396 const OMPTeamsDistributeParallelForSimdDirective &s) {
397 getCIRGenModule().errorNYI(
398 s.getSourceRange(), "OpenMP OMPTeamsDistributeParallelForSimdDirective");
399 return mlir::failure();
400 }
401 mlir::LogicalResult CIRGenFunction::emitOMPTeamsDistributeParallelForDirective(
402 const OMPTeamsDistributeParallelForDirective &s) {
403 getCIRGenModule().errorNYI(s.getSourceRange(),
404 "OpenMP OMPTeamsDistributeParallelForDirective");
405 return mlir::failure();
406 }
407 mlir::LogicalResult CIRGenFunction::emitOMPTeamsGenericLoopDirective(
408 const OMPTeamsGenericLoopDirective &s) {
409 getCIRGenModule().errorNYI(s.getSourceRange(),
410 "OpenMP OMPTeamsGenericLoopDirective");
411 return mlir::failure();
412 }
413 mlir::LogicalResult
414 CIRGenFunction::emitOMPTargetTeamsDirective(const OMPTargetTeamsDirective &s) {
415 getCIRGenModule().errorNYI(s.getSourceRange(),
416 "OpenMP OMPTargetTeamsDirective");
417 return mlir::failure();
418 }
419 mlir::LogicalResult CIRGenFunction::emitOMPTargetTeamsDistributeDirective(
420 const OMPTargetTeamsDistributeDirective &s) {
421 getCIRGenModule().errorNYI(s.getSourceRange(),
422 "OpenMP OMPTargetTeamsDistributeDirective");
423 return mlir::failure();
424 }
425 mlir::LogicalResult
426 CIRGenFunction::emitOMPTargetTeamsDistributeParallelForDirective(
427 const OMPTargetTeamsDistributeParallelForDirective &s) {
428 getCIRGenModule().errorNYI(
429 s.getSourceRange(),
430 "OpenMP OMPTargetTeamsDistributeParallelForDirective");
431 return mlir::failure();
432 }
433 mlir::LogicalResult
434 CIRGenFunction::emitOMPTargetTeamsDistributeParallelForSimdDirective(
435 const OMPTargetTeamsDistributeParallelForSimdDirective &s) {
436 getCIRGenModule().errorNYI(
437 s.getSourceRange(),
438 "OpenMP OMPTargetTeamsDistributeParallelForSimdDirective");
439 return mlir::failure();
440 }
441 mlir::LogicalResult CIRGenFunction::emitOMPTargetTeamsDistributeSimdDirective(
442 const OMPTargetTeamsDistributeSimdDirective &s) {
443 getCIRGenModule().errorNYI(s.getSourceRange(),
444 "OpenMP OMPTargetTeamsDistributeSimdDirective");
445 return mlir::failure();
446 }
447 mlir::LogicalResult
448 CIRGenFunction::emitOMPInteropDirective(const OMPInteropDirective &s) {
449 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPInteropDirective");
450 return mlir::failure();
451 }
452 mlir::LogicalResult
453 CIRGenFunction::emitOMPDispatchDirective(const OMPDispatchDirective &s) {
454 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPDispatchDirective");
455 return mlir::failure();
456 }
457 mlir::LogicalResult
458 CIRGenFunction::emitOMPGenericLoopDirective(const OMPGenericLoopDirective &s) {
459 getCIRGenModule().errorNYI(s.getSourceRange(),
460 "OpenMP OMPGenericLoopDirective");
461 return mlir::failure();
462 }
463 mlir::LogicalResult
464 CIRGenFunction::emitOMPReverseDirective(const OMPReverseDirective &s) {
465 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPReverseDirective");
466 return mlir::failure();
467 }
468 mlir::LogicalResult
469 CIRGenFunction::emitOMPInterchangeDirective(const OMPInterchangeDirective &s) {
470 getCIRGenModule().errorNYI(s.getSourceRange(),
471 "OpenMP OMPInterchangeDirective");
472 return mlir::failure();
473 }
474 mlir::LogicalResult
475 CIRGenFunction::emitOMPAssumeDirective(const OMPAssumeDirective &s) {
476 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPAssumeDirective");
477 return mlir::failure();
478 }
479 mlir::LogicalResult
480 CIRGenFunction::emitOMPMaskedDirective(const OMPMaskedDirective &s) {
481 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPMaskedDirective");
482 return mlir::failure();
483 }
484 mlir::LogicalResult
485 CIRGenFunction::emitOMPStripeDirective(const OMPStripeDirective &s) {
486 getCIRGenModule().errorNYI(s.getSourceRange(), "OpenMP OMPStripeDirective");
487 return mlir::failure();
488 }