top | up | prev | next

PointerEqual Class

Definition at line 813 of OperationRepository.cpp

Constructors

PointerEqual(TypeSymbol* pointerType_, TypeSymbol* boolType_, const Span& span, const boost::uuids::uuid& moduleId)

Member Functions

const char* ClassName() const override
SymbolAccess DeclaredAccess() const override
void GenerateCall(Emitter& emitter, std::vector<GenObject*>& genObjects, OperationFlags flags, const Span& span, const boost::uuids::uuid& moduleId) override
bool IsBasicTypeOperation() const override

Constructor Details

PointerEqual Constructor

cmajor::binder::PointerEqual::PointerEqual(TypeSymbol* pointerType_, TypeSymbol* boolType_, const Span& span, const boost::uuids::uuid& moduleId)

Definition at line 823 of OperationRepository.cpp
Declaration at line 816 of OperationRepository.cpp


Member Function Details

ClassName Member Function

const char * cmajor::binder::PointerEqual::ClassName() const override

Definition at line 820 of OperationRepository.cpp :
 820 { return "PointerEqual"; }


DeclaredAccess Member Function

SymbolAccess cmajor::binder::PointerEqual::DeclaredAccess() const override

Definition at line 817 of OperationRepository.cpp :
 817 { return SymbolAccess::public_; }


GenerateCall Member Function

void cmajor::binder::PointerEqual::GenerateCall(Emitter& emitter, std::vector<GenObject*>& genObjects, OperationFlags flags, const Span& span, const boost::uuids::uuid& moduleId) override

Definition at line 837 of OperationRepository.cpp :
 838 {
 839     Assert(genObjects.size() == 2"operator== needs two objects");
 840     genObjects[0]->Load(emitterOperationFlags::none);
 841     void* left = emitter.Stack().Pop();
 842     genObjects[1]->Load(emitterOperationFlags::none);
 843     void* right = emitter.Stack().Pop();
 844     emitter.Stack().Push(emitter.CreateICmpEQ(leftright));
 845 }


Declaration at line 818 of OperationRepository.cpp


IsBasicTypeOperation Member Function

bool cmajor::binder::PointerEqual::IsBasicTypeOperation() const override

Definition at line 819 of OperationRepository.cpp :
 819 { return true; }


top | up | prev | next