C# Class SharpOS.AOT.IR.Instructions.Instruction

Base class for all instructions
Afficher le fichier Open project: sharpos/SharpOS Class Usage Examples

Protected Properties

Свойство Type Description
def Operand
name string
use Operand[]

Méthodes publiques

Méthode Description
AdjustRegisterInternalType ( InternalType type ) : InternalType

Adjusts the type of the register internal.

Dump ( DumpProcessor dumpProcessor ) : void

Dumps the instruction.

Instruction ( string name, Operand def, Operand use ) : System

Initializes a new instance of the Instruction class.

LdProcess ( Method method ) : void

Lds the process.

LdfldProcess ( Method method ) : void

LDFLDs the process.

Process ( Method method ) : void

Processes the specified method.

StfldProcess ( Method method ) : void

STFLDs the process.

ToString ( ) : string

Returns a T:System.String that represents the current T:System.Object.

Méthodes protégées

Méthode Description
GetArithmeticalResultType ( Operand first, Operand second, bool add, bool sub, bool unsignedDiv, bool overflow ) : InternalType

Gets the type of the arithmetical result.

GetBitwiseResultType ( Operand first, Operand second ) : InternalType

Gets the type of the bitwise result.

Method Details

AdjustRegisterInternalType() public méthode

Adjusts the type of the register internal.
public AdjustRegisterInternalType ( InternalType type ) : InternalType
type InternalType The type.
Résultat InternalType

Dump() public méthode

Dumps the instruction.
public Dump ( DumpProcessor dumpProcessor ) : void
dumpProcessor DumpProcessor The dump processor.
Résultat void

GetArithmeticalResultType() protected méthode

Gets the type of the arithmetical result.
protected GetArithmeticalResultType ( Operand first, Operand second, bool add, bool sub, bool unsignedDiv, bool overflow ) : InternalType
first Operand The first.
second Operand The second.
add bool if set to true [add].
sub bool if set to true [sub].
unsignedDiv bool if set to true [unsigned div].
overflow bool if set to true [overflow].
Résultat InternalType

GetBitwiseResultType() protected méthode

Gets the type of the bitwise result.
protected GetBitwiseResultType ( Operand first, Operand second ) : InternalType
first Operand The first.
second Operand The second.
Résultat InternalType

Instruction() public méthode

Initializes a new instance of the Instruction class.
public Instruction ( string name, Operand def, Operand use ) : System
name string The name.
def Operand The def.
use Operand The use.
Résultat System

LdProcess() public méthode

Lds the process.
public LdProcess ( Method method ) : void
method Method The method.
Résultat void

LdfldProcess() public méthode

LDFLDs the process.
public LdfldProcess ( Method method ) : void
method Method The method.
Résultat void

Process() public méthode

Processes the specified method.
public Process ( Method method ) : void
method Method The method.
Résultat void

StfldProcess() public méthode

STFLDs the process.
public StfldProcess ( Method method ) : void
method Method The method.
Résultat void

ToString() public méthode

Returns a T:System.String that represents the current T:System.Object.
public ToString ( ) : string
Résultat string

Property Details

def protected_oe property

protected Operand def
Résultat Operand

name protected_oe property

The name of the instruction
protected string name
Résultat string

use protected_oe property

protected Operand[] use
Résultat Operand[]