Search Results for

    Show / Hide Table of Contents

    Class ClrInstructionSimplifier

    Simplifies CIL instructions by rewriting them.

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

    Methods

    | Edit this page View Source

    GetParameter(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.

    | Edit this page 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
    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

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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX