Table of Contents

Class ArchitectureExtensions

Namespace
Echo.Code
Assembly
Echo.dll

Provides convenience extensions for the IArchitecture<TInstruction> interface.

public static class ArchitectureExtensions
Inheritance
ArchitectureExtensions
Inherited Members

Methods

GetReadVariables<TInstruction>(IArchitecture<TInstruction>, in TInstruction)

Gets a collection of variables that an instruction reads from.

public static IList<IVariable> GetReadVariables<TInstruction>(this IArchitecture<TInstruction> self, in TInstruction instruction) where TInstruction : notnull

Parameters

self IArchitecture<TInstruction>

The architecture.

instruction TInstruction

The instruction to get the variables from.

Returns

IList<IVariable>

The list of variables.

Type Parameters

TInstruction

GetWrittenVariables<TInstruction>(IArchitecture<TInstruction>, in TInstruction)

Gets a collection of variables that an instruction writes to.

public static IList<IVariable> GetWrittenVariables<TInstruction>(this IArchitecture<TInstruction> self, in TInstruction instruction) where TInstruction : notnull

Parameters

self IArchitecture<TInstruction>

The architecture.

instruction TInstruction

The instruction to get the variables from.

Returns

IList<IVariable>

The list of variables.

Type Parameters

TInstruction