clang API Documentation

CGOpenCLRuntime.cpp
Go to the documentation of this file.
00001 //===----- CGOpenCLRuntime.cpp - Interface to OpenCL Runtimes -------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This provides an abstract class for OpenCL code generation.  Concrete
00011 // subclasses of this implement code generation for specific OpenCL
00012 // runtime libraries.
00013 //
00014 //===----------------------------------------------------------------------===//
00015 
00016 #include "CGOpenCLRuntime.h"
00017 #include "CodeGenFunction.h"
00018 #include "llvm/GlobalValue.h"
00019 
00020 using namespace clang;
00021 using namespace CodeGen;
00022 
00023 CGOpenCLRuntime::~CGOpenCLRuntime() {}
00024 
00025 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
00026                                                 const VarDecl &D) {
00027   return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage);
00028 }