top | up | prev | next

EqualInstruction Abstract Class

Definition at line 153 of Instruction.hpp

Constructors

EqualInstruction(Value* left_, Value* right_)

Member Functions

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

Constructor Details

EqualInstruction Constructor

cmsxi::EqualInstruction::EqualInstruction(Value * left_, Value * right_)

Definition at line 225 of Instruction.cpp :
225 : BinaryInstruction(left_right_)
226 {
227 }


Declaration at line 156 of Instruction.hpp


Member Function Details

GetType Member Function

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

Definition at line 229 of Instruction.cpp :
230 {
231     return context.GetBoolType();
232 }


Declaration at line 157 of Instruction.hpp

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

Calls: cmsxi::Context::GetBoolType


Write Member Function

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

Definition at line 234 of Instruction.cpp :
235 {
236     WriteResult(formatterfunctioncontext);
237     formatter.Write(" = equal ");
238     WriteArgs(formattercontext);
239     WriteMetadataRef(formatter);
240 }


Calls: cmsxi::BinaryInstruction::WriteArgs , cmsxi::Instruction::WriteMetadataRef , cmsxi::Instruction::WriteResult


top | up | prev | next