lestes::md::literals::literal_loader_base Class Reference

Literal loader. More...

#include <literal_loader_base.g.hh>

Inheritance diagram for lestes::md::literals::literal_loader_base:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ptr< list< srp<
::lestes::backend_v2::intercode::pi_pi > > > 
generate_load (ptr< ::lestes::backend_v2::intercode::pi_preg > preg, ptr< ::lestes::backend_v2::intercode::pi_lit > lit, ptr< ::lestes::backend_v2::intercode::pi_sp > psp, ptr< ::lestes::backend_v2::intercode::pi_sp > nsp) override
 Generates list of pseudoinstructions that loads literal to a pseudoregister.
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

 literal_loader_base ()
 Generated constructor for class literal_loader_base.
virtual void gc_mark ()
 Marking routine for class literal_loader_base.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Literal loader.

Interface generates list of pseudoinstructions that load value of a literal to a register. Generated pseudoinstructions differ according to literal kind. If literal can act as immediate then it is loaded by single pi_ldi pseudoinstruction. Global asm declaration is generated otherwise (managed literal) and literal is referenced through its address.

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


Constructor & Destructor Documentation

lestes::md::literals::literal_loader_base::literal_loader_base (  )  [protected]

Generated constructor for class literal_loader_base.

Generated constructor for class literal_loader_base.

Author:
lsg


Member Function Documentation

virtual ptr<list<srp< ::lestes::backend_v2::intercode::pi_pi> > > lestes::md::literals::literal_loader_base::generate_load ( ptr< ::lestes::backend_v2::intercode::pi_preg preg,
ptr< ::lestes::backend_v2::intercode::pi_lit lit,
ptr< ::lestes::backend_v2::intercode::pi_sp psp,
ptr< ::lestes::backend_v2::intercode::pi_sp nsp 
) [pure virtual]

Generates list of pseudoinstructions that loads literal to a pseudoregister.

Parameters:
preg A register operand.
lit A literal.
psp A sequencepoint that is set as psp to generated code.
nsp A sequencepoint that is set as nsp to generated code.
Returns:
ge-level intercode that loads literal to a pseudoregister.

Implemented in lestes::md::literals::literal_loader.

ptr< object::reflection_list > lestes::md::literals::literal_loader_base::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::literals::literal_loader.

ptr< object::field_list_list > lestes::md::literals::literal_loader_base::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::literals::literal_loader.

void lestes::md::literals::literal_loader_base::gc_mark ( void   )  [protected, virtual]

Marking routine for class literal_loader_base.

Marking routine is used for garbage collection.

Author:
lsg

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

Reimplemented in lestes::md::literals::literal_loader.


Member Data Documentation

ptr< object::reflection_list > lestes::md::literals::literal_loader_base::reflection = reflection [static, private]

Reimplemented from lestes::std::object.

Reimplemented in lestes::md::literals::literal_loader.


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