forked from OSchip/llvm-project
35 lines
898 B
C++
35 lines
898 B
C++
|
//===----- 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);
|
||
|
}
|