| 1 |
\section{Regions} |
| 2 |
\subsubsection{Overview} |
| 3 |
|
| 4 |
The MLRISC system uses user defined type called |
| 5 |
\newdef{regions} to propagate |
| 6 |
aliasing information to the backend. This type is |
| 7 |
abstract and no constraint is imposed on how it is implemented. |
| 8 |
The advantage of this is that the client can optimize the representation |
| 9 |
of the region information according to the semantics of the source language. |
| 10 |
The downside of this freedom is that the client has to implement |
| 11 |
various modules to extract information from the regions datatype |
| 12 |
required by various optimization phases. |
| 13 |
|
| 14 |
For clients that do not want to implement their own regions datatype, |
| 15 |
there is now a new generic mechanism, called |
| 16 |
\newdef{MLRiscRegions}, built on top of |
| 17 |
the regions concept, for propagating both: |
| 18 |
\begin{itemize} |
| 19 |
\item Aliasing information, and |
| 20 |
\item Control dependence/anti-control dependence information |
| 21 |
\end{itemize} |
| 22 |
Both kinds of information are crucial for extracting parallelism |
| 23 |
from the target code, and are used in all optimizations that perform code |
| 24 |
motion, such as SSA optimizations and all scheduling optimizations. |
| 25 |
|
| 26 |
\subsubsection{MLRisc Regions} |