Home | History | Annotate | Download | only in CodeGen
      1 //===----- CGOpenCLRuntime.cpp - Interface to OpenCL Runtimes -------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 //
     10 // This provides an abstract class for OpenCL code generation.  Concrete
     11 // subclasses of this implement code generation for specific OpenCL
     12 // runtime libraries.
     13 //
     14 //===----------------------------------------------------------------------===//
     15 
     16 #include "CGOpenCLRuntime.h"
     17 #include "CodeGenFunction.h"
     18 #include "llvm/GlobalValue.h"
     19 
     20 using namespace clang;
     21 using namespace CodeGen;
     22 
     23 CGOpenCLRuntime::~CGOpenCLRuntime() {}
     24 
     25 void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
     26                                                 const VarDecl &D) {
     27   return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage);
     28 }
     29