top | up | prev | next

LocalInstruction Abstract Class

Definition at line 235 of Instruction.hpp

Constructors

LocalInstruction(Type* type_)

Member Functions

Type* GetType(Context& context) override
void Write(CodeFormatter& formatter, Function& function, Context& context)

Member Variables

Type* type

Constructor Details

LocalInstruction Constructor

cmsxi::LocalInstruction::LocalInstruction(Type * type_)

Definition at line 366 of Instruction.cpp :
366 : Instruction()type(type_)
367 {
368 }


Declaration at line 238 of Instruction.hpp


Member Function Details

GetType Member Function

Type * cmsxi::LocalInstruction::GetType(Context & context) override

Definition at line 370 of Instruction.cpp :
371 {
372     return context.GetPtrType(type);
373 }


Declaration at line 239 of Instruction.hpp

Base class overridden functions: cmsxi::Instruction::GetType , cmsxi::Value::GetType

Calls: cmsxi::Context::GetPtrType


Write Member Function

void cmsxi::LocalInstruction::Write(CodeFormatter& formatter, Function & function, Context & context)

Definition at line 375 of Instruction.cpp :
376 {
377     WriteResult(formatterfunctioncontext);
378     formatter.Write(" = local ");
379     formatter.Write(type->Name());
380     WriteMetadataRef(formatter);
381 }


Calls: cmsxi::Instruction::WriteMetadataRef , cmsxi::Instruction::WriteResult , cmsxi::Type::Name


top | up | prev | next