1
2
3
4
5
6 #include <cmajor/ir/GenObject.hpp>
7 #include <cmajor/ir/Emitter.hpp>
8
9 namespace cmajor { namespace ir {
10
11 GenObject::GenObject() : type(nullptr)
12 {
13 }
14
15 GenObject::~GenObject()
16 {
17 }
18
19 void NativeValue::Load(Emitter& emitter, OperationFlags flags)
20 {
21 emitter.Stack().Push(value);
22 }
23
24 void NativeValue::Store(Emitter& emitter, OperationFlags flags)
25 {
26 void* val = emitter.Stack().Pop();
27 emitter.CreateStore(val, value);
28 }
29
30 } }