Class OpcodeSelector
Opcode selector for Short Forms.
Inheritance
System.Object
OpcodeSelector
Namespace: Cortex.Net.Fody
Assembly: Cortex.Net.Fody.dll
Syntax
public static class OpcodeSelector : object
Methods
| Improve this Doc View SourceLdarg(ILProcessor, Int32)
Gets the best short form opcode for Ldarg.
Declaration
public static Instruction Ldarg(this ILProcessor processor, int index)
Parameters
Type | Name | Description |
---|---|---|
ILProcessor | processor | The Il Processor to generate the instruction on. |
System.Int32 | index | The index. |
Returns
Type | Description |
---|---|
Instruction | An instruction. |
Ldloc(ILProcessor, Int32)
Gets the best short form opcode for Ldloc.
Declaration
public static Instruction Ldloc(this ILProcessor processor, int index)
Parameters
Type | Name | Description |
---|---|---|
ILProcessor | processor | The Il Processor to generate the instruction on. |
System.Int32 | index | The index. |
Returns
Type | Description |
---|---|
Instruction | An instruction. |
Stloc(ILProcessor, Int32)
Gets the best short form opcode for Stloc.
Declaration
public static Instruction Stloc(this ILProcessor processor, int index)
Parameters
Type | Name | Description |
---|---|---|
ILProcessor | processor | The Il Processor to generate the instruction on. |
System.Int32 | index | The index. |
Returns
Type | Description |
---|---|
Instruction | An instruction. |