Vuo
0.4.2
|
The compiler detail class for VuoType
.
Public Member Functions | |
Value * | generateValueFromStringFunctionCall (Module *module, BasicBlock *block, Value *arg) |
Generates a call to <Type>_valueFromString() . | |
Value * | generateStringFromValueFunctionCall (Module *module, BasicBlock *block, Value *arg) |
Generates a call to typeValueAsString . | |
Type * | getType (void) |
Returns the LLVM type for this Vuo type. | |
![]() | |
VuoBaseDetail (string description, VuoType *base) | |
Creates a VuoType detail class. | |
VuoType * | getBase (void) const |
Returns the VuoType detail class instance's base class instance. | |
void | setBase (VuoType *base) |
Sets the VuoType detail class instance's base class instance. | |
![]() | |
vector< string > | getDependencies (void) |
Returns a list of this VuoCompilerModule's dependencies. | |
Module * | getModule (void) |
Returns this VuoCompilerModule's LLVM module, which other LLVM modules can link to. | |
Static Public Member Functions | |
static VuoCompilerType * | newType (string typeName, Module *module) |
Creates a type from the type definition in the module. | |
![]() | |
static VuoCompilerModule * | newModule (string moduleKey, Module *module) |
Instantiates a VuoCompilerModule (or child class) corresponding to the type of VuoCompilerModule defined in the LLVM module. | |
static Function * | declareFunctionInModule (Module *module, Function *function) |
Copies the function's header into the LLVM module, if it's not already there. | |
Additional Inherited Members | |
![]() | |
VuoCompilerModule (VuoModule *base, Module *module) | |
Creates a VuoCompilerModule associated with the given LLVM module, as a pseudo compiler detail class of the given VuoModule. | |
virtual | ~VuoCompilerModule () |
Destructor. | |
virtual void | parseMetadata (void) |
Parse the metadata of this VuoCompilerModule (name, description, ...) from the LLVM module. | |
string | nameForGlobal (string genericGlobalVarOrFuncName) |
Returns the mangled name for a function or global variable. | |
void | renameGlobalVarsAndFuncs (void) |
Renames the global variables and functions within the LLVM module so that they are unique to this VuoCompilerModule. | |
![]() | |
vector< string > | dependencies |
The moduleDependencies in this module's definition. | |
Module * | module |
The LLVM module that defines this node class or type. | |
VuoModule * | base |
The (pseudo) base for this (pseudo) compiler detail class. | |
VuoCompilerBitcodeParser * | parser |
The parser of the LLVM module. | |
Value * VuoCompilerType::generateStringFromValueFunctionCall | ( | Module * | module, |
BasicBlock * | block, | ||
Value * | arg | ||
) |
Generates a call to typeValueAsString
.
module | The destination LLVM module (i.e., generated code). |
block | The LLVM block to which to append the function call. |
arg | The argument to pass to typeValueAsString . |
typeValueAsString
. Value * VuoCompilerType::generateValueFromStringFunctionCall | ( | Module * | module, |
BasicBlock * | block, | ||
Value * | arg | ||
) |
Generates a call to <Type>_valueFromString()
.
module | The destination LLVM module (i.e., generated code). |
block | The LLVM block to which to append the function call. |
arg | The argument to pass to <Type>_valueFromString() . |
<Type>_valueFromString()
.
|
static |
Creates a type from the type definition in the module.
If the module does not contain a type definition, returns NULL.