top | up | prev | next

PointerLess Class

Definition at line 888 of OperationRepository.cpp

Constructors

PointerLess(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

PointerLess Constructor

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

Definition at line 898 of OperationRepository.cpp
Declaration at line 891 of OperationRepository.cpp


Member Function Details

ClassName Member Function

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

Definition at line 895 of OperationRepository.cpp :
 895 { return "PointerLess"; }


DeclaredAccess Member Function

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

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


GenerateCall Member Function

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

Definition at line 912 of OperationRepository.cpp :
 913 {
 914     Assert(genObjects.size() == 2"operator< needs two objects");
 915     genObjects[0]->Load(emitterOperationFlags::none);
 916     void* left = emitter.Stack().Pop();
 917     genObjects[1]->Load(emitterOperationFlags::none);
 918     void* right = emitter.Stack().Pop();
 919     emitter.Stack().Push(emitter.CreateICmpULT(leftright));
 920 }


Declaration at line 893 of OperationRepository.cpp


IsBasicTypeOperation Member Function

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

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


top | up | prev | next