9#ifndef LLVM_CLANG_LIB_CIR_CODEGEN_CIRGENOPENMPRUNTIME_H
10#define LLVM_CLANG_LIB_CIR_CODEGEN_CIRGENOPENMPRUNTIME_H
16#include "llvm/ADT/DenseSet.h"
27 llvm::DenseSet<CanonicalDeclPtr<const Decl>> alreadyEmittedTargetDecls;
This file defines OpenMP nodes for declarative directives.
This file defines OpenMP AST classes for executable directives and clauses.
This class organizes the cross-function state that is used while generating CIR code.
void emitDeclareTargetFunction(const FunctionDecl *fd, cir::FuncOp funcOp)
If the function has an OMPDeclareTargetDeclAttr, set the corresponding omp.declare_target attribute o...
CIRGenOpenMPRuntime(CIRGenModule &cgm)
bool emitTargetGlobal(GlobalDecl gd)
Check whether the given GlobalDecl needs special handling for device compilation.
bool markAsGlobalTarget(GlobalDecl gd)
Mark a function reference as one that should be emitted on the device.
Represents a function declaration or definition.
GlobalDecl - represents a global declaration.