diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-19 21:14:35 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-19 21:14:35 +0000 |
| commit | 2dbb708b8adef5f97f3814e036bc084964e3fbce (patch) | |
| tree | 79d130bd31b497973504f49decd9313653c0daa7 /clang/lib/CodeGen/CGOpenCLRuntime.cpp | |
| parent | c945f54ea5d1a74487dff86dadf3622a36f8dc6e (diff) | |
| download | bcm5719-llvm-2dbb708b8adef5f97f3814e036bc084964e3fbce.tar.gz bcm5719-llvm-2dbb708b8adef5f97f3814e036bc084964e3fbce.zip | |
OpenCL: introduce support for function scope __local variables
llvm-svn: 140068
Diffstat (limited to 'clang/lib/CodeGen/CGOpenCLRuntime.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGOpenCLRuntime.cpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGOpenCLRuntime.cpp b/clang/lib/CodeGen/CGOpenCLRuntime.cpp new file mode 100644 index 00000000000..3a0e116e5ab --- /dev/null +++ b/clang/lib/CodeGen/CGOpenCLRuntime.cpp @@ -0,0 +1,28 @@ +//===----- CGOpenCLRuntime.cpp - Interface to OpenCL Runtimes -------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides an abstract class for OpenCL code generation. Concrete +// subclasses of this implement code generation for specific OpenCL +// runtime libraries. +// +//===----------------------------------------------------------------------===// + +#include "CGOpenCLRuntime.h" +#include "CodeGenFunction.h" +#include "llvm/GlobalValue.h" + +using namespace clang; +using namespace CodeGen; + +CGOpenCLRuntime::~CGOpenCLRuntime() {} + +void CGOpenCLRuntime::EmitWorkGroupLocalVarDecl(CodeGenFunction &CGF, + const VarDecl &D) { + return CGF.EmitStaticVarDecl(D, llvm::GlobalValue::InternalLinkage); +} |

