Add a function attribute to the list. Returns a new list because attribute lists are immutable.
Declared in <llvm/IR/Attributes.h>
Add a function attribute to the list. Returns a new list because attribute lists are immutable.
[[nodiscard]]
AttributeList
addFnAttribute(
LLVMContext& C,
Attribute::AttrKind Kind) const;
» more...
Add a function attribute to the list. Returns a new list because attribute lists are immutable.
[[nodiscard]]
AttributeList
addFnAttribute(
LLVMContext& C,
Attribute Attr) const;
» more...
Add a function attribute to the list. Returns a new list because attribute lists are immutable.
[[nodiscard]]
AttributeList
addFnAttribute(
LLVMContext& C,
StringRef Kind,
StringRef Value = StringRef()) const;
» more...
A new attribute list with the attributes added.
The return value should not be discarded.
| Name | Description |
|---|---|
| C | Context used to uniquify the result. |
| Kind | Enum attribute kind to add. |
| Attr | Attribute to add at the function index. |
| Value | Attribute value string. |