C# Class Mosa.Compiler.Framework.Operand

Operand class
Show file Open project: tgiphil/MOSA-Project Class Usage Examples

Private Properties

Property Type Description
CreateManagedSymbolPointer Operand
Operand System.Collections.Generic
Operand System.Collections.Generic
Operand System.Collections.Generic
RenameIndex void
ShortenTypeName string
ShortenTypeName2 string

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

CreateCPURegister() public static method

Creates a new physical register Operand.
public static CreateCPURegister ( MosaType type, Register register ) : Operand
type MosaType The type.
register Register The register.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateConstant() public static method

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.
return Operand

CreateField() public static method

Creates a new runtime member Operand.
public static CreateField ( MosaField field ) : Operand
field MosaField The field.
return Operand

CreateHighSplitForLong() public static method

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.
return Operand

CreateLabel() public static method

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.
return Operand

CreateLowSplitForLong() public static method

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.
return Operand

CreateManagedSymbol() public static method

Creates the symbol.
public static CreateManagedSymbol ( MosaType type, string name ) : Operand
type MosaType The type.
name string The name.
return Operand

CreateSSA() public static method

Creates the SSA Operand.
public static CreateSSA ( Operand ssa, int version ) : Operand
ssa Operand The ssa operand.
version int The ssa version.
return Operand

CreateShifter() public static method

Creates the shifter.
public static CreateShifter ( ShiftType shiftType ) : Operand
shiftType ShiftType Type of the shift.
return Operand

CreateStackLocal() public static method

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].
return Operand

CreateStackParameter() public static method

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.
return Operand

CreateStringSymbol() public static method

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.
return Operand

CreateSymbolFromMethod() public static method

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.
return Operand

CreateUnmanagedSymbolPointer() public static method

Creates the symbol.
public static CreateUnmanagedSymbolPointer ( TypeSystem typeSystem, string name ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem The type system.
name string The name.
return Operand

CreateVirtualRegister() public static method

Creates a new virtual register Operand.
public static CreateVirtualRegister ( MosaType type, int index ) : Operand
type MosaType The type.
index int The index.
return Operand

GetNull() public static method

Gets the null constant Operand.
public static GetNull ( TypeSystem typeSystem ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem
return Operand

ToString() public method

public ToString ( ) : string
return string

ToString() public method

Returns a string representation of Operand.
public ToString ( bool full ) : string
full bool
return string