Vuo  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
VuoCompilerConstantStringCache Class Reference

Description

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.
 

Member Function Documentation

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.


The documentation for this class was generated from the following files: