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 | 8c25fc584ce27d59df9923f153e8a132dde58d04 (patch) | |
tree | 340d3d5522a86b684a28fdd90801c0e74c302264 /lib/CodeGen/CodeGenModule.h | |
parent | a68c4aff8cd3aada697ad36dc6582d0e09b4b0d2 (diff) |
OpenCL: introduce support for function scope __local variables
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140068 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index aabd7703d0..a5938d9032 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -75,6 +75,7 @@ namespace CodeGen { class CGCXXABI; class CGDebugInfo; class CGObjCRuntime; + class CGOpenCLRuntime; class BlockFieldFlags; class FunctionArgList; @@ -226,6 +227,7 @@ class CodeGenModule : public CodeGenTypeCache { friend class CodeGenVTables; CGObjCRuntime* ObjCRuntime; + CGOpenCLRuntime* OpenCLRuntime; CGDebugInfo* DebugInfo; ARCEntrypoints *ARCData; RREntrypoints *RRData; @@ -317,6 +319,8 @@ class CodeGenModule : public CodeGenTypeCache { /// Lazily create the Objective-C runtime void createObjCRuntime(); + void createOpenCLRuntime(); + llvm::LLVMContext &VMContext; /// @name Cache for Blocks Runtime Globals @@ -356,6 +360,12 @@ public: /// been configured. bool hasObjCRuntime() { return !!ObjCRuntime; } + /// getObjCRuntime() - Return a reference to the configured OpenCL runtime. + CGOpenCLRuntime &getOpenCLRuntime() { + assert(OpenCLRuntime != 0); + return *OpenCLRuntime; + } + /// getCXXABI() - Return a reference to the configured C++ ABI. CGCXXABI &getCXXABI() { return ABI; } |