Click or drag to resize
Llvm.NET LogoAttributeSetContainer Class

[This is preliminary documentation and is subject to change.]

Static class to provide mutators for otherwise immutable AttributeSets
Inheritance Hierarchy
SystemObject
  Llvm.NET.ValuesAttributeSetContainer

Namespace:  Llvm.NET.Values
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public static class AttributeSetContainer
Methods
  NameDescription
Public methodStatic memberAddAttributeT(T, FunctionAttributeIndex, AttributeKind)
Public methodStatic memberAddAttributeT(T, FunctionAttributeIndex, AttributeKind)
Public methodStatic memberAddAttributeT(T, FunctionAttributeIndex, AttributeValue)
Public methodStatic memberAddAttributes(Function, AttributeValue)
Compatibility extension method to handle migrating code from older attribute handling
Public methodStatic memberAddAttributes(Function, IEnumerableAttributeValue)
Compatibility extension method to handle migrating code from older attribute handling
Public methodStatic memberAddAttributesT(T, FunctionAttributeIndex, AttributeSet)
Public methodStatic memberAddAttributesT(T, FunctionAttributeIndex, AttributeValue)
Public methodStatic memberAddAttributesT(T, FunctionAttributeIndex, IEnumerableAttributeValue)
Public methodStatic memberRemoveAttribute(Function, AttributeKind)
Compatibility extension method to handle migrating code from older attribute handling
Public methodStatic memberRemoveAttribute(Function, String)
Compatibility extension method to handle migrating code from older attribute handling
Public methodStatic memberRemoveAttributeT(T, FunctionAttributeIndex, AttributeKind)
Public methodStatic memberRemoveAttributeT(T, FunctionAttributeIndex, String)
Top
Remarks
The methods of this class provide mutators for an AttributeSet contained in a class implementing IAttributeSetContainer. (This includes FunctionCallInstruction, and Invoke. An AttributeSet is immutable, all of the methods that modify an attribute set actually produce a new attribute set. (This follows the underlying LLVM model and semantics). Thus, to change the attributes of a IAttributeSetContainer you must get the Attributes set, produce a modified version and then set the new value back to the Attributes property. The methods in this class will perform the read, modify and write back sequence as a single call for any of the available IAttributeSetContainer implementations.
See Also