Value Abstract Class

Definition

Line 6 of cmsxi/Value.cm

Inheritance

Member Functions

public virtual void GenerateSetValue(Register* reg, MachineCode& machineCode, int line, Instruction* inst)
public virtual nothrow Location* HomeLocation() const
public virtual nothrow void IncNumUses()
public virtual nothrow String<char> IndexStr() const
public virtual nothrow bool IsImmediate(byte& immediateValue) const
public abstract nothrow String<char> Name() const
public virtual nothrow String<char> PrintName() const
public virtual Value* SignExtendTo(Type* targetType, int line)
public virtual Value* TruncateTo(Type* targetType, int line)
public virtual void Validate(Type* type, const String<char>& index)
public virtual Value* ZeroExtendTo(Type* targetType, int line)

Member Variables

public int line
public Type* type

Member Function Details

GenerateSetValue Member Function

public virtual void GenerateSetValue(Register* reg, MachineCode& machineCode, int line, Instruction* inst)

Definition
Line 27 of cmsxi/Value.cm


HomeLocation Member Function

public virtual nothrow Location* HomeLocation()

Definition
Line 19 of cmsxi/Value.cm


IncNumUses Member Function

public virtual nothrow void IncNumUses()

Definition
Line 51 of cmsxi/Value.cm


IndexStr Member Function

public virtual nothrow String<char> IndexStr()

Definition
Line 15 of cmsxi/Value.cm


IsImmediate Member Function

public virtual nothrow bool IsImmediate(byte& immediateValue)

Definition
Line 23 of cmsxi/Value.cm


Name Member Function

public abstract nothrow String<char> Name()

Definition
Line 10 of cmsxi/Value.cm


PrintName Member Function

public virtual nothrow String<char> PrintName()

Definition
Line 11 of cmsxi/Value.cm


SignExtendTo Member Function

public virtual Value* SignExtendTo(Type* targetType, int line)

Definition
Line 31 of cmsxi/Value.cm


TruncateTo Member Function

public virtual Value* TruncateTo(Type* targetType, int line)

Definition
Line 39 of cmsxi/Value.cm


Validate Member Function

public virtual void Validate(Type* type, const String<char>& index)

Definition
Line 43 of cmsxi/Value.cm


ZeroExtendTo Member Function

public virtual Value* ZeroExtendTo(Type* targetType, int line)

Definition
Line 35 of cmsxi/Value.cm