ACT Library
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ActCHPMemory Class Reference

#include <chpdecomp.h>

Inheritance diagram for ActCHPMemory:
ActPass

Classes

struct  memvar_info
 

Public Member Functions

 ActCHPMemory (Act *a)
 
int run (Process *p=NULL)
 
- Public Member Functions inherited from ActPass
 ActPass (Act *_a, const char *name, int doroot=0)
 
virtual ~ActPass ()
 release storage
 
void update (Process *p)
 
int rundeps (Process *p=NULL)
 
const char * getName ()
 
virtual int run (Process *p=NULL)
 
int completed ()
 
int pending ()
 
void * getMap (UserDef *u)
 
void * getGlobalInfo ()
 
ActgetAct ()
 
ActPassgetPass (const char *name)
 
ProcessgetRoot ()
 
virtual void run_recursive (Process *p=NULL, int mode=0)
 
void disableUpdate ()
 
void enableUpdate ()
 
void mkStickyVisited ()
 
void clrStickyVisited ()
 

Private Member Functions

void * local_op (Process *p, int mode=0)
 
void free_local (void *)
 
void _extract_memory (act_chp_lang_t *c)
 
int _fresh_memdata (Scope *sc, int bw)
 
void _fresh_release (int idx)
 
void _subst_dynamic_array (list_t *l, Expr *e)
 
int _is_dynamic_array (ActId *id)
 

Private Attributes

ActBooleanizePass_bp
 
int _memdata_len
 
struct memvar_info_memdata_var
 
act_boolean_netlist_t_curbnl
 

Additional Inherited Members

- Static Public Member Functions inherited from ActPass
static void refreshAll (Act *a, Process *p=NULL)
 
- Protected Member Functions inherited from ActPass
virtual void _actual_update (Process *p)
 
int AddDependency (const char *pass)
 
- Protected Attributes inherited from ActPass
int _finished
 has the pass finished execution?
 
int _sticky_visited
 
Acta
 
list_t * deps
 
list_t * fwdeps
 
const char * name
 the name for the pass
 
int _update_propagate
 
int _root_dirty
 
Process_root
 the root of the design
 
void * _global_info
 

Constructor & Destructor Documentation

◆ ActCHPMemory()

ActCHPMemory::ActCHPMemory ( Act a)

Member Function Documentation

◆ _extract_memory()

void ActCHPMemory::_extract_memory ( act_chp_lang_t c)
private

◆ _fresh_memdata()

int ActCHPMemory::_fresh_memdata ( Scope sc,
int  bw 
)
private

◆ _fresh_release()

void ActCHPMemory::_fresh_release ( int  idx)
private

◆ _is_dynamic_array()

int ActCHPMemory::_is_dynamic_array ( ActId id)
private

◆ _subst_dynamic_array()

void ActCHPMemory::_subst_dynamic_array ( list_t *  l,
Expr e 
)
private

◆ free_local()

void ActCHPMemory::free_local ( void *  )
privatevirtual

Free the data structure allocated by calls to pre_op()/local_op().

Reimplemented from ActPass.

◆ local_op()

void * ActCHPMemory::local_op ( Process p,
int  mode = 0 
)
privatevirtual

This function is called exactly once per process that is reachable from the root of the pass. It is called after all the types instantiated within the process are visited.

Parameters
pis the process type
modeis the mode flag passed to this call.
Returns
the data structure that is to be associated with this process

Reimplemented from ActPass.

◆ run()

int ActCHPMemory::run ( Process p = NULL)
virtual

Run the entire pass with the specified top-level process name

Parameters
pis the tyoe of the top-level process; NULL means that the top-level of the design is the global namespace and not a specific process.
Returns
1 on success, 0 if any dependencies failed.

Reimplemented from ActPass.

Member Data Documentation

◆ _bp

ActBooleanizePass* ActCHPMemory::_bp
private

◆ _curbnl

act_boolean_netlist_t* ActCHPMemory::_curbnl
private

◆ _memdata_len

int ActCHPMemory::_memdata_len
private

◆ _memdata_var

struct memvar_info* ActCHPMemory::_memdata_var
private

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