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)

Protected Attributes

CodeGenModuleCGM

Detailed Description

Definition at line 28 of file CGOpenCLRuntime.h.


Constructor & Destructor Documentation

clang::CodeGen::CGOpenCLRuntime::CGOpenCLRuntime ( CodeGenModule CGM) [inline]

Definition at line 33 of file CGOpenCLRuntime.h.

CGOpenCLRuntime::~CGOpenCLRuntime ( ) [virtual]

Definition at line 23 of file CGOpenCLRuntime.cpp.


Member Function Documentation

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 25 of file CGOpenCLRuntime.cpp.

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

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


Member Data Documentation

Definition at line 30 of file CGOpenCLRuntime.h.


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