LLVM 24.0.0git
llvm::StringAttributeImpl Class Referencefinal

#include "IR/AttributeImpl.h"

Inheritance diagram for llvm::StringAttributeImpl:
[legend]

Public Member Functions

 StringAttributeImpl (StringRef Kind, StringRef Val=StringRef())
StringRef getStringKind () const
StringRef getStringValue () const
std::pair< StringRef, StringRefgetKey () const
Public Member Functions inherited from llvm::AttributeImpl
 AttributeImpl (const AttributeImpl &)=delete
AttributeImploperator= (const AttributeImpl &)=delete
bool isEnumAttribute () const
bool isIntAttribute () const
bool isStringAttribute () const
bool isTypeAttribute () const
bool isConstantRangeAttribute () const
bool isConstantRangeListAttribute () const
bool hasAttribute (Attribute::AttrKind A) const
bool hasAttribute (StringRef Kind) const
Attribute::AttrKind getKindAsEnum () const
uint64_t getValueAsInt () const
bool getValueAsBool () const
StringRef getKindAsString () const
StringRef getValueAsString () const
TypegetValueAsType () const
const ConstantRangegetValueAsConstantRange () const
ArrayRef< ConstantRangegetValueAsConstantRangeList () const
int cmp (const AttributeImpl &AI, bool KindOnly) const
 Used to sort attributes.
bool operator< (const AttributeImpl &AI) const
 Used when sorting the attributes.
void Profile (FoldingSetNodeID &ID) const
 Only the ConstantRange kinds are uniqued by profile; every other kind has a pool with a typed key.
Public Member Functions inherited from llvm::FoldingSetNode
 FoldingSetNode ()=default
uint32_t getFoldingSetHash () const
void setFoldingSetHash (uint32_t Hash)

Static Public Member Functions

static size_t totalSizeToAlloc (StringRef Kind, StringRef Val)
Static Public Member Functions inherited from llvm::AttributeImpl
static void Profile (FoldingSetNodeID &ID, Attribute::AttrKind Kind, const ConstantRange &CR)
static void Profile (FoldingSetNodeID &ID, Attribute::AttrKind Kind, ArrayRef< ConstantRange > Val)

Additional Inherited Members

Protected Types inherited from llvm::AttributeImpl
enum  AttrEntryKind {
  EnumAttrEntry , IntAttrEntry , StringAttrEntry , TypeAttrEntry ,
  ConstantRangeAttrEntry , ConstantRangeListAttrEntry
}
Protected Member Functions inherited from llvm::AttributeImpl
 AttributeImpl (AttrEntryKind KindID)

Detailed Description

Definition at line 164 of file AttributeImpl.h.

Constructor & Destructor Documentation

◆ StringAttributeImpl()

Member Function Documentation

◆ getKey()

std::pair< StringRef, StringRef > llvm::StringAttributeImpl::getKey ( ) const
inline

Definition at line 191 of file AttributeImpl.h.

References getStringKind(), and getStringValue().

◆ getStringKind()

StringRef llvm::StringAttributeImpl::getStringKind ( ) const
inline

◆ getStringValue()

StringRef llvm::StringAttributeImpl::getStringValue ( ) const
inline

◆ totalSizeToAlloc()

size_t llvm::StringAttributeImpl::totalSizeToAlloc ( StringRef Kind,
StringRef Val )
inlinestatic

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