Table of Contents

Method AddAttribute

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

AddAttribute<T>(T, FunctionAttributeIndex, AttributeValue)

public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, AttributeValue attrib) where T : notnull, IFunctionAttributeAccessor

Parameters

self T

Container to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attribute to

attrib AttributeValue

Attribute to add to the container

Returns

T

self for fluent use

Type Parameters

T

Container type

AddAttribute<T>(T, FunctionAttributeIndex, LazyEncodedString)

public static T AddAttribute<T>(this T self, FunctionAttributeIndex index, LazyEncodedString name) where T : notnull, IFunctionAttributeAccessor

Parameters

self T

Accessor to add the attribute to

index FunctionAttributeIndex

FunctionAttributeIndex to add the attribute to

name LazyEncodedString

Name of the attribute to add

Returns

T

self for fluent use

Type Parameters

T

Accessor type