IDExpr Class ReferenceAn expression representing a variable.
More...
#include <IDExpr.h>
Inheritance diagram for IDExpr:
[legend]List of all members.
Detailed Description
An expression representing a variable.
Polaris Expression - See also:
- Expression/IDExpr.h
Expression/IDExpr.h
Expression.cc
An IDExpr is the expression for an identifier within Polaris.
Definition at line 28 of file IDExpr.h.
Constructor & Destructor Documentation
| IDExpr::IDExpr |
( |
const Type & |
e, |
|
|
const Symbol & |
name_sym |
|
) |
[inline] |
|
| IDExpr::IDExpr |
( |
const IDExpr & |
e |
) |
[inline] |
|
| IDExpr::IDExpr |
( |
const Type & |
e |
) |
[inline, protected] |
|
Member Function Documentation
| const Symbol & IDExpr::symbol |
( |
|
) |
const [virtual] |
|
| Symbol & IDExpr::symbol |
( |
|
) |
[virtual] |
|
| void IDExpr::symbol |
( |
const Symbol & |
s |
) |
[virtual] |
|
| const Expression & IDExpr::substituted_guarded |
( |
|
) |
const [virtual] |
|
| Expression & IDExpr::substituted_guarded |
( |
|
) |
[virtual] |
|
| Boolean IDExpr::substituted_valid |
( |
|
) |
const [virtual] |
|
| void IDExpr::substituted |
( |
Expression * |
|
) |
[virtual] |
|
| Expression * IDExpr::grab_substituted |
( |
|
) |
[virtual] |
|
|
|
Access the expression representing the constant value that this variable may be safely replaced with.
This constant value is determined by the constant propagation pass.
Reimplemented from Expression.
Definition at line 4846 of file Expression.cc.
References _substituted. |
| int IDExpr::structures_OK |
( |
|
) |
const [virtual] |
|
| void IDExpr::convert |
( |
BinRep & |
exprSet, |
|
|
Symtab & |
symtab |
|
) |
[virtual] |
|
|
|
... The second argument of tuple pairs
Implements Expression.
Definition at line 4907 of file Expression.cc.
References _substituted, _symbol, Expression::empty_overflow(), Expression::get_type(), BinRep::is_integer(), BinRep::is_string(), Expression::make_overflow(), Type::set(), Expression::tableEntry(), BinRep::to_integer(), and BinRep::to_string(). |
| void IDExpr::print_debug |
( |
ostream & |
o, |
|
|
Boolean |
debug |
|
) |
const [virtual] |
|
| const Symbol * IDExpr::base_variable_ref |
( |
|
) |
const [virtual] |
|
| Symbol * IDExpr::base_variable_ref |
( |
|
) |
[virtual] |
|
|
|
If the expression is an array reference, identifier, or substring, return the Symbol name of that expression.
Otherwise, return NULL.
Reimplemented from Expression.
Definition at line 11613 of file Expression.cc.
References _symbol. |
| int IDExpr::node_compare |
( |
const Expression & |
ex |
) |
const [virtual] |
|
| int IDExpr::exchange_expr |
( |
VDL & |
vdl |
) |
[protected, virtual] |
|
| void IDExpr::relink_eptrs |
( |
ProgramUnit & |
p |
) |
[protected, virtual] |
|
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files:
|