LLVM API Documentation

Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions
llvm::AttributeImpl Class Reference

#include <AttributeImpl.h>

Inheritance diagram for llvm::AttributeImpl:
Inheritance graph
[legend]
Collaboration diagram for llvm::AttributeImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~AttributeImpl ()
bool isEnumAttribute () const
bool isIntAttribute () const
bool isStringAttribute () const
bool hasAttribute (Attribute::AttrKind A) const
bool hasAttribute (StringRef Kind) const
Attribute::AttrKind getKindAsEnum () const
uint64_t getValueAsInt () const
StringRef getKindAsString () const
StringRef getValueAsString () const
bool operator< (const AttributeImpl &AI) const
 Used when sorting the attributes.
void Profile (FoldingSetNodeID &ID) const

Static Public Member Functions

static void Profile (FoldingSetNodeID &ID, Attribute::AttrKind Kind, uint64_t Val)
static void Profile (FoldingSetNodeID &ID, StringRef Kind, StringRef Values)
static uint64_t getAttrMask (Attribute::AttrKind Val)

Protected Types

enum  AttrEntryKind { EnumAttrEntry, IntAttrEntry, StringAttrEntry }

Protected Member Functions

 AttributeImpl (AttrEntryKind KindID)

Detailed Description

Definition at line 32 of file AttributeImpl.h.


Member Enumeration Documentation

Enumerator:
EnumAttrEntry 
IntAttrEntry 
StringAttrEntry 

Definition at line 40 of file AttributeImpl.h.


Constructor & Destructor Documentation

llvm::AttributeImpl::AttributeImpl ( AttrEntryKind  KindID) [inline, protected]

Definition at line 46 of file AttributeImpl.h.

Definition at line 325 of file Attributes.cpp.


Member Function Documentation

uint64_t AttributeImpl::getAttrMask ( Attribute::AttrKind  Val) [static]

Definition at line 350 of file Attributes.cpp.

References isStringAttribute().

Referenced by llvm::Attribute::getKindAsString(), hasAttribute(), operator<(), and Profile().

uint64_t AttributeImpl::getValueAsInt ( ) const

Definition at line 330 of file Attributes.cpp.

References llvm::ARM_PROC::A, getKindAsEnum(), and isStringAttribute().

Referenced by llvm::Attribute::hasAttribute().

Definition at line 335 of file Attributes.cpp.

References getKindAsString(), and isStringAttribute().

Definition at line 51 of file AttributeImpl.h.

References EnumAttrEntry.

Referenced by getKindAsEnum(), llvm::Attribute::isEnumAttribute(), operator<(), and Profile().

bool AttributeImpl::operator< ( const AttributeImpl AI) const

Used when sorting the attributes.

Definition at line 360 of file Attributes.cpp.

References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), isEnumAttribute(), isIntAttribute(), and isStringAttribute().

void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID) const [inline]
static void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID,
Attribute::AttrKind  Kind,
uint64_t  Val 
) [inline, static]

Definition at line 75 of file AttributeImpl.h.

References llvm::FoldingSetNodeID::AddInteger().

static void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID,
StringRef  Kind,
StringRef  Values 
) [inline, static]

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