Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp
213799 views
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/DeclOpenACC.h"
15
16
using namespace clang;
17
using namespace clang::CIRGen;
18
19
void CIRGenFunction::emitOpenACCDeclare(const OpenACCDeclareDecl &d) {
20
getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Declare Construct");
21
}
22
23
void CIRGenFunction::emitOpenACCRoutine(const OpenACCRoutineDecl &d) {
24
getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Routine Construct");
25
}
26
27
void CIRGenModule::emitGlobalOpenACCDecl(const OpenACCConstructDecl *d) {
28
if (isa<OpenACCRoutineDecl>(d))
29
errorNYI(d->getSourceRange(), "OpenACC Routine Construct");
30
else if (isa<OpenACCDeclareDecl>(d))
31
errorNYI(d->getSourceRange(), "OpenACC Declare Construct");
32
else
33
llvm_unreachable("unknown OpenACC declaration kind?");
34
}
35
36