Struct AttributeValue
Single attribute for functions, function returns and function parameters
public readonly record struct AttributeValue : IEquatable<AttributeValue>
- Implements
- Inherited Members
Remarks
This is the equivalent to the underlying llvm::AttributeImpl class. The name was changed to AttributeValue in .NET to prevent confusion with the standard Attribute class that is used throughout .NET libraries.
Properties
- AttributeInfo
Gets the AttributeInfo for this value
- Id
Gets the kind of the attribute
- IntegerValue
Gets the Integer value of the attribute or 0 if the attribute doesn't have a value
- IsEnum
Gets a value indicating whether this attribute is a simple enumeration value [No arg value]
- IsInt
Gets a value indicating whether this attribute has an integral ID AND requires an integer arg value
- IsString
Gets a value indicating whether this attribute is a target specific string value
- IsType
Gets a value indicating whether this attribute has an integral ID AND requires an Type arg value
- Name
Gets the Name of the attribute
- StringValue
Gets the value for named attributes with values
- TypeValue
Gets the Type value of this attribute, if any
Methods
- ToString()
Gets a string representation of the attribute