![]() |
![]() |
Declaration object for genvars. More...
#include <cgenvar.h>
Public Member Functions | |
CGenvar (CSymbol *symbol, Coord_t *aLoc) | |
Create a genvar declaration. | |
virtual CDecl * | Clone (CObstack *heap) |
Create a clone of this declaration. | |
virtual NodeType_t | GetNodeType (void) |
Get node type of declaration. | |
virtual INT32 | GetWidth (void) |
Get width of declaration. | |
virtual int | IsWidthEvaluateable () |
Determine if width is evaluateable. | |
virtual int | IsWidthConstant (void) |
Determine if packed width of declaration is constant, ie dependent upon only constants and parameters. | |
virtual int | IsWidthVolatile (void) |
Determine if packed width of declaration is volatile, ie depend upon parameters or variables. | |
virtual CNode * | GetWidthExp () |
Get expression representing genvar width. | |
virtual void | Dump (FILE *f) |
Dump genvar info to file descriptor. | |
Protected Member Functions | |
void | Copy (CObstack *heap, CGenvar &d) |
Deep copy of declaration. |
Declaration object for genvars.
CGenvar::CGenvar | ( | CSymbol * | symbol, |
Coord_t * | aLoc | ||
) |
Create a genvar declaration.
symbol | name of declaration. |
aLoc | file coordinates of declaration. |
virtual CDecl* CGenvar::Clone | ( | CObstack * | heap | ) | [virtual] |
Create a clone of this declaration.
heap | heap to use for allocation. |
Implements CDecl.
void CGenvar::Copy | ( | CObstack * | heap, |
CGenvar & | d | ||
) | [inline, protected] |
Deep copy of declaration.
heap | heap to use for allocation. |
d | declaration to copy. |
virtual void CGenvar::Dump | ( | FILE * | f | ) | [virtual] |
virtual NodeType_t CGenvar::GetNodeType | ( | void | ) | [inline, virtual] |
virtual INT32 CGenvar::GetWidth | ( | void | ) | [inline, virtual] |
Get width of declaration.
virtual CNode* CGenvar::GetWidthExp | ( | void | ) | [inline, virtual] |
virtual int CGenvar::IsWidthConstant | ( | void | ) | [inline, virtual] |
Determine if packed width of declaration is constant, ie dependent upon only constants and parameters.
virtual int CGenvar::IsWidthEvaluateable | ( | void | ) | [inline, virtual] |
virtual int CGenvar::IsWidthVolatile | ( | void | ) | [inline, virtual] |
Determine if packed width of declaration is volatile, ie depend upon parameters or variables.