Click or drag to resize
Llvm.NET LogoAttributeBuilder Class

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

Factory for building AttributeSets, which are otherwise immutable
Inheritance Hierarchy
SystemObject
  Llvm.NET.ValuesAttributeBuilder

Namespace:  Llvm.NET.Values
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public sealed class AttributeBuilder : IDisposable

The AttributeBuilder type exposes the following members.

Constructors
  NameDescription
Public methodAttributeBuilder
Creates a new empty AttributeBuilder instance
Public methodAttributeBuilder(AttributeValue)
Creates a new AttributeBuilder with a given AttributeValue
Public methodAttributeBuilder(AttributeSet, FunctionAttributeIndex)
Creates a new AttributeBuilder from a single index of an existing AttributeSet
Top
Properties
  NameDescription
Public propertyIsEmpty
Indicates if this Builder contains no attributes
Top
Methods
  NameDescription
Public methodAdd(String)
Adds a target dependent string attribute to a builder
Public methodAdd(AttributeKind)
Adds a new boolean attribute to this builder
Public methodAdd(AttributeValue)
Adds an AttributeValue to a builder
Public methodAdd(String, String)
Adds a target dependent attribute to the builder
Public methodContains(String)
Checks if this builder contains a given target dependent attribute
Public methodContains(AttributeKind)
Checks if this builder contains a given boolean attribute
Public methodDispose
Destroys the underlying native builder
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAttributes
Checks if the builder contains any of the attributes in a given AttributeSet
Public methodMerge
Merges the contents of another AttributeBuilder into this one
Public methodOverlaps
Checks if this builder overlaps the attributes in another builder
Public methodRemove(String)
Removes a target dependent attribute from this builder
Public methodRemove(AttributeBuilder)
Removes the attributes of another builder from this one
Public methodRemove(AttributeKind)
Removes a boolean attribute from the builder
Public methodRemove(AttributeSet, FunctionAttributeIndex)
Removes attributes specified in an AttributeSet
Public methodToAttributeSet(FunctionAttributeIndex)
Converts the contents of this builder to an immutable AttributeSet
Public methodToAttributeSet(FunctionAttributeIndex, Context)
Converts the contents of this builder to an immutable AttributeSet
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

This class is used to build immutable AttributeSet instances.

Manipulator methods of this class return the instance of the class. This allows use in fluent style coding scenarios. (see: https://en.wikipedia.org/wiki/Fluent_interface )

Note Note
It is important to keep in mind that an AttributeBuilder is dimensionless, that is, AttributeSet does not contain or store a FunctionAttributeIndex value. The index is applied only when creating the AttributeSet in ToAttributeSet(FunctionAttributeIndex)
See Also