LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
color.cc File Reference

Implementation for regalloc/color.hh. More...

#include <climits>
#include <iostream>
#include <sstream>
#include <algorithm>
#include <misc/algorithm.hh>
#include <temp/temp.hh>
#include <target/cpu.hh>
#include <regalloc/color.hh>
Include dependency graph for color.cc:

Namespaces

namespace  regalloc
 Perform the register allocation.

Macros

#define DO(What)
 Run the 0-ary function What, verbosely.
#define REPORT(Title, What)

Detailed Description

Implementation for regalloc/color.hh.

Macro Definition Documentation

#define DO (   What)
Value:
do { \
if (trace_p_) \
std::cerr << "## " #What ": begin." << std::endl; \
timer_.push ("9: " #What); \
What (); \
timer_.pop ("9: " #What); \
if (trace_p_) \
std::cerr << "## " #What ": end." << std::endl; \
} while (0)

Run the 0-ary function What, verbosely.

Referenced by regalloc::Color::Color(), and regalloc::Color::operator()().

#define REPORT (   Title,
  What 
)
Value:
do { \
ostr << Title << " (" << (What).size () << "): "; \
dump (ostr, What); \
ostr << std::endl; \
} while (0)

Referenced by regalloc::Color::dump().