llvm::AttributeList::removeAttributesAtIndex

removeAttributesAtIndex overloads

Synopses

Declared in <llvm/IR/Attributes.h>

Remove all attributes at the specified index from this attribute list. Returns a new list because attribute lists are immutable.

[[nodiscard]]
AttributeList
removeAttributesAtIndex(
    LLVMContext& C,
    unsigned int Index) const;
» more...

Remove the specified attributes at the specified index from this attribute list. Returns a new list because attribute lists are immutable.

[[nodiscard]]
AttributeList
removeAttributesAtIndex(
    LLVMContext& C,
    unsigned int Index,
    AttributeMask const& AttrsToRemove) const;
» more...

Return Value

A new attribute list with the attributes removed.

NOTE

The return value should not be discarded.

Parameters

NameDescription
CContext used to uniquify the result.
IndexAttribute-set index to clear.
AttrsToRemoveMask of attributes to remove.