Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

nci/suif/suif2b/utils/value_block_utils.h File Reference

#include "suifkernel/suif_env.h"
#include "basicnodes/basic_forwarders.h"
#include "suifnodes/suif_forwarders.h"

Functions

void append_to_multi_value_block ( MultiValueBlock* block, ValueBlock* value_block )
 append a value block to a multivalue block. More...

VariableSymbol* build_string_constant_variable (SuifEnv *env,const char *string)
 Build a string constant. More...

VariableSymbol* build_initialized_variable ( SuifEnv *env,const LString &name,DataType *type,ValueBlock *vb,bool make_static = false)
 Build a variable for a given value block. More...


Function Documentation

void append_to_multi_value_block ( MultiValueBlock * block,
ValueBlock * value_block)

append a value block to a multivalue block.

The position is calculated from the size of the multi value block BUG: Padding is not performed

VariableSymbol * build_initialized_variable ( SuifEnv * env,
const LString & name,
DataType * type,
ValueBlock * vb,
bool make_static = false)

Build a variable for a given value block.

Parameters:
suif   environment
name   for variable
type   for variable
value   block
true   for static (default false)

VariableSymbol * build_string_constant_variable ( SuifEnv * env,
const char * string)

Build a string constant.

The variable is added at global scope.

Parameters:
Suif   environment
The   string

NB: Requires that there be exactly one FileBlock in the suif environment

Generated at Mon Jul 31 13:42:41 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000