top | up | prev | next

JumpInstruction Class

Definition at line 326 of Instruction.hpp

Constructors

JumpInstruction(BasicBlock* dest_)

Member Functions

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

Member Variables

BasicBlock* dest

Constructor Details

JumpInstruction Constructor

cmsxi::JumpInstruction::JumpInstruction(BasicBlock * dest_)

Definition at line 586 of Instruction.cpp :
586 : Instruction()dest(dest_)
587 {
588 }


Declaration at line 329 of Instruction.hpp


Member Function Details

Write Member Function

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

Definition at line 590 of Instruction.cpp :
591 {
592     formatter.Write(Format("jmp "8));
593     formatter.Write("@" + std::to_string(dest->Id()));
594     WriteMetadataRef(formatter);
595 }


Calls: cmsxi::BasicBlock::Id , cmsxi::Instruction::WriteMetadataRef


top | up | prev | next