C# Класс Mosa.Compiler.Framework.Operand

Operand class
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateManagedSymbolPointer Operand
Operand System.Collections.Generic
Operand System.Collections.Generic
Operand System.Collections.Generic
RenameIndex void
ShortenTypeName string
ShortenTypeName2 string

Открытые методы

Метод Описание
CreateCPURegister ( MosaType type, Register register ) : Operand

Creates a new physical register Operand.

CreateConstant ( MosaType type, int value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( MosaType type, long value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( MosaType type, ulong value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( TypeSystem typeSystem, double value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( TypeSystem typeSystem, float value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( TypeSystem typeSystem, int value ) : Operand

Creates a new constant Operand for the given integral value.

CreateConstant ( TypeSystem typeSystem, long value ) : Operand

Creates a new constant Operand for the given integral value.

CreateField ( MosaField field ) : Operand

Creates a new runtime member Operand.

CreateHighSplitForLong ( TypeSystem typeSystem, Operand longOperand, int index ) : Operand

Creates the high 32 bit portion of a 64-bit Operand.

CreateLabel ( MosaType type, string label ) : Operand

Creates a new symbol Operand for the given symbol name.

CreateLowSplitForLong ( TypeSystem typeSystem, Operand longOperand, int index ) : Operand

Creates the low 32 bit portion of a 64-bit Operand.

CreateManagedSymbol ( MosaType type, string name ) : Operand

Creates the symbol.

CreateSSA ( Operand ssa, int version ) : Operand

Creates the SSA Operand.

CreateShifter ( ShiftType shiftType ) : Operand

Creates the shifter.

CreateStackLocal ( MosaType type, int index, bool pinned ) : Operand

Creates the stack local.

CreateStackParameter ( MosaType type, int index, string name ) : Operand

Creates the stack parameter.

CreateStringSymbol ( TypeSystem typeSystem, string name, string data ) : Operand

Creates the string symbol with data.

CreateSymbolFromMethod ( TypeSystem typeSystem, MosaMethod method ) : Operand

Creates a new symbol Operand for the given symbol name.

CreateUnmanagedSymbolPointer ( TypeSystem typeSystem, string name ) : Operand

Creates the symbol.

CreateVirtualRegister ( MosaType type, int index ) : Operand

Creates a new virtual register Operand.

GetNull ( TypeSystem typeSystem ) : Operand

Gets the null constant Operand.

ToString ( ) : string
ToString ( bool full ) : string

Returns a string representation of Operand.

Приватные методы

Метод Описание
CreateManagedSymbolPointer ( MosaType type, string name ) : Operand

Creates the symbol.

Operand ( ) : System.Collections.Generic
Operand ( MosaType type ) : System.Collections.Generic

Initializes a new instance of Operand.

Operand ( ShiftType shiftType ) : System.Collections.Generic

Prevents a default instance of the Operand class from being created.

RenameIndex ( int index ) : void
ShortenTypeName ( string value ) : string
ShortenTypeName2 ( string value ) : string

Описание методов

CreateCPURegister() публичный статический Метод

Creates a new physical register Operand.
public static CreateCPURegister ( MosaType type, Register register ) : Operand
type MosaType The type.
register Register The register.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( MosaType type, int value ) : Operand
type MosaType The type.
value int The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( MosaType type, long value ) : Operand
type MosaType The type.
value long The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( MosaType type, ulong value ) : Operand
type MosaType The type.
value ulong The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( TypeSystem typeSystem, double value ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
value double The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( TypeSystem typeSystem, float value ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
value float The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( TypeSystem typeSystem, int value ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
value int The value to create the constant operand for.
Результат Operand

CreateConstant() публичный статический Метод

Creates a new constant Operand for the given integral value.
public static CreateConstant ( TypeSystem typeSystem, long value ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
value long The value to create the constant operand for.
Результат Operand

CreateField() публичный статический Метод

Creates a new runtime member Operand.
public static CreateField ( MosaField field ) : Operand
field MosaField The field.
Результат Operand

CreateHighSplitForLong() публичный статический Метод

Creates the high 32 bit portion of a 64-bit Operand.
public static CreateHighSplitForLong ( TypeSystem typeSystem, Operand longOperand, int index ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
longOperand Operand The long operand.
index int The index.
Результат Operand

CreateLabel() публичный статический Метод

Creates a new symbol Operand for the given symbol name.
public static CreateLabel ( MosaType type, string label ) : Operand
type MosaType The type.
label string The label.
Результат Operand

CreateLowSplitForLong() публичный статический Метод

Creates the low 32 bit portion of a 64-bit Operand.
public static CreateLowSplitForLong ( TypeSystem typeSystem, Operand longOperand, int index ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
longOperand Operand The long operand.
index int The index.
Результат Operand

CreateManagedSymbol() публичный статический Метод

Creates the symbol.
public static CreateManagedSymbol ( MosaType type, string name ) : Operand
type MosaType The type.
name string The name.
Результат Operand

CreateSSA() публичный статический Метод

Creates the SSA Operand.
public static CreateSSA ( Operand ssa, int version ) : Operand
ssa Operand The ssa operand.
version int The ssa version.
Результат Operand

CreateShifter() публичный статический Метод

Creates the shifter.
public static CreateShifter ( ShiftType shiftType ) : Operand
shiftType ShiftType Type of the shift.
Результат Operand

CreateStackLocal() публичный статический Метод

Creates the stack local.
public static CreateStackLocal ( MosaType type, int index, bool pinned ) : Operand
type MosaType The type.
index int The index.
pinned bool if set to true [pinned].
Результат Operand

CreateStackParameter() публичный статический Метод

Creates the stack parameter.
public static CreateStackParameter ( MosaType type, int index, string name ) : Operand
type MosaType The type.
index int The index.
name string The name.
Результат Operand

CreateStringSymbol() публичный статический Метод

Creates the string symbol with data.
public static CreateStringSymbol ( TypeSystem typeSystem, string name, string data ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
name string The name.
data string The string data.
Результат Operand

CreateSymbolFromMethod() публичный статический Метод

Creates a new symbol Operand for the given symbol name.
public static CreateSymbolFromMethod ( TypeSystem typeSystem, MosaMethod method ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
method MosaMethod The method.
Результат Operand

CreateUnmanagedSymbolPointer() публичный статический Метод

Creates the symbol.
public static CreateUnmanagedSymbolPointer ( TypeSystem typeSystem, string name ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
name string The name.
Результат Operand

CreateVirtualRegister() публичный статический Метод

Creates a new virtual register Operand.
public static CreateVirtualRegister ( MosaType type, int index ) : Operand
type MosaType The type.
index int The index.
Результат Operand

GetNull() публичный статический Метод

Gets the null constant Operand.
public static GetNull ( TypeSystem typeSystem ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem
Результат Operand

ToString() публичный Метод

public ToString ( ) : string
Результат string

ToString() публичный Метод

Returns a string representation of Operand.
public ToString ( bool full ) : string
full bool
Результат string