clang API Documentation

Public Member Functions | Protected Attributes
clang::CodeGen::CGOpenCLRuntime Class Reference

#include <CGOpenCLRuntime.h>

Collaboration diagram for clang::CodeGen::CGOpenCLRuntime:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CGOpenCLRuntime (CodeGenModule &CGM)
virtual ~CGOpenCLRuntime ()
virtual void EmitWorkGroupLocalVarDecl (CodeGenFunction &CGF, const VarDecl &D)
virtual llvm::Type * convertOpenCLSpecificType (const Type *T)

Protected Attributes

CodeGenModuleCGM

Detailed Description

Definition at line 32 of file CGOpenCLRuntime.h.


Constructor & Destructor Documentation

Definition at line 37 of file CGOpenCLRuntime.h.

Definition at line 25 of file CGOpenCLRuntime.cpp.


Member Function Documentation

llvm::Type * CGOpenCLRuntime::convertOpenCLSpecificType ( const Type T) [virtual]
void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl ( CodeGenFunction CGF,
const VarDecl D 
) [virtual]

Emit the IR required for a work-group-local variable declaration, and add an entry to CGF's LocalDeclMap for D. The base class does this using CodeGenFunction::EmitStaticVarDecl to emit an internal global for D.

Definition at line 27 of file CGOpenCLRuntime.cpp.

References clang::CodeGen::CodeGenFunction::EmitStaticVarDecl(), and clang::InternalLinkage.

Referenced by clang::CodeGen::CodeGenFunction::EmitVarDecl().


Member Data Documentation

Definition at line 34 of file CGOpenCLRuntime.h.

Referenced by convertOpenCLSpecificType().


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