Path: blob/main/contrib/llvm-project/clang/lib/CIR/CodeGen/CIRGenDeclOpenACC.cpp
213799 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This contains code to emit Decl nodes as CIR code.9//10//===----------------------------------------------------------------------===//1112#include "CIRGenFunction.h"13#include "clang/AST/DeclOpenACC.h"1415using namespace clang;16using namespace clang::CIRGen;1718void CIRGenFunction::emitOpenACCDeclare(const OpenACCDeclareDecl &d) {19getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Declare Construct");20}2122void CIRGenFunction::emitOpenACCRoutine(const OpenACCRoutineDecl &d) {23getCIRGenModule().errorNYI(d.getSourceRange(), "OpenACC Routine Construct");24}2526void CIRGenModule::emitGlobalOpenACCDecl(const OpenACCConstructDecl *d) {27if (isa<OpenACCRoutineDecl>(d))28errorNYI(d->getSourceRange(), "OpenACC Routine Construct");29else if (isa<OpenACCDeclareDecl>(d))30errorNYI(d->getSourceRange(), "OpenACC Declare Construct");31else32llvm_unreachable("unknown OpenACC declaration kind?");33}343536