MLIR 24.0.0git
mlir::NVVM::NVVMCheckSMVersion Struct Reference

#include "mlir/Dialect/LLVMIR/NVVMRequiresSMTraits.h"

Public Member Functions

template<typename... Versions>
 NVVMCheckSMVersion (Versions... fullSmVersions)
bool isCompatibleWith (const unsigned &targetFullSmVersion) const

Static Public Member Functions

static std::optional< unsignedgetTargetFullSmVersionFromStr (StringRef smVersionString)
static bool isMinimumSMVersion (unsigned fullSmVersion)

Public Attributes

llvm::SmallVector< unsignedfullSmVersionList

Static Public Attributes

static constexpr llvm::StringLiteral kStreamingMultiprocessorPrefix = "sm_"
static constexpr char kArchAcceleratedSuffix = 'a'
static constexpr char kFamilySpecificSuffix = 'f'

Detailed Description

Definition at line 28 of file NVVMRequiresSMTraits.h.

Constructor & Destructor Documentation

◆ NVVMCheckSMVersion()

template<typename... Versions>
mlir::NVVM::NVVMCheckSMVersion::NVVMCheckSMVersion ( Versions... fullSmVersions)
inline

Definition at line 45 of file NVVMRequiresSMTraits.h.

References fullSmVersionList.

Member Function Documentation

◆ getTargetFullSmVersionFromStr()

std::optional< unsigned > mlir::NVVM::NVVMCheckSMVersion::getTargetFullSmVersionFromStr ( StringRef smVersionString)
inlinestatic

◆ isCompatibleWith()

bool mlir::NVVM::NVVMCheckSMVersion::isCompatibleWith ( const unsigned & targetFullSmVersion) const
inline

Definition at line 48 of file NVVMRequiresSMTraits.h.

References fullSmVersionList.

◆ isMinimumSMVersion()

bool mlir::NVVM::NVVMCheckSMVersion::isMinimumSMVersion ( unsigned fullSmVersion)
inlinestatic

Definition at line 93 of file NVVMRequiresSMTraits.h.

Member Data Documentation

◆ fullSmVersionList

llvm::SmallVector<unsigned> mlir::NVVM::NVVMCheckSMVersion::fullSmVersionList

Definition at line 42 of file NVVMRequiresSMTraits.h.

Referenced by isCompatibleWith(), and NVVMCheckSMVersion().

◆ kArchAcceleratedSuffix

char mlir::NVVM::NVVMCheckSMVersion::kArchAcceleratedSuffix = 'a'
staticconstexpr

Definition at line 30 of file NVVMRequiresSMTraits.h.

Referenced by getTargetFullSmVersionFromStr().

◆ kFamilySpecificSuffix

char mlir::NVVM::NVVMCheckSMVersion::kFamilySpecificSuffix = 'f'
staticconstexpr

Definition at line 31 of file NVVMRequiresSMTraits.h.

Referenced by getTargetFullSmVersionFromStr().

◆ kStreamingMultiprocessorPrefix

llvm::StringLiteral mlir::NVVM::NVVMCheckSMVersion::kStreamingMultiprocessorPrefix = "sm_"
staticconstexpr

Definition at line 29 of file NVVMRequiresSMTraits.h.

Referenced by getTargetFullSmVersionFromStr().


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