clang  3.9.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)
 
void CheckCudaVersionSupportsArch (CudaArch Arch) const
 Emit an error if Version does not support the given Arch. More...
 
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...
 
CudaVersion version () const
 Get the deteced Cuda install's version. More...
 
StringRef getInstallPath () const
 Get the detected Cuda installation path. More...
 
StringRef getBinPath () const
 Get the detected path to Cuda's bin directory. 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 163 of file ToolChains.h.

Constructor & Destructor Documentation

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

Definition at line 180 of file ToolChains.h.

Member Function Documentation

void Generic_GCC::CudaInstallationDetector::CheckCudaVersionSupportsArch ( CudaArch  Arch) const

Emit an error if Version does not support the given Arch.

If either Version or Arch is unknown, does not emit an error. Emits at most one error per Arch.

Definition at line 1804 of file ToolChains.cpp.

References clang::CudaArchToString(), clang::CudaVersionToString(), clang::MinVersionForCudaArch(), and clang::UNKNOWN.

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

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

Get the detected path to Cuda's bin directory.

Definition at line 199 of file ToolChains.h.

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

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

Get the detected Cuda Include path.

Definition at line 201 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 197 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 207 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 205 of file ToolChains.h.

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

Get the detected Cuda library path.

Definition at line 203 of file ToolChains.h.

void Generic_GCC::CudaInstallationDetector::init ( const llvm::Triple &  TargetTriple,
const llvm::opt::ArgList &  Args 
)
bool clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::isValid ( ) const
inline

Check whether we detected a valid Cuda install.

Definition at line 190 of file ToolChains.h.

Referenced by clang::driver::toolchains::Linux::AddCudaIncludeArgs(), and clang::driver::toolchains::CudaToolChain::CudaToolChain().

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

Print information about the detected CUDA installation.

Definition at line 1819 of file ToolChains.cpp.

References clang::CudaVersionToString().

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

CudaVersion clang::driver::toolchains::Generic_GCC::CudaInstallationDetector::version ( ) const
inline

Get the deteced Cuda install's version.

Definition at line 195 of file ToolChains.h.


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