clang  16.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::driver::DeviceLibABIVersion Struct Reference

ABI version of device library. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Driver/ToolChains/ROCm.h"

Collaboration diagram for clang::driver::DeviceLibABIVersion:
Collaboration graph
[legend]

Public Member Functions

 DeviceLibABIVersion (unsigned V)
 
bool requiresLibrary ()
 Whether ABI version bc file is requested. More...
 
std::string toString ()
 

Static Public Member Functions

static DeviceLibABIVersion fromCodeObjectVersion (unsigned CodeObjectVersion)
 

Public Attributes

unsigned ABIVersion = 0
 

Detailed Description

ABI version of device library.

Definition at line 26 of file ROCm.h.

Constructor & Destructor Documentation

◆ DeviceLibABIVersion()

clang::driver::DeviceLibABIVersion::DeviceLibABIVersion ( unsigned  V)
inline

Definition at line 28 of file ROCm.h.

Referenced by fromCodeObjectVersion().

Member Function Documentation

◆ fromCodeObjectVersion()

static DeviceLibABIVersion clang::driver::DeviceLibABIVersion::fromCodeObjectVersion ( unsigned  CodeObjectVersion)
inlinestatic

◆ requiresLibrary()

bool clang::driver::DeviceLibABIVersion::requiresLibrary ( )
inline

Whether ABI version bc file is requested.

ABIVersion is code object version multiplied by 100. Code object v4 and below works with ROCm 5.0 and below which does not have abi_version_*.bc. Code object v5 requires abi_version_500.bc.

Definition at line 38 of file ROCm.h.

References ABIVersion.

Referenced by clang::driver::RocmInstallationDetector::checkCommonBitcodeLibs().

◆ toString()

std::string clang::driver::DeviceLibABIVersion::toString ( )
inline

Definition at line 39 of file ROCm.h.

References ABIVersion.

Referenced by clang::driver::RocmInstallationDetector::checkCommonBitcodeLibs().

Member Data Documentation

◆ ABIVersion

unsigned clang::driver::DeviceLibABIVersion::ABIVersion = 0

The documentation for this struct was generated from the following file: