top | up | prev | next

Value Abstract Class

Definition at line 22 of Value.hpp

Constructors

Value()

Member Functions

void AddDependencies(GlobalVariable* variable, const std::unordered_map<std::string, GlobalVariable*>& nameMap, std::unordered_map<GlobalVariable*, std::set<GlobalVariable*>>& dependencies, Context& context) virtual
Type* GetType(Context& context) pure virtual
bool IsAggregateValue() const virtual
bool IsLongValue() const virtual
bool IsStringValue() const virtual
std::string Name(Context& context) pure virtual

Constructor Details

Value Constructor

cmsxi::Value::Value()

Definition at line 12 of Value.cpp :
 13 {
 14 }


Declaration at line 25 of Value.hpp


Member Function Details

AddDependencies Member Function

void cmsxi::Value::AddDependencies(GlobalVariable * variable, const std::unordered_map<std::string, GlobalVariable *>& nameMap, std::unordered_map<GlobalVariable *, std::set<GlobalVariable *>>& dependencies, Context & context) virtual

Definition at line 20 of Value.cpp :
 22 {
 23 }


Declaration at line 32 of Value.hpp

Derived class overrides: cmsxi::ArrayValue::AddDependencies , cmsxi::ConversionValue::AddDependencies , cmsxi::StructureValue::AddDependencies

Called by: cmsxi::ArrayValue::AddDependencies , cmsxi::StructureValue::AddDependencies


GetType Member Function

Type * cmsxi::Value::GetType(Context & context) pure virtual

Definition at line 27 of Value.hpp

Derived class overrides: cmsxi::ArrayValue::GetType , cmsxi::BinaryInstruction::GetType , cmsxi::BoolValue::GetType , cmsxi::ByteValue::GetType , cmsxi::CallInstruction::GetType , cmsxi::ClsIdValue::GetType , cmsxi::ConversionValue::GetType , cmsxi::DoubleValue::GetType , cmsxi::ElemAddrInstruction::GetType , cmsxi::EqualInstruction::GetType , cmsxi::FloatValue::GetType , cmsxi::Function::GetType , cmsxi::GlobalVariable::GetType , cmsxi::Instruction::GetType , cmsxi::IntValue::GetType , cmsxi::LessInstruction::GetType , cmsxi::LoadInstruction::GetType , cmsxi::LocalInstruction::GetType , cmsxi::LongValue::GetType , cmsxi::NullValue::GetType , cmsxi::ParamInstruction::GetType , cmsxi::PtrDiffInstruction::GetType , cmsxi::PtrOffsetInstruction::GetType , cmsxi::SByteValue::GetType , cmsxi::ShortValue::GetType , cmsxi::StringValue::GetType , cmsxi::StructureValue::GetType , cmsxi::TrapInstruction::GetType , cmsxi::UIntValue::GetType , cmsxi::ULongValue::GetType , cmsxi::UShortValue::GetType , cmsxi::UnaryInstruction::GetType , cmsxi::UnaryTypeInstruction::GetType

Called by: cmsxi::ArgInstruction::Write , cmsxi::ArrayValue::Name , cmsxi::BinaryInstruction::GetType , cmsxi::BinaryInstruction::WriteArgs , cmsxi::BranchInstruction::Write , cmsxi::CallInstruction::GetType , cmsxi::CallInstruction::Write , cmsxi::ConversionValue::Name , cmsxi::ElemAddrInstruction::GetType , cmsxi::ElemAddrInstruction::Write , cmsxi::GlobalVariable::Write , cmsxi::LoadInstruction::GetType , cmsxi::LoadInstruction::Write , cmsxi::PtrDiffInstruction::Write , cmsxi::PtrOffsetInstruction::GetType , cmsxi::PtrOffsetInstruction::Write , cmsxi::RetInstruction::Write , cmsxi::StoreInstruction::Write , cmsxi::StructureValue::Name , cmsxi::SwitchInstruction::Write , cmsxi::TrapInstruction::Write , cmsxi::UnaryInstruction::GetType , cmsxi::UnaryInstruction::WriteArg


IsAggregateValue Member Function

bool cmsxi::Value::IsAggregateValue() const virtual

Definition at line 30 of Value.hpp :
 30 { return false; }

Derived class overrides: cmsxi::ArrayValue::IsAggregateValue , cmsxi::StructureValue::IsAggregateValue

Called by: cmsxi::ArrayValue::Name , cmsxi::GlobalVariable::Write , cmsxi::StructureValue::Name


IsLongValue Member Function

bool cmsxi::Value::IsLongValue() const virtual

Definition at line 29 of Value.hpp :
 29 { return false; }

Derived class overrides: cmsxi::LongValue::IsLongValue

Called by: cmsxi::ElemAddrInstruction::GetType


IsStringValue Member Function

bool cmsxi::Value::IsStringValue() const virtual

Definition at line 31 of Value.hpp :
 31 { return false; }

Derived class overrides: cmsxi::StringValue::IsStringValue

Called by: cmsxi::GlobalVariable::Write


Name Member Function

std::string cmsxi::Value::Name(Context & context) pure virtual

Definition at line 28 of Value.hpp

Derived class overrides: cmsxi::ArrayValue::Name , cmsxi::BoolValue::Name , cmsxi::ByteValue::Name , cmsxi::ClsIdValue::Name , cmsxi::ConstantValue::Name , cmsxi::ConversionValue::Name , cmsxi::DoubleValue::Name , cmsxi::FloatValue::Name , cmsxi::Function::Name , cmsxi::GlobalVariable::Name , cmsxi::Instruction::Name , cmsxi::IntValue::Name , cmsxi::LongValue::Name , cmsxi::NullValue::Name , cmsxi::SByteValue::Name , cmsxi::ShortValue::Name , cmsxi::StringValue::Name , cmsxi::StructureValue::Name , cmsxi::UIntValue::Name , cmsxi::ULongValue::Name , cmsxi::UShortValue::Name

Called by: cmsxi::ArgInstruction::Write , cmsxi::ArrayValue::AddDependencies , cmsxi::BinaryInstruction::WriteArgs , cmsxi::BranchInstruction::Write , cmsxi::CallInstruction::Write , cmsxi::ElemAddrInstruction::Write , cmsxi::LoadInstruction::Write , cmsxi::PtrDiffInstruction::Write , cmsxi::PtrOffsetInstruction::Write , cmsxi::RetInstruction::Write , cmsxi::StoreInstruction::Write , cmsxi::StructureValue::AddDependencies , cmsxi::SwitchInstruction::Write , cmsxi::TrapInstruction::Write , cmsxi::UnaryInstruction::WriteArg


top | up | prev | next