llvm::AttributeList::hasAttributeAtIndex

Return true if the attribute exists at the given index.

Synopses

Declared in <llvm/IR/Attributes.h>

Return true if the attribute exists at the given index.

bool
hasAttributeAtIndex(
    unsigned int Index,
    Attribute::AttrKind Kind) const;
» more...

Return true if the attribute exists at the given index.

bool
hasAttributeAtIndex(
    unsigned int Index,
    StringRef Kind) const;
» more...

Return Value

true if the attribute exists at the given index.

Parameters

NameDescription
IndexAttribute-set index to query.
KindEnum attribute kind to look up.