sail::AddressVar Class Reference

v = &s. Note that the left hand side is a symbol rather than a variable because taking the address of constants is legal in C. More...

#include <AddressVar.h>

Inheritance diagram for sail::AddressVar:
sail::SaveInstruction sail::Instruction

List of all members.

Public Member Functions

 AddressVar (Variable *v, Symbol *s, il::node *original, int line)
virtual string to_string () const
virtual Variableget_lhs ()
virtual void set_lhs (Variable *v)
Symbolget_rhs ()
virtual string to_string (bool pretty_print) const
virtual bool is_removable ()

Friends

class boost::serialization::access

Detailed Description

v = &s. Note that the left hand side is a symbol rather than a variable because taking the address of constants is legal in C.


Member Function Documentation

bool sail::AddressVar::is_removable (  )  [virtual]

An instruction is removable if it's not present in the original source code, but introduced in the translation from the high-level language to the low-level language. For instance, if **x is an expression used in the original code, the low-level language will introduce a temporary t=*x; such instructions are "removable" for printing purposes.

Implements sail::Instruction.


The documentation for this class was generated from the following files:
Generated on Sun Oct 17 14:01:30 2010 by  doxygen 1.6.3