top | up | prev | next

LessInstruction Abstract Class

Definition at line 161 of Instruction.hpp

Constructors

LessInstruction(Value* left_, Value* right_)

Member Functions

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

Constructor Details

LessInstruction Constructor

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

Definition at line 242 of Instruction.cpp :
242 : BinaryInstruction(left_right_)
243 {
244 }


Declaration at line 164 of Instruction.hpp


Member Function Details

GetType Member Function

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

Definition at line 246 of Instruction.cpp :
247 {
248     return context.GetBoolType();
249 }


Declaration at line 165 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::LessInstruction::Write(CodeFormatter& formatter, Function & function, Context & context)

Definition at line 251 of Instruction.cpp :
252 {
253     WriteResult(formatterfunctioncontext);
254     formatter.Write(" = less ");
255     WriteArgs(formattercontext);
256     WriteMetadataRef(formatter);
257 }


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


top | up | prev | next