Class ClrInstructionSimplifier
Simplifies CIL instructions by rewriting them.
Inherited Members
Namespace: Flame.Clr.Analysis
Assembly: Flame.Clr.dll
Syntax
public static class ClrInstructionSimplifier
Methods
| Edit this page View SourceGetParameter(MethodBody, int)
Gets the parameter at index index of a method body.
Declaration
public static ParameterDefinition GetParameter(this MethodBody self, int index)
Parameters
| Type | Name | Description |
|---|---|---|
| MethodBody | self | The method body to inspect. |
| int | index | The index of the parameter to retrieve. |
Returns
| Type | Description |
|---|---|
| ParameterDefinition | A parameter definition. |
TrySimplify(Instruction, MethodBody, out IEnumerable<Instruction>)
Tries to "simplify" an instruction by decomposing it into its parts.
Declaration
public static bool TrySimplify(Instruction instruction, MethodBody body, out IEnumerable<Instruction> simplified)
Parameters
| Type | Name | Description |
|---|---|---|
| Instruction | instruction | The instruction to simplify. |
| MethodBody | body | The method body that defines the instruction. |
| IEnumerable<Instruction> | simplified | The simplified instruction. |
Returns
| Type | Description |
|---|---|
| bool |
|