Immutable set of attributes for one argument, parameter, function, or return.
Synopsis
Declared in <llvm/IR/Attributes.h>
class AttributeSet;
Description
This class holds the attributes for a particular argument, parameter, function, or return value. It is an immutable value type that is cheap to copy. Adding and removing enum attributes is intended to be fast, but adding and removing string or integer attributes involves a FoldingSet lookup.
Type Aliases
Name |
Description |
Iterator over attributes in this set. |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this attribute set (trivially; uniquified storage is owned elsewhere). |
|
|
Add attributes to the attribute set. Returns a new set because attribute sets are immutable. |
|
Return an iterator to the first attribute in this set. |
|
Dump this attribute set to stderr (for debugging). |
|
Return an iterator past the last attribute in this set. |
|
Return the alignment from this attribute set, if present. |
|
Return the |
|
Return the |
|
Return a textual IR representation of the attributes in this set. |
|
|
|
Return the type for the |
|
Return the type for the |
|
Return capture information from this attribute set. |
|
Return dead‐on‐return information from this attribute set. |
|
Return the byte count from |
|
Return the byte count from |
|
Return the type for the |
|
Return the type for the |
|
Return the memory effects encoded in this attribute set. |
|
Return the |
|
Return the number of attributes in this set. |
|
Return the type for the |
|
Return the stack alignment from this attribute set, if present. |
|
Return the structure type for the |
|
Return the unwind table kind from this attribute set. |
|
Return the maximum vscale from |
|
Return the minimum vscale for the |
|
Return true if the attribute exists in this set. |
|
Return true if attributes exists in this set. |
|
Return true if this attribute set belongs to the LLVMContext. |
|
Try to intersect this AttributeSet with Other. Returns std::nullopt if the two lists are inherently incompatible (imply different behavior, not just analysis). |
|
Remove the specified attribute from this set. Returns a new set because attribute sets are immutable. |
|
Remove the specified attributes from this set. Returns a new set because attribute sets are immutable. |
|
Return true if both sets refer to the same uniquified node. |
|
Return true if the sets refer to different uniquified nodes. |
Static Member Functions
Name |
Description |
|
Friends
Name |
Description |
Traits type that supplies DenseMap hashing and equality for value type |
|
Internal uniquified storage for an |
Non-Member Functions
Name |
Description |
Return the function attributes for an intrinsic. |
Created with MrDocs