clang  3.9.0
Classes | Protected Member Functions | Protected Attributes | List of all members
clang::CodeGen::CGOpenMPRuntime Class Reference

#include <CGOpenMPRuntime.h>

Inheritance diagram for clang::CodeGen::CGOpenMPRuntime:
[legend]
Collaboration diagram for clang::CodeGen::CGOpenMPRuntime:
[legend]

Protected Member Functions

virtual void createOffloadEntry (llvm::Constant *ID, llvm::Constant *Addr, uint64_t Size)
 Creates offloading entry for the provided entry ID ID, address Addr and size Size. More...
 
virtual void emitTargetOutlinedFunctionHelper (const OMPExecutableDirective &D, StringRef ParentName, llvm::Function *&OutlinedFn, llvm::Constant *&OutlinedFnID, bool IsOffloadEntry, const RegionCodeGenTy &CodeGen)
 Helper to emit outlined function for 'target' directive. More...
 

Protected Attributes

CodeGenModuleCGM
 

Detailed Description

Definition at line 108 of file CGOpenMPRuntime.h.

Member Function Documentation

void CGOpenMPRuntime::createOffloadEntry ( llvm::Constant *  ID,
llvm::Constant *  Addr,
uint64_t  Size 
)
protectedvirtual

Creates offloading entry for the provided entry ID ID, address Addr and size Size.

Definition at line 2888 of file CGOpenMPRuntime.cpp.

References clang::ExternalLinkage, clang::IdentifierInfo::getName(), clang::CodeGen::getTgtOffloadEntryQTy(), clang::InternalLinkage, and clang::Name.

void CGOpenMPRuntime::emitTargetOutlinedFunctionHelper ( const OMPExecutableDirective D,
StringRef  ParentName,
llvm::Function *&  OutlinedFn,
llvm::Constant *&  OutlinedFnID,
bool  IsOffloadEntry,
const RegionCodeGenTy CodeGen 
)
protectedvirtual

Helper to emit outlined function for 'target' directive.

Parameters
DDirective to emit.
ParentNameName of the function that encloses the target region.
OutlinedFnOutlined function value to be defined by this call.
OutlinedFnIDOutlined function ID value to be defined by this call.
IsOffloadEntryTrue if the outlined function is an offload entry.
CodeGenLambda codegen specific to an accelerator device. An oulined function may not be an entry if, e.g. the if clause always evaluates to false.

Definition at line 4787 of file CGOpenMPRuntime.cpp.

References clang::ExternalLinkage, clang::OMPExecutableDirective::getAssociatedStmt(), clang::OMPExecutableDirective::getLocStart(), getTargetEntryUniqueInfo(), Line, clang::CodeGen::OffloadEntriesInfoManager, and clang::CodeGen::OffloadEntriesInfoManagerTy::registerTargetRegionEntryInfo().

Member Data Documentation

CodeGenModule& clang::CodeGen::CGOpenMPRuntime::CGM
protected

Definition at line 110 of file CGOpenMPRuntime.h.


The documentation for this class was generated from the following files: