Vuo  2.0.0
VuoCompilerInstanceData.cc
Go to the documentation of this file.
1 
13 #include "VuoPort.hh"
14 
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, getBase()->getClass()->getCompiler()->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, getBase()->getClass()->getCompiler()->getType());
45 }