#include <dsym.h>
Inheritance diagram for sym_ident:
Public Member Functions | |
sym_ident (STRING n) | |
sym_ident () | |
const uint | get_sy_kind (void) |
void | set_alloc (uint alloc) |
const uint | get_alloc (void) |
void | set_id_kind (uint kind) |
const uint | get_id_kind (void) |
void | set_id_type (pType t) |
const pType | get_id_type (void) |
Private Attributes | |
pType | ty |
uint | id_alloc: 3 |
uint | id_kind: 3 |
uint | unused: 26 |
Note that this does not include constants (they will be sym_const objects).
The properties of identifiers are:
allocation
Is the identifier allocated staticly or in the frame. Signals and variables declared in processes are allocated in static data. Variables in procedures and functions are frame allocated.
Variable kind
Is the identifier a signal or a variable.
Each variable has a declaration in the p-code generated for a process. For frame allocated variables this declaration must identify the variable as a frame variable. The code generator can then build up the frame frame size and offsets within a frame. This fully decouples p-code generation from any machine dependent code generation.
Definition at line 161 of file dsym.h.
|
Definition at line 168 of file dsym.h. References id_alloc, id_kind, NULL, sy_bad_alloc, sy_bad_ident_type, and ty.
00168 : sym_scoped( n ) 00169 { 00170 ty = NULL; 00171 id_alloc = sy_bad_alloc; 00172 id_kind = sy_bad_ident_type; 00173 } |
|
Definition at line 175 of file dsym.h. References id_alloc, id_kind, NULL, sy_bad_alloc, sy_bad_ident_type, and ty.
00176 { 00177 ty = NULL; 00178 id_alloc = sy_bad_alloc; 00179 id_kind = sy_bad_ident_type; 00180 } |
|
Reimplemented from sym. Definition at line 188 of file dsym.h. References id_alloc, and uint.
00189 { 00190 return id_alloc; 00191 } |
|
Reimplemented from sym. Definition at line 197 of file dsym.h.
00198 { 00199 return id_kind; 00200 } |
|
Reimplemented from sym. Definition at line 207 of file dsym.h. References ty.
00208 { 00209 return ty; 00210 } // get_type |
|
Reimplemented from sym. Definition at line 182 of file dsym.h. References sy_ident, and uint.
00182 { return sy_ident; } |
|
Reimplemented from sym. Definition at line 184 of file dsym.h. References id_alloc.
00185 { 00186 id_alloc = alloc; 00187 } // set_offset |
|
Reimplemented from sym. Definition at line 193 of file dsym.h. References id_kind.
00194 { 00195 id_kind = kind; 00196 } |
|
Reimplemented from sym. Definition at line 202 of file dsym.h.
00203 { 00204 assert( t != NULL ); 00205 ty = t; 00206 } // set_type |
|
Definition at line 164 of file dsym.h. Referenced by get_alloc(), set_alloc(), and sym_ident(). |
|
Definition at line 164 of file dsym.h. Referenced by get_id_kind(), set_id_kind(), and sym_ident(). |
|
Definition at line 163 of file dsym.h. Referenced by get_id_type(), set_id_type(), and sym_ident(). |
|
|