diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-06 18:29:37 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-06 18:29:37 +0000 |
commit | 6c0aa5ff6e6253db0f993053599e2a52b5b93b2d (patch) | |
tree | e25f7c9874644f6ab82f858a2da4aa0cee4c6626 /lib/CodeGen/CGCUDANV.cpp | |
parent | 744d90bfe2a43847764a707b1bee7ef1e30ad5f2 (diff) |
CUDA: IR generation support for kernel call expressions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCUDANV.cpp')
-rw-r--r-- | lib/CodeGen/CGCUDANV.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCUDANV.cpp b/lib/CodeGen/CGCUDANV.cpp new file mode 100644 index 0000000000..69f75a6792 --- /dev/null +++ b/lib/CodeGen/CGCUDANV.cpp @@ -0,0 +1,34 @@ +//===----- CGCUDANV.cpp - Interface to NVIDIA CUDA Runtime ----------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This provides a class for CUDA code generation targeting the NVIDIA CUDA +// runtime library. +// +//===----------------------------------------------------------------------===// + +#include "CGCUDARuntime.h" + +using namespace clang; +using namespace CodeGen; + +namespace { + +class CGNVCUDARuntime : public CGCUDARuntime { +public: + CGNVCUDARuntime(CodeGenModule &CGM); +}; + +} + +CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) { +} + +CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { + return new CGNVCUDARuntime(CGM); +} |