Show / Hide Table of Contents

    Class ClrInstructionSimplifier

    Simplifies CIL instructions by rewriting them.

    Inheritance
    System.Object
    ClrInstructionSimplifier
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Clr.Analysis
    Assembly: Flame.Clr.dll
    Syntax
    public static class ClrInstructionSimplifier

    Methods

    | Improve this Doc View Source

    GetParameter(MethodBody, Int32)

    Gets the parameter at index index of a method body.

    Declaration
    public static ParameterDefinition GetParameter(this MethodBody self, int index)
    Parameters
    Type Name Description
    Mono.Cecil.Cil.MethodBody self

    The method body to inspect.

    System.Int32 index

    The index of the parameter to retrieve.

    Returns
    Type Description
    Mono.Cecil.ParameterDefinition

    A parameter definition.

    | Improve this Doc View Source

    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
    Mono.Cecil.Cil.Instruction instruction

    The instruction to simplify.

    Mono.Cecil.Cil.MethodBody body

    The method body that defines the instruction.

    System.Collections.Generic.IEnumerable<Mono.Cecil.Cil.Instruction> simplified

    The simplified instruction.

    Returns
    Type Description
    System.Boolean

    true if the instruction can be simplified; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX