Table of Contents

Method AddAttributes

Namespace
Ubiquity.NET.Llvm.Values
Assembly
Ubiquity.NET.Llvm.dll

AddAttributes(IAttributeContainer, params IEnumerable<LazyEncodedString>?)

Add a range of attributes to an attribute container

public static void AddAttributes(this IAttributeContainer self, params IEnumerable<LazyEncodedString>? range)

Parameters

self IAttributeContainer

Attribute container to add attributes to

range IEnumerable<LazyEncodedString>

Range of attributes to operate on

AddAttributes(IAttributeContainer, params IEnumerable<AttributeValue>?)

Add a range of attributes to an attribute container

public static void AddAttributes(this IAttributeContainer self, params IEnumerable<AttributeValue>? range)

Parameters

self IAttributeContainer

Attribute container to add attributes to

range IEnumerable<AttributeValue>

Range of attributes to operate on

AddAttributes<T>(T, FunctionAttributeIndex, params IEnumerable<LazyEncodedString>?)

public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params IEnumerable<LazyEncodedString>? names) where T : notnull, IFunctionAttributeAccessor

Parameters

self T

Accessor to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attributes to

names IEnumerable<LazyEncodedString>

Names of a attributes to add to the accessor [All must be an enum with no args OR a string attribute that accepts an empty string]

Returns

T

self for fluent use

Type Parameters

T

Accessor type

AddAttributes<T>(T, FunctionAttributeIndex, params IEnumerable<AttributeValue>)

public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, params IEnumerable<AttributeValue> attributes) where T : notnull, IFunctionAttributeAccessor

Parameters

self T

Container to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attributes to

attributes IEnumerable<AttributeValue>

Attribute to add to the container

Returns

T

self for fluent use

Type Parameters

T

Container type