CGOpenCLRuntime.cpp 981 B

12345678910111213141516171819202122232425262728
  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. #include "CGOpenCLRuntime.h"
  16. #include "CodeGenFunction.h"
  17. #include "llvm/GlobalValue.h"
  18. using namespace clang;
  19. using namespace CodeGen;
  20. CGOpenCLRuntime::~CGOpenCLRuntime() {}
  21. void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF,
  22. const VarDecl &D) {
  23. return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage);
  24. }