LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
frame::In_Register Class Reference

Local variable stored in register. More...

#include <access.hh>

Inheritance diagram for frame::In_Register:
Collaboration diagram for frame::In_Register:

Public Member Functions

 In_Register ()
 In_Register (const temp::Temp &temp)
 Used for special registers such as FP, RV, etc.
temp::Temp temp_get () const
 The temporary referenced by this Access.
virtual std::ostream & dump (std::ostream &ostr) const override
 Used for debugging.
virtual tree::rExp exp (const tree::rExp &fp) const override
virtual In_Registerclone () const override
virtual tree::rExp exp () const
 Return a Tree expression that gives the location of THIS. If it is in the frame, then the result is something like Mem (Temp fp + OFFSET).

Private Attributes

temp::Temp temp_
 The temporary referenced here.

Detailed Description

Local variable stored in register.

Constructor & Destructor Documentation

frame::In_Register::In_Register ( )

Referenced by clone().

frame::In_Register::In_Register ( const temp::Temp temp)

Used for special registers such as FP, RV, etc.

Member Function Documentation

In_Register * frame::In_Register::clone ( ) const
overridevirtual
See Also
Access::clone ().

Implements frame::Access.

References In_Register(), and temp_get().

std::ostream & frame::In_Register::dump ( std::ostream &  ostr) const
overridevirtual

Used for debugging.

Implements frame::Access.

References temp_.

tree::rExp frame::Access::exp ( ) const
virtualinherited

Return a Tree expression that gives the location of THIS. If it is in the frame, then the result is something like Mem (Temp fp + OFFSET).

Referenced by translate::Access::exp().

tree::rExp frame::In_Register::exp ( const tree::rExp &  fp) const
overridevirtual
See Also
Access::exp ().

Implements frame::Access.

References temp_.

temp::Temp frame::In_Register::temp_get ( ) const
inline

The temporary referenced by this Access.

References temp_.

Referenced by clone().

Member Data Documentation

temp::Temp frame::In_Register::temp_
private

The temporary referenced here.

Referenced by dump(), exp(), and temp_get().


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