Vuo
2.3.2
compiler
VuoCompilerInstanceData.cc
Go to the documentation of this file.
1
10
#include "
VuoCompilerCodeGenUtilities.hh
"
11
#include "
VuoCompilerInstanceData.hh
"
12
#include "
VuoCompilerInstanceDataClass.hh
"
13
#include "
VuoPort.hh
"
14
18
VuoCompilerInstanceData::VuoCompilerInstanceData
(
VuoCompilerInstanceDataClass
*instanceDataClass)
19
:
VuoCompilerNodeArgument
(new
VuoPort
(instanceDataClass->getBase()))
20
{
21
}
22
26
Value *
VuoCompilerInstanceData::generateLoad
(Module *module, BasicBlock *block, Value *nodeContextValue)
27
{
28
return
VuoCompilerCodeGenUtilities::generateGetNodeContextInstanceData
(module, block, nodeContextValue,
getType
());
29
}
30
34
void
VuoCompilerInstanceData::generateStore
(Module *module, BasicBlock *block, Value *nodeContextValue, Value *instanceDataValue)
35
{
36
VuoCompilerCodeGenUtilities::generateSetNodeContextInstanceData
(module, block, nodeContextValue, instanceDataValue);
37
}
38
42
Value *
VuoCompilerInstanceData::getVariable
(Module *module, BasicBlock *block, Value *nodeContextValue)
43
{
44
return
VuoCompilerCodeGenUtilities::generateGetNodeContextInstanceDataVariable
(module, block, nodeContextValue,
getType
());
45
}
46
50
Type *
VuoCompilerInstanceData::getType
(
void
)
51
{
52
return
static_cast<
VuoCompilerInstanceDataClass
*
>
(
getBase
()->
getClass
()->
getCompiler
())->
getType
();
53
}
Generated on Sat Jun 19 2021 10:17:42 for Vuo by
1.9.1