CGCUDANV.cpp revision 6c0aa5ff6e6253db0f993053599e2a52b5b93b2d
1//===----- CGCUDANV.cpp - Interface to NVIDIA CUDA Runtime ----------------===//
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 a class for CUDA code generation targeting the NVIDIA CUDA
11// runtime library.
12//
13//===----------------------------------------------------------------------===//
14
15#include "CGCUDARuntime.h"
16
17using namespace clang;
18using namespace CodeGen;
19
20namespace {
21
22class CGNVCUDARuntime : public CGCUDARuntime {
23public:
24  CGNVCUDARuntime(CodeGenModule &CGM);
25};
26
27}
28
29CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) {
30}
31
32CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) {
33  return new CGNVCUDARuntime(CGM);
34}
35