top | up | prev | next

LvalueReferenceMoveAssignment Class

Definition at line 1178 of OperationRepository.cpp

Constructors

LvalueReferenceMoveAssignment(TypeSymbol* type_, TypeSymbol* voidType_, 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

Member Variables

TypeSymbol* type

Constructor Details

LvalueReferenceMoveAssignment Constructor

cmajor::binder::LvalueReferenceMoveAssignment::LvalueReferenceMoveAssignment(TypeSymbol* type_, TypeSymbol* voidType_, const Span& span, const boost::uuids::uuid& moduleId)

Definition at line 1190 of OperationRepository.cpp
Declaration at line 1181 of OperationRepository.cpp


Member Function Details

ClassName Member Function

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

Definition at line 1185 of OperationRepository.cpp :
1185 { return "LvalueReferenceMoveAssignment"; }


DeclaredAccess Member Function

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

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


GenerateCall Member Function

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

Definition at line 1205 of OperationRepository.cpp :
1206 {
1207     Assert(genObjects.size() == 2"copy assignment needs two objects");
1208     genObjects[1]->Load(emitterOperationFlags::none);
1209     void* rvalueRefValue = emitter.Stack().Pop();
1210     emitter.Stack().Push(emitter.CreateLoad(rvalueRefValue));
1211     genObjects[0]->Store(emitterOperationFlags::none);
1212 }


Declaration at line 1183 of OperationRepository.cpp


IsBasicTypeOperation Member Function

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

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


top | up | prev | next