clang 22.0.0git
CIRGenDeclOpenACC.cpp
Go to the documentation of this file.
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"
15
16using namespace clang;
17using namespace clang::CIRGen;
18
20 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Declare Construct");
21}
22
24 getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Routine Construct");
25}
26
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}
This file defines OpenACC nodes for declarative directives.
void emitOpenACCRoutine(const OpenACCRoutineDecl &d)
void emitOpenACCDeclare(const OpenACCDeclareDecl &d)
CIRGenModule & getCIRGenModule()
DiagnosticBuilder errorNYI(SourceLocation, llvm::StringRef)
Helpers to emit "not yet implemented" error diagnostics.
void emitGlobalOpenACCDecl(const clang::OpenACCConstructDecl *cd)
virtual SourceRange getSourceRange() const override LLVM_READONLY
Source range that this declaration covers.
Definition: DeclOpenACC.h:58
The JSON file list parser is used to communicate input to InstallAPI.