clang 22.0.0git
clang::driver::CUIDOptions Class Reference

Options for specifying CUID used by CUDA/HIP for uniquely identifying compilation units. More...

#include "clang/Driver/Driver.h"

Public Types

enum class  Kind {
  Hash , Random , Fixed , None ,
  Invalid
}

Public Member Functions

 CUIDOptions ()=default
 CUIDOptions (llvm::opt::DerivedArgList &Args, const Driver &D)
std::string getCUID (StringRef InputFile, llvm::opt::DerivedArgList &Args) const
bool isEnabled () const

Detailed Description

Options for specifying CUID used by CUDA/HIP for uniquely identifying compilation units.

Definition at line 77 of file Driver.h.

Member Enumeration Documentation

◆ Kind

Enumerator
Hash 
Random 
Fixed 
None 
Invalid 

Definition at line 79 of file Driver.h.

Constructor & Destructor Documentation

◆ CUIDOptions() [1/2]

clang::driver::CUIDOptions::CUIDOptions ( )
default

◆ CUIDOptions() [2/2]

CUIDOptions::CUIDOptions ( llvm::opt::DerivedArgList & Args,
const Driver & D )

Definition at line 160 of file Driver.cpp.

References Fixed, Hash, and clang::if().

Member Function Documentation

◆ getCUID()

std::string CUIDOptions::getCUID ( StringRef InputFile,
llvm::opt::DerivedArgList & Args ) const

Definition at line 179 of file Driver.cpp.

References Hash, and Random.

◆ isEnabled()

bool clang::driver::CUIDOptions::isEnabled ( ) const
inline

Definition at line 88 of file Driver.h.

References Invalid, and None.


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