You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
4.2 KiB
HTML

<html lang="en">
<head>
<title>Tree SSA - GNU Compiler Collection (GCC) Internals</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Compiler Collection (GCC) Internals">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="GIMPLE.html#GIMPLE" title="GIMPLE">
<link rel="next" href="RTL.html#RTL" title="RTL">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
Copyright (C) 1988-2015 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being ``Funding Free Software'', the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below). A copy of the license is included in the section entitled
``GNU Free Documentation License''.
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
pre.display { font-family:inherit }
pre.format { font-family:inherit }
pre.smalldisplay { font-family:inherit; font-size:smaller }
pre.smallformat { font-family:inherit; font-size:smaller }
pre.smallexample { font-size:smaller }
pre.smalllisp { font-size:smaller }
span.sc { font-variant:small-caps }
span.roman { font-family:serif; font-weight:normal; }
span.sansserif { font-family:sans-serif; font-weight:normal; }
--></style>
</head>
<body>
<div class="node">
<a name="Tree-SSA"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="RTL.html#RTL">RTL</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="GIMPLE.html#GIMPLE">GIMPLE</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
<hr>
</div>
<h2 class="chapter">12 Analysis and Optimization of GIMPLE tuples</h2>
<p><a name="index-Tree-SSA-2505"></a><a name="index-Optimization-infrastructure-for-GIMPLE-2506"></a>
GCC uses three main intermediate languages to represent the program
during compilation: GENERIC, GIMPLE and RTL. GENERIC is a
language-independent representation generated by each front end. It
is used to serve as an interface between the parser and optimizer.
GENERIC is a common representation that is able to represent programs
written in all the languages supported by GCC.
<p>GIMPLE and RTL are used to optimize the program. GIMPLE is used for
target and language independent optimizations (e.g., inlining,
constant propagation, tail call elimination, redundancy elimination,
etc). Much like GENERIC, GIMPLE is a language independent, tree based
representation. However, it differs from GENERIC in that the GIMPLE
grammar is more restrictive: expressions contain no more than 3
operands (except function calls), it has no control flow structures
and expressions with side-effects are only allowed on the right hand
side of assignments. See the chapter describing GENERIC and GIMPLE
for more details.
<p>This chapter describes the data structures and functions used in the
GIMPLE optimizers (also known as &ldquo;tree optimizers&rdquo; or &ldquo;middle
end&rdquo;). In particular, it focuses on all the macros, data structures,
functions and programming constructs needed to implement optimization
passes for GIMPLE.
<ul class="menu">
<li><a accesskey="1" href="Annotations.html#Annotations">Annotations</a>: Attributes for variables.
<li><a accesskey="2" href="SSA-Operands.html#SSA-Operands">SSA Operands</a>: SSA names referenced by GIMPLE statements.
<li><a accesskey="3" href="SSA.html#SSA">SSA</a>: Static Single Assignment representation.
<li><a accesskey="4" href="Alias-analysis.html#Alias-analysis">Alias analysis</a>: Representing aliased loads and stores.
<li><a accesskey="5" href="Memory-model.html#Memory-model">Memory model</a>: Memory model used by the middle-end.
</ul>
</body></html>