clang 22.0.0git
clang::driver::DeviceLibABIVersion Struct Reference

ABI version of device library. More...

#include "clang/Driver/RocmInstallationDetector.h"

Public Member Functions

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

Static Public Member Functions

static DeviceLibABIVersion fromCodeObjectVersion (unsigned CodeObjectVersion)

Public Attributes

unsigned ABIVersion = 0

Detailed Description

ABI version of device library.

Definition at line 18 of file RocmInstallationDetector.h.

Constructor & Destructor Documentation

◆ DeviceLibABIVersion()

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

Definition at line 20 of file RocmInstallationDetector.h.

References ABIVersion, and V.

Referenced by fromCodeObjectVersion().

Member Function Documentation

◆ fromCodeObjectVersion()

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

◆ getAsCodeObjectVersion()

unsigned clang::driver::DeviceLibABIVersion::getAsCodeObjectVersion ( ) const
inline

◆ 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 30 of file RocmInstallationDetector.h.

References ABIVersion.

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

◆ toString()

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

Member Data Documentation

◆ ABIVersion

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

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