A cache of LLVM constant values generated for a module.
Reduces the number of constants in generated bitcode.
Definition at line 15 of file VuoCompilerConstantsCache.hh.
Public Member Functions | |
VuoCompilerConstantsCache (Module *module) | |
Creates an object that will generate code into module for constants that are not yet cached. More... | |
Constant * | get (const string &s) |
Returns a constant containing the value of the given string, generating code for the constant if needed. More... | |
Constant * | get (const vector< size_t > &a) |
Returns a constant array containing the given numbers as unsigned longs, generating code for the constant if needed. More... | |
|
explicit |
Creates an object that will generate code into module for constants that are not yet cached.
Definition at line 17 of file VuoCompilerConstantsCache.cc.
Constant * VuoCompilerConstantsCache::get | ( | const string & | s | ) |
Returns a constant containing the value of the given string, generating code for the constant if needed.
Definition at line 25 of file VuoCompilerConstantsCache.cc.
Constant * VuoCompilerConstantsCache::get | ( | const vector< size_t > & | a | ) |
Returns a constant array containing the given numbers as unsigned longs, generating code for the constant if needed.
Definition at line 40 of file VuoCompilerConstantsCache.cc.