lestes::md::functions::preasmgen_body_changes_base Class Reference

Inserts additional code (e.g. function prologue ) to a function body that is needed for correct execution of a code generated by asm generator. More...

#include <preasmgen_body_changes_base.g.hh>

Inheritance diagram for lestes::md::functions::preasmgen_body_changes_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ::lestes::lang::cplus::sem::ss_function_declarationfunction_get () const
 The method function_get returns the value of the field preasmgen_body_changes_base::function.
void function_set (const ptr< ::lestes::lang::cplus::sem::ss_function_declaration > &)
 The method function_set sets the field preasmgen_body_changes_base::function to the given value.
ptr< ::lestes::std::list<
srp< ::lestes::backend_v2::intercode::ge_pi > > > 
body_get () const
 The method body_get returns the value of the field preasmgen_body_changes_base::body.
void body_set (const ptr< ::lestes::std::list< srp< ::lestes::backend_v2::intercode::ge_pi > > > &)
 The method body_set sets the field preasmgen_body_changes_base::body to the given value.
virtual void process_body () override
 Emits code to the function's body..
virtual ptr< list< srp<
::lestes::backend_v2::intercode::ge_pi > > > 
get_result () override
 Returns the function's body with the additional code.
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Protected Member Functions

 preasmgen_body_changes_base (ptr< ::lestes::lang::cplus::sem::ss_function_declaration > a__preasmgen_body_changes_base__function, ptr< ::lestes::std::list< srp< ::lestes::backend_v2::intercode::ge_pi > > > a__preasmgen_body_changes_base__body)
 Generated constructor for class preasmgen_body_changes_base.
virtual void gc_mark ()
 Marking routine for class preasmgen_body_changes_base.

Private Attributes

srp< ::lestes::lang::cplus::sem::ss_function_declarationfunction
 Declaration of the function.
srp< ::lestes::std::list<
srp< ::lestes::backend_v2::intercode::ge_pi > > > 
body
 The function's body.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Inserts additional code (e.g. function prologue ) to a function body that is needed for correct execution of a code generated by asm generator.

Note: A concrete derived class is target dependent and it is placed in /target/machine/${TARGET_CPU}/lestes/md/functions/ directory.


Constructor & Destructor Documentation

lestes::md::functions::preasmgen_body_changes_base::preasmgen_body_changes_base ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration a__preasmgen_body_changes_base__function,
ptr< ::lestes::std::list< srp< ::lestes::backend_v2::intercode::ge_pi > > >  a__preasmgen_body_changes_base__body 
) [protected]

Generated constructor for class preasmgen_body_changes_base.

Generated constructor for class preasmgen_body_changes_base.

Author:
lsg


Member Function Documentation

ptr<::lestes::lang::cplus::sem::ss_function_declaration > lestes::md::functions::preasmgen_body_changes_base::function_get (  )  const

The method function_get returns the value of the field preasmgen_body_changes_base::function.

Returns:
The value of preasmgen_body_changes_base::function.
Author:
lsg

void lestes::md::functions::preasmgen_body_changes_base::function_set ( const ptr< ::lestes::lang::cplus::sem::ss_function_declaration > &  x  ) 

The method function_set sets the field preasmgen_body_changes_base::function to the given value.

Parameters:
[in] x The new value to set preasmgen_body_changes_base::function to.
Author:
lsg

ptr<::lestes::std::list< srp<::lestes::backend_v2::intercode::ge_pi > > > lestes::md::functions::preasmgen_body_changes_base::body_get (  )  const

The method body_get returns the value of the field preasmgen_body_changes_base::body.

Returns:
The value of preasmgen_body_changes_base::body.
Author:
lsg

void lestes::md::functions::preasmgen_body_changes_base::body_set ( const ptr< ::lestes::std::list< srp< ::lestes::backend_v2::intercode::ge_pi > > > &  x  ) 

The method body_set sets the field preasmgen_body_changes_base::body to the given value.

Parameters:
[in] x The new value to set preasmgen_body_changes_base::body to.
Author:
lsg

virtual void lestes::md::functions::preasmgen_body_changes_base::process_body (  )  [pure virtual]

Emits code to the function's body..

Implemented in lestes::md::functions::preasmgen_body_changes.

virtual ptr<list<srp< ::lestes::backend_v2::intercode::ge_pi > > > lestes::md::functions::preasmgen_body_changes_base::get_result (  )  [pure virtual]

Returns the function's body with the additional code.

Implemented in lestes::md::functions::preasmgen_body_changes.

ptr< object::reflection_list > lestes::md::functions::preasmgen_body_changes_base::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::functions::preasmgen_body_changes.

ptr< object::field_list_list > lestes::md::functions::preasmgen_body_changes_base::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::functions::preasmgen_body_changes.

void lestes::md::functions::preasmgen_body_changes_base::gc_mark ( void   )  [protected, virtual]

Marking routine for class preasmgen_body_changes_base.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::std::mem::keystone.

Reimplemented in lestes::md::functions::preasmgen_body_changes.


Member Data Documentation

srp< ::lestes::lang::cplus::sem::ss_function_declaration > lestes::md::functions::preasmgen_body_changes_base::function [private]

Declaration of the function.

srp< ::lestes::std::list< srp< ::lestes::backend_v2::intercode::ge_pi > > > lestes::md::functions::preasmgen_body_changes_base::body [private]

The function's body.

ptr< object::reflection_list > lestes::md::functions::preasmgen_body_changes_base::reflection = reflection [static, private]

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::functions::preasmgen_body_changes.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:49:07 2007 for lestes by doxygen 1.5.1-20070107