Vuo
1.2.4
|
A cache of LLVM constant values generated for a module.
Reduces the number of constants in generated bitcode.
Public Member Functions | |
Constant * | get (Module *module, const string &s) |
Returns a constant containing the value of the given string, generating code for the constant if needed. | |
void | clear (void) |
Empties the cache. | |
void VuoCompilerConstantStringCache::clear | ( | void | ) |
Empties the cache.
Call this function before switching to a different LLVM module.
Constant * VuoCompilerConstantStringCache::get | ( | Module * | module, |
const string & | s | ||
) |
Returns a constant containing the value of the given string, generating code for the constant if needed.
Consecutive calls of this function should all pass the same module until clear() is called.