systemc-clang 2.0.0
Parsing SystemC constructs
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
parselib.transforms.alias_translation.AliasTranslation Class Reference
Inheritance diagram for parselib.transforms.alias_translation.AliasTranslation:
Inheritance graph
[legend]
Collaboration diagram for parselib.transforms.alias_translation.AliasTranslation:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self)
 
 hsensedge (self, tree)
 
 syscread (self, tree)
 
 hsubassign (self, tree)
 
 haddassign (self, tree)
 
 hcompoundasisgn (self, tree)
 
 hbinop (self, tree)
 
 blkassign (self, tree)
 
 htype (self, tree)
 
 arraydimlength (self, tree)
 
 htypearray (self, tree)
 
 stmt (self, tree)
 
 hunop (self, tree)
 
- Public Member Functions inherited from parselib.transforms.top_down.TopDown
 __default__ (self, t)
 

Static Public Attributes

list COMPOUND_ASSIGN = ["*=", "+=", "-=", "/=", "%=", "|=", "&=", "^=", "<<=", ">>="]
 

Protected Member Functions

 _get_op_token_from_compound_assign (self, op)
 

Detailed Description

This pass merges separate nodes that are created for easy recognition for grammar,
but actually shares the same semantics.
TODO: this pass does almost the same thing as the pass NodeMerging Pass, and
TODO: the 2 classes should be merged together

Definition at line 7 of file alias_translation.py.

Constructor & Destructor Documentation

◆ __init__()

parselib.transforms.alias_translation.AliasTranslation.__init__ ( self)

Reimplemented from parselib.transforms.top_down.TopDown.

Definition at line 24 of file alias_translation.py.

Member Function Documentation

◆ _get_op_token_from_compound_assign()

parselib.transforms.alias_translation.AliasTranslation._get_op_token_from_compound_assign ( self,
op )
protected

Definition at line 16 of file alias_translation.py.

◆ arraydimlength()

parselib.transforms.alias_translation.AliasTranslation.arraydimlength ( self,
tree )

Definition at line 89 of file alias_translation.py.

◆ blkassign()

parselib.transforms.alias_translation.AliasTranslation.blkassign ( self,
tree )

Definition at line 66 of file alias_translation.py.

◆ haddassign()

parselib.transforms.alias_translation.AliasTranslation.haddassign ( self,
tree )

Definition at line 43 of file alias_translation.py.

◆ hbinop()

parselib.transforms.alias_translation.AliasTranslation.hbinop ( self,
tree )
Convert a compound assignment into assignment of binary operator
Nested compound assignment is not supported

Definition at line 49 of file alias_translation.py.

◆ hcompoundasisgn()

parselib.transforms.alias_translation.AliasTranslation.hcompoundasisgn ( self,
tree )

Definition at line 46 of file alias_translation.py.

◆ hsensedge()

parselib.transforms.alias_translation.AliasTranslation.hsensedge ( self,
tree )

Definition at line 27 of file alias_translation.py.

◆ hsubassign()

parselib.transforms.alias_translation.AliasTranslation.hsubassign ( self,
tree )

Definition at line 40 of file alias_translation.py.

◆ htype()

parselib.transforms.alias_translation.AliasTranslation.htype ( self,
tree )

Definition at line 82 of file alias_translation.py.

◆ htypearray()

parselib.transforms.alias_translation.AliasTranslation.htypearray ( self,
tree )

Definition at line 97 of file alias_translation.py.

◆ hunop()

parselib.transforms.alias_translation.AliasTranslation.hunop ( self,
tree )

Definition at line 109 of file alias_translation.py.

◆ stmt()

parselib.transforms.alias_translation.AliasTranslation.stmt ( self,
tree )
filters out noop

Definition at line 103 of file alias_translation.py.

◆ syscread()

parselib.transforms.alias_translation.AliasTranslation.syscread ( self,
tree )
handles the syscread for array ref

Definition at line 32 of file alias_translation.py.

Member Data Documentation

◆ COMPOUND_ASSIGN

list parselib.transforms.alias_translation.AliasTranslation.COMPOUND_ASSIGN = ["*=", "+=", "-=", "/=", "%=", "|=", "&=", "^=", "<<=", ">>="]
static

Definition at line 14 of file alias_translation.py.


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