blob: 69f75a6792961495f311c1d9454cef131dc57668 [file] [log] [blame]
Peter Collingbournefe883422011-10-06 18:29:37 +00001//===----- 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}