C# 클래스 Mosa.Compiler.Framework.Operand

Operand class
파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

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