LLVM 19.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::AttributeListImpl Class Referencefinal

#include "IR/AttributeImpl.h"

Inheritance diagram for llvm::AttributeListImpl:
Inheritance graph
[legend]

Public Types

using iterator = const AttributeSet *
 

Public Member Functions

 AttributeListImpl (ArrayRef< AttributeSet > Sets)
 
 AttributeListImpl (const AttributeListImpl &)=delete
 
AttributeListImploperator= (const AttributeListImpl &)=delete
 
bool hasFnAttribute (Attribute::AttrKind Kind) const
 Return true if the AttributeSet or the FunctionIndex has an enum attribute of the given kind.
 
bool hasAttrSomewhere (Attribute::AttrKind Kind, unsigned *Index=nullptr) const
 Return true if the specified attribute is set for at least one parameter or for the return value.
 
iterator begin () const
 
iterator end () const
 
void Profile (FoldingSetNodeID &ID) const
 
void dump () const
 
- Public Member Functions inherited from llvm::FoldingSetBase::Node
 Node ()=default
 
void * getNextInBucket () const
 
void SetNextInBucket (void *N)
 

Static Public Member Functions

static void Profile (FoldingSetNodeID &ID, ArrayRef< AttributeSet > Nodes)
 

Friends

class AttributeList
 

Detailed Description

Definition at line 318 of file AttributeImpl.h.

Member Typedef Documentation

◆ iterator

Definition at line 353 of file AttributeImpl.h.

Constructor & Destructor Documentation

◆ AttributeListImpl() [1/2]

AttributeListImpl::AttributeListImpl ( ArrayRef< AttributeSet Sets)

◆ AttributeListImpl() [2/2]

llvm::AttributeListImpl::AttributeListImpl ( const AttributeListImpl )
delete

Member Function Documentation

◆ begin()

iterator llvm::AttributeListImpl::begin ( ) const
inline

Definition at line 355 of file AttributeImpl.h.

Referenced by end(), hasAttrSomewhere(), and Profile().

◆ dump()

LLVM_DUMP_METHOD void AttributeListImpl::dump ( ) const

Definition at line 1186 of file Attributes.cpp.

References AttributeList.

◆ end()

iterator llvm::AttributeListImpl::end ( ) const
inline

Definition at line 356 of file AttributeImpl.h.

References begin().

Referenced by Profile().

◆ hasAttrSomewhere()

bool AttributeListImpl::hasAttrSomewhere ( Attribute::AttrKind  Kind,
unsigned Index = nullptr 
) const

Return true if the specified attribute is set for at least one parameter or for the return value.

If Index is not nullptr, the index of a parameter with the specified attribute is provided.

Definition at line 1167 of file Attributes.cpp.

References begin(), llvm::AttributeBitSet::hasAttribute(), and I.

◆ hasFnAttribute()

bool llvm::AttributeListImpl::hasFnAttribute ( Attribute::AttrKind  Kind) const
inline

Return true if the AttributeSet or the FunctionIndex has an enum attribute of the given kind.

Definition at line 343 of file AttributeImpl.h.

References llvm::AttributeBitSet::hasAttribute().

◆ operator=()

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

◆ Profile() [1/2]

void AttributeListImpl::Profile ( FoldingSetNodeID ID) const

Definition at line 1157 of file Attributes.cpp.

References begin(), end(), and Profile.

◆ Profile() [2/2]

void AttributeListImpl::Profile ( FoldingSetNodeID ID,
ArrayRef< AttributeSet Nodes 
)
static

Definition at line 1161 of file Attributes.cpp.

Friends And Related Function Documentation

◆ AttributeList

friend class AttributeList
friend

Definition at line 321 of file AttributeImpl.h.

Referenced by dump().


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