LLVM 23.0.0git
llvm::SubtargetFeatureKV Struct Reference

Used to provide key value pairs for feature and CPU bit flags. More...

#include "llvm/MC/MCSubtargetInfo.h"

Public Member Functions

constexpr SubtargetFeatureKV (const char *Key, const char *Desc, unsigned Value, FeatureBitArray Implies)
 SubtargetFeatureKV (const SubtargetFeatureKV &)=delete
SubtargetFeatureKVoperator= (const SubtargetFeatureKV &)=delete
const charkey () const
const chardesc () const
bool operator< (StringRef S) const
 Compare routine for std::lower_bound.
bool operator< (const SubtargetFeatureKV &Other) const
 Compare routine for std::is_sorted.

Public Attributes

unsigned Value
 K-V integer value.
FeatureBitArray Implies
 K-V bit mask.

Detailed Description

Used to provide key value pairs for feature and CPU bit flags.

Definition at line 36 of file MCSubtargetInfo.h.

Constructor & Destructor Documentation

◆ SubtargetFeatureKV() [1/2]

llvm::SubtargetFeatureKV::SubtargetFeatureKV ( const char * Key,
const char * Desc,
unsigned Value,
FeatureBitArray Implies )
inlineconstexpr

Definition at line 45 of file MCSubtargetInfo.h.

References Implies, and Value.

Referenced by operator<(), operator=(), and SubtargetFeatureKV().

◆ SubtargetFeatureKV() [2/2]

llvm::SubtargetFeatureKV::SubtargetFeatureKV ( const SubtargetFeatureKV & )
delete

References SubtargetFeatureKV().

Member Function Documentation

◆ desc()

const char * llvm::SubtargetFeatureKV::desc ( ) const
inline

Definition at line 54 of file MCSubtargetInfo.h.

◆ key()

const char * llvm::SubtargetFeatureKV::key ( ) const
inline

Definition at line 53 of file MCSubtargetInfo.h.

Referenced by operator<(), and operator<().

◆ operator<() [1/2]

bool llvm::SubtargetFeatureKV::operator< ( const SubtargetFeatureKV & Other) const
inline

Compare routine for std::is_sorted.

Definition at line 60 of file MCSubtargetInfo.h.

References key(), llvm::Other, and SubtargetFeatureKV().

◆ operator<() [2/2]

bool llvm::SubtargetFeatureKV::operator< ( StringRef S) const
inline

Compare routine for std::lower_bound.

Definition at line 57 of file MCSubtargetInfo.h.

References key().

◆ operator=()

SubtargetFeatureKV & llvm::SubtargetFeatureKV::operator= ( const SubtargetFeatureKV & )
delete

References SubtargetFeatureKV().

Member Data Documentation

◆ Implies

FeatureBitArray llvm::SubtargetFeatureKV::Implies

K-V bit mask.

Definition at line 43 of file MCSubtargetInfo.h.

Referenced by ApplyFeatureFlag(), SubtargetFeatureKV(), and llvm::MCSubtargetInfo::ToggleFeature().

◆ Value

unsigned llvm::SubtargetFeatureKV::Value

K-V integer value.

Definition at line 42 of file MCSubtargetInfo.h.

Referenced by ApplyFeatureFlag(), hasFeature(), SubtargetFeatureKV(), and llvm::MCSubtargetInfo::ToggleFeature().


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