Vuo  2.3.2
Public Member Functions | List of all members
VuoCompilerConstantsCache Class Reference

Description

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...
 

Constructor & Destructor Documentation

◆ VuoCompilerConstantsCache()

VuoCompilerConstantsCache::VuoCompilerConstantsCache ( Module *  module)
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.

Member Function Documentation

◆ get() [1/2]

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.

◆ get() [2/2]

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.


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