Table of Contents

Method FindAttribute

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

FindAttribute<T>(T, FunctionAttributeIndex, LazyEncodedString)

Finds an AttributeValue by index and name

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

Parameters

self T

Accessor to find the attribute on

index FunctionAttributeIndex

Index of the attribute

name LazyEncodedString

Name of the attribute

Returns

AttributeValue?

AttributeValue or null if not found.

Type Parameters

T

Type of the accessor