clang API Documentation
#include <CGOpenCLRuntime.h>

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 | |
| CodeGenModule & | CGM |
Definition at line 32 of file CGOpenCLRuntime.h.
| clang::CodeGen::CGOpenCLRuntime::CGOpenCLRuntime | ( | CodeGenModule & | CGM | ) | [inline] |
Definition at line 37 of file CGOpenCLRuntime.h.
| CGOpenCLRuntime::~CGOpenCLRuntime | ( | ) | [virtual] |
Definition at line 25 of file CGOpenCLRuntime.cpp.
| llvm::Type * CGOpenCLRuntime::convertOpenCLSpecificType | ( | const Type * | T | ) | [virtual] |
Definition at line 32 of file CGOpenCLRuntime.cpp.
References CGM, clang::serialized_diags::create(), clang::CodeGen::CodeGenModule::getContext(), getKind(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::ASTContext::getTargetAddressSpace(), clang::Type::isOpenCLSpecificType(), and clang::LangAS::opencl_global.
Referenced by clang::CodeGen::CodeGenTypes::ConvertType().
| 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().
CodeGenModule& clang::CodeGen::CGOpenCLRuntime::CGM [protected] |
Definition at line 34 of file CGOpenCLRuntime.h.
Referenced by convertOpenCLSpecificType().