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

Abstract SPIM's fragments's layout. More...

#include <spim-layout.hh>

Inheritance diagram for target::mips::SpimLayout:
Collaboration diagram for target::mips::SpimLayout:

Public Member Functions

virtual void operator() (typename Const< ProcFrag >::type &a)
 Visit an assembly procedure fragment.
virtual void operator() (typename Const< DataFrag >::type &a)
 Visit an assembly data fragment.
template<class E >
void operator() (E *e)
 To enable the use of standard algorithm on containers of pointers.
virtual void operator() (typename Const< Fragments >::type &fs)
 Visit a list of assembly fragments.
template<template< typename > class Const>
void operator() (typename Const< ast::Ast >::type &e)
Fragments's visitor.
virtual void operator() (const assem::ProcFrag &a) override
 Layout an assembly procedure fragment.
virtual void operator() (const assem::DataFrag &a) override
 Layout an assembly data fragment.
virtual void operator() (const assem::Fragments &a) override
 Layout a list of assembly fragments.
Layout parameters.
void ostr_set (std::ostream &ostr)
void tempmap_set (const temp::TempMap &tempmap)
void debug_set (bool debug)

Protected Attributes

Fragments's visitor.
std::ostream * postr_

Construction.

 SpimLayout ()
 Construct a SpimLayout.
static SpimLayoutinstance ()
 Return the unique instance of SpimLayout.

Detailed Description

Abstract SPIM's fragments's layout.

Constructor & Destructor Documentation

target::mips::SpimLayout::SpimLayout ( )
protected

Construct a SpimLayout.

Member Function Documentation

void assem::Layout::debug_set ( bool  debug)
inherited
SpimLayout & target::mips::SpimLayout::instance ( )
static

Return the unique instance of SpimLayout.

template<template< typename > class Const>
template<template< typename > class Const>
void assem::GenVisitor< Const >::operator() ( typename Const< ast::Ast >::type &  e)
inherited
template<template< typename > class Const>
void assem::GenVisitor< Const >::operator() ( typename Const< ProcFrag >::type &  a)
virtualinherited

Visit an assembly procedure fragment.

template<template< typename > class Const>
void assem::GenVisitor< Const >::operator() ( typename Const< DataFrag >::type &  a)
virtualinherited

Visit an assembly data fragment.

template<template< typename > class Const>
template<class E >
void assem::GenVisitor< Const >::operator() ( E *  e)
inherited

To enable the use of standard algorithm on containers of pointers.

void target::mips::SpimLayout::operator() ( const assem::ProcFrag a)
overridevirtual

Layout an assembly procedure fragment.

Implements assem::Layout.

References assem::ProcFrag::instrs_get(), assem::ProcFrag::name_get(), assem::Layout::postr_, and precondition.

Referenced by operator()().

template<template< typename > class Const>
void assem::GenVisitor< Const >::operator() ( typename Const< Fragments >::type &  fs)
virtualinherited

Visit a list of assembly fragments.

References misc::for_each().

void target::mips::SpimLayout::operator() ( const assem::DataFrag a)
overridevirtual
void target::mips::SpimLayout::operator() ( const assem::Fragments a)
overridevirtual

Layout a list of assembly fragments.

Reimplemented from assem::Layout.

References operator()(), assem::Layout::postr_, and precondition.

void assem::Layout::ostr_set ( std::ostream &  ostr)
inlineinherited
void assem::Layout::tempmap_set ( const temp::TempMap tempmap)
inherited

Member Data Documentation

std::ostream* assem::Layout::postr_
protectedinherited

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