top | up | prev | next

PtrDiffInstruction Abstract Class

Definition at line 296 of Instruction.hpp

Constructors

PtrDiffInstruction(Value* leftPtr_, Value* rightPtr_)

Member Functions

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

Member Variables

Value* leftPtr
Value* rightPtr

Constructor Details

PtrDiffInstruction Constructor

cmsxi::PtrDiffInstruction::PtrDiffInstruction(Value * leftPtr_, Value * rightPtr_)

Definition at line 502 of Instruction.cpp :
502 : Instruction()leftPtr(leftPtr_)rightPtr(rightPtr_)
503 {
504 }


Declaration at line 299 of Instruction.hpp


Member Function Details

GetType Member Function

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

Definition at line 506 of Instruction.cpp :
507 {
508     return context.GetLongType();
509 }


Declaration at line 300 of Instruction.hpp

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

Calls: cmsxi::Context::GetLongType


Write Member Function

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

Definition at line 511 of Instruction.cpp

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


top | up | prev | next