Table of Contents

Method TryRunPasses

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

TryRunPasses(params LazyEncodedString[])

Tries running the specified passes on this function

ErrorInfo TryRunPasses(params LazyEncodedString[] passes)

Parameters

passes LazyEncodedString[]

Set of passes to run [Must contain at least one pass]

Returns

ErrorInfo

Error containing result

Remarks

This will try to run all the passes specified against this module. The return value contains the results and, if an error occurred, any error message text for the error.

information

The `try` semantics apply to the actual LLVM call only, normal parameter checks are performed and may produce an exception.

Exceptions

ArgumentNullException

One of the arguments provided was null (see exception details for name of the parameter)

ArgumentOutOfRangeException

If passes has less than one pass. At least one is required

TryRunPasses(PassBuilderOptions, params LazyEncodedString[])

Tries running the specified passes on this function

ErrorInfo TryRunPasses(PassBuilderOptions options, params LazyEncodedString[] passes)

Parameters

options PassBuilderOptions

Options for the passes

passes LazyEncodedString[]

Set of passes to run [Must contain at least one pass]

Returns

ErrorInfo

Error containing result

Remarks

This will try to run all the passes specified against this module. The return value contains the results and, if an error occurred, any error message text for the error.

information

The `try` semantics apply to the actual LLVM call only, normal parameter checks are performed and may produce an exception.

Exceptions

ArgumentNullException

One of the arguments provided was null (see exception details for name of the parameter)

ArgumentOutOfRangeException

If passes has less than one pass. At least one is required

TryRunPasses(TargetMachine, PassBuilderOptions, params LazyEncodedString[])

Tries running the specified passes on this function

ErrorInfo TryRunPasses(TargetMachine targetMachine, PassBuilderOptions options, params LazyEncodedString[] passes)

Parameters

targetMachine TargetMachine

Target machine for the passes

options PassBuilderOptions

Options for the passes

passes LazyEncodedString[]

Set of passes to run [Must contain at least one pass]

Returns

ErrorInfo

Error containing result

Remarks

This will try to run all the passes specified against this module. The return value contains the results and, if an error occurred, any error message text for the error.

information

The `try` semantics apply to the actual LLVM call only, normal parameter checks are performed and may produce an exception.

Exceptions

ArgumentNullException

One of the arguments provided was null (see exception details for name of the parameter)

ArgumentOutOfRangeException

If passes has less than one pass. At least one is required