systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
parselib.transforms.sensevar_movement.SensevarMovement Class Reference
Inheritance diagram for parselib.transforms.sensevar_movement.SensevarMovement:
Collaboration diagram for parselib.transforms.sensevar_movement.SensevarMovement:

Public Member Functions

 __init__ (self)
 
 hmodule (self, tree)
 
 hprocess (self, tree)
 
 hmodinitblock (self, tree)
 
 vardecl (self, tree)
 
 forstmt (self, tree)
 
 stmt (self, tree)
 
 hnamedsensvar (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Public Attributes

bool is_in_initblock = False
 
bool is_for_stmt = False
 
bool only_sensevar = False
 
 current_for_stmt = None
 
 current_module = None
 
list initblock_vardecls = []
 
dict sensevar_dict = {}: return
 
 processes = dict()
 
bool current_for_stmt = self.is_in_initblock and self.is_for_stmt
 

Private Member Functions

 __decl_referred_in_sensvar (self, sensvar, vardecl)
 
 __create_sensevar_generate_block (self, tree)
 

Detailed Description

This pass moves sensevar declaration within a for loop to the top of the module, 
and generate a generate block for each sensevar

Definition at line 9 of file sensevar_movement.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.sensevar_movement.SensevarMovement.__init__ ( self)

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 12 of file sensevar_movement.py.

Member Function Documentation

◆ __create_sensevar_generate_block()

parselib.transforms.sensevar_movement.SensevarMovement.__create_sensevar_generate_block ( self,
tree )
private

Definition at line 28 of file sensevar_movement.py.

◆ __decl_referred_in_sensvar()

parselib.transforms.sensevar_movement.SensevarMovement.__decl_referred_in_sensvar ( self,
sensvar,
vardecl )
private

Definition at line 21 of file sensevar_movement.py.

◆ forstmt()

parselib.transforms.sensevar_movement.SensevarMovement.forstmt ( self,
tree )

Definition at line 87 of file sensevar_movement.py.

◆ hmodinitblock()

parselib.transforms.sensevar_movement.SensevarMovement.hmodinitblock ( self,
tree )

Definition at line 71 of file sensevar_movement.py.

◆ hmodule()

parselib.transforms.sensevar_movement.SensevarMovement.hmodule ( self,
tree )

Definition at line 51 of file sensevar_movement.py.

◆ hnamedsensvar()

parselib.transforms.sensevar_movement.SensevarMovement.hnamedsensvar ( self,
tree )

Definition at line 125 of file sensevar_movement.py.

◆ hprocess()

parselib.transforms.sensevar_movement.SensevarMovement.hprocess ( self,
tree )

Definition at line 66 of file sensevar_movement.py.

◆ stmt()

parselib.transforms.sensevar_movement.SensevarMovement.stmt ( self,
tree )

Definition at line 108 of file sensevar_movement.py.

◆ vardecl()

parselib.transforms.sensevar_movement.SensevarMovement.vardecl ( self,
tree )

Definition at line 78 of file sensevar_movement.py.

Member Data Documentation

◆ current_for_stmt [1/2]

parselib.transforms.sensevar_movement.SensevarMovement.current_for_stmt = None

Definition at line 17 of file sensevar_movement.py.

◆ current_for_stmt [2/2]

bool parselib.transforms.sensevar_movement.SensevarMovement.current_for_stmt = self.is_in_initblock and self.is_for_stmt

Definition at line 90 of file sensevar_movement.py.

◆ current_module

parselib.transforms.sensevar_movement.SensevarMovement.current_module = None

Definition at line 18 of file sensevar_movement.py.

◆ initblock_vardecls

list parselib.transforms.sensevar_movement.SensevarMovement.initblock_vardecls = []

Definition at line 19 of file sensevar_movement.py.

◆ is_for_stmt

bool parselib.transforms.sensevar_movement.SensevarMovement.is_for_stmt = False

Definition at line 15 of file sensevar_movement.py.

◆ is_in_initblock

bool parselib.transforms.sensevar_movement.SensevarMovement.is_in_initblock = False

Definition at line 14 of file sensevar_movement.py.

◆ only_sensevar

bool parselib.transforms.sensevar_movement.SensevarMovement.only_sensevar = False

Definition at line 16 of file sensevar_movement.py.

◆ processes

parselib.transforms.sensevar_movement.SensevarMovement.processes = dict()

Definition at line 55 of file sensevar_movement.py.

◆ sensevar_dict

dict parselib.transforms.sensevar_movement.SensevarMovement.sensevar_dict = {}: return

Definition at line 30 of file sensevar_movement.py.


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