Class ContextExtensions
Utility class to provide extensions to IContext
public static class ContextExtensions
- Inheritance
-
ContextExtensions
- Inherited Members
Remarks
This is used mostly to provide support for legacy runtimes that don't have the params IEnumerable language feature.
In such a case, this provides extensions that allow use of a params array and then re-directs to the enumerable
form of the function. This allows source compat of consumers while not trying to leverage support beyond what
is supported by the runtime.
Methods
- CreateConstantStruct(IContext, bool, params Constant[])
Creates a constant structure from a set of values
- CreateFunctionType(IContext, IDIBuilder, IDebugType<ITypeRef, DIType>, params IDebugType<ITypeRef, DIType>[])
Creates a FunctionType with Debug information
- CreateNamedConstantStruct(IContext, IStructType, params Constant[])
Creates a constant instance of a specified structure type from a set of values
- GetFunctionType(IContext, bool, ITypeRef, params ITypeRef[])
Get an LLVM Function type (e.g. signature)
- GetFunctionType(IContext, ITypeRef, params ITypeRef[])
Get an LLVM Function type (e.g. signature)