LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
|
Abstract a fragments's layout. More...
#include <layout.hh>
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) |
Ctor & dtor. | |
Layout () | |
virtual | ~Layout () |
Layout parameters. | |
void | ostr_set (std::ostream &ostr) |
void | tempmap_set (const temp::TempMap &tempmap) |
void | debug_set (bool debug) |
Fragments's visitor. | |
std::ostream * | postr_ |
virtual void | operator() (const ProcFrag &a) override=0 |
Layout an assembly procedure fragment. | |
virtual void | operator() (const DataFrag &a) override=0 |
Layout an assembly data fragment. | |
virtual void | operator() (const Fragments &frags) override |
Layout a list of assembly fragments. |
Abstract a fragments's layout.
|
inline |
|
virtual |
void assem::Layout::debug_set | ( | bool | debug | ) |
|
inherited |
|
virtualinherited |
Visit an assembly procedure fragment.
|
virtualinherited |
Visit an assembly data fragment.
|
inherited |
To enable the use of standard algorithm on containers of pointers.
|
virtualinherited |
Visit a list of assembly fragments.
References misc::for_each().
|
overridepure virtual |
Layout an assembly procedure fragment.
Implemented in target::ia32::GasLayout, and target::mips::SpimLayout.
|
overridepure virtual |
Layout an assembly data fragment.
Implemented in target::ia32::GasLayout, and target::mips::SpimLayout.
|
overridevirtual |
Layout a list of assembly fragments.
Reimplemented in target::ia32::GasLayout, and target::mips::SpimLayout.
References invariant, postr_, and precondition.
|
inline |
References postr_.
Referenced by target::instructions_dump().
void assem::Layout::tempmap_set | ( | const temp::TempMap & | tempmap | ) |
|
protected |
Referenced by target::ia32::GasLayout::operator()(), target::mips::SpimLayout::operator()(), operator()(), and ostr_set().