Method TryRunPasses
TryRunPasses(params LazyEncodedString[])
Tries running the specified passes on this function
public ErrorInfo TryRunPasses(params LazyEncodedString[] passes)
Parameters
passesLazyEncodedString[]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
passeshas less than one pass. At least one is required
TryRunPasses(PassBuilderOptions, params LazyEncodedString[])
Tries running the specified passes on this function
public ErrorInfo TryRunPasses(PassBuilderOptions options, params LazyEncodedString[] passes)
Parameters
optionsPassBuilderOptionsOptions for the passes
passesLazyEncodedString[]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
passeshas less than one pass. At least one is required
TryRunPasses(TargetMachine, PassBuilderOptions, params LazyEncodedString[])
Tries running the specified passes on this function
public ErrorInfo TryRunPasses(TargetMachine targetMachine, PassBuilderOptions options, params LazyEncodedString[] passes)
Parameters
targetMachineTargetMachineTarget machine for the passes
optionsPassBuilderOptionsOptions for the passes
passesLazyEncodedString[]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
passeshas less than one pass. At least one is required