Table of Contents

Method AddAttributes

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

AddAttributes(IAttributeContainer, params LazyEncodedString[])

Add a range of attributes to an attribute container

public static void AddAttributes(this IAttributeContainer self, params LazyEncodedString[] range)

Parameters

self IAttributeContainer

Attribute container to add attributes to

range LazyEncodedString[]

Range of attributes to operate on

AddAttributes(IAttributeContainer, params AttributeValue[])

Add a range of attributes to an attribute container

public static void AddAttributes(this IAttributeContainer self, params AttributeValue[] range)

Parameters

self IAttributeContainer

Attribute container to add attributes to

range AttributeValue[]

Range of attributes to operate on

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

public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, 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 LazyEncodedString[])

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

Parameters

self T

Accessor to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attributes to

names 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, IEnumerable<AttributeValue>)

public static T AddAttributes<T>(this T self, FunctionAttributeIndex index, 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

AddAttributes<T>(T, FunctionAttributeIndex, params AttributeValue[])

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

Parameters

self T

Container to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attributes to

attributes AttributeValue[]

Attribute to add to the container

Returns

T

self for fluent use

Type Parameters

T

Container type