clang  3.8.0
Public Member Functions | List of all members
clang::driver::toolchains::Generic_GCC::CudaInstallationDetector Class Reference

#include <ToolChains.h>

Public Member Functions

 CudaInstallationDetector (const Driver &D)
 
void init (const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args)
 
bool isValid () const
 Check whether we detected a valid Cuda install. More...
 
void print (raw_ostream &OS) const
 Print information about the detected CUDA installation. More...
 
StringRef getInstallPath () const
 Get the detected Cuda installation path. More...
 
StringRef getIncludePath () const
 Get the detected Cuda Include path. More...
 
StringRef getLibPath () const
 Get the detected Cuda library path. More...
 
StringRef getLibDevicePath () const
 Get the detected Cuda device library path. More...
 
std::string getLibDeviceFile (StringRef Gpu) const
 Get libdevice file for given architecture. More...
 

Detailed Description

Definition at line 162 of file ToolChains.h.

Constructor & Destructor Documentation

clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::CudaInstallationDetector ( const Driver D)
inline

Definition at line 172 of file ToolChains.h.

Member Function Documentation

StringRef clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::getIncludePath ( ) const
inline

Get the detected Cuda Include path.

Definition at line 183 of file ToolChains.h.

Referenced by clang::driver::toolchains::Linux::AddCudaIncludeArgs().

StringRef clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::getInstallPath ( ) const
inline

Get the detected Cuda installation path.

Definition at line 181 of file ToolChains.h.

std::string clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::getLibDeviceFile ( StringRef  Gpu) const
inline

Get libdevice file for given architecture.

Definition at line 189 of file ToolChains.h.

Referenced by clang::driver::toolchains::CudaToolChain::addClangTargetOptions().

StringRef clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::getLibDevicePath ( ) const
inline

Get the detected Cuda device library path.

Definition at line 187 of file ToolChains.h.

StringRef clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::getLibPath ( ) const
inline

Get the detected Cuda library path.

Definition at line 185 of file ToolChains.h.

void Generic_GCC::CudaInstallationDetector::init ( const llvm::Triple &  TargetTriple,
const llvm::opt::ArgList &  Args 
)

Definition at line 1637 of file ToolChains.cpp.

References FilePath.

Referenced by clang::driver::toolchains::Linux::Linux().

bool clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::isValid ( ) const
inline

Check whether we detected a valid Cuda install.

Definition at line 176 of file ToolChains.h.

Referenced by clang::driver::toolchains::Linux::AddCudaIncludeArgs().

void Generic_GCC::CudaInstallationDetector::print ( raw_ostream &  OS) const

Print information about the detected CUDA installation.

Definition at line 1695 of file ToolChains.cpp.

Referenced by clang::driver::toolchains::Generic_GCC::printVerboseInfo().


The documentation for this class was generated from the following files: