diff options
Diffstat (limited to 'share/doc/gccint/Small-IPA-passes.html')
-rw-r--r-- | share/doc/gccint/Small-IPA-passes.html | 183 |
1 files changed, 183 insertions, 0 deletions
diff --git a/share/doc/gccint/Small-IPA-passes.html b/share/doc/gccint/Small-IPA-passes.html new file mode 100644 index 0000000..4f5e5c2 --- /dev/null +++ b/share/doc/gccint/Small-IPA-passes.html @@ -0,0 +1,183 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<!-- Copyright (C) 1988-2023 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. --> +<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ --> +<head> +<title>GNU Compiler Collection (GCC) Internals: Small IPA passes</title> + +<meta name="description" content="GNU Compiler Collection (GCC) Internals: Small IPA passes"> +<meta name="keywords" content="GNU Compiler Collection (GCC) Internals: Small IPA passes"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="makeinfo"> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<link href="index.html#Top" rel="start" title="Top"> +<link href="Option-Index.html#Option-Index" rel="index" title="Option Index"> +<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> +<link href="IPA-passes.html#IPA-passes" rel="up" title="IPA passes"> +<link href="Regular-IPA-passes.html#Regular-IPA-passes" rel="next" title="Regular IPA passes"> +<link href="IPA-passes.html#IPA-passes" rel="previous" title="IPA passes"> +<style type="text/css"> +<!-- +a.summary-letter {text-decoration: none} +blockquote.smallquotation {font-size: smaller} +div.display {margin-left: 3.2em} +div.example {margin-left: 3.2em} +div.indentedblock {margin-left: 3.2em} +div.lisp {margin-left: 3.2em} +div.smalldisplay {margin-left: 3.2em} +div.smallexample {margin-left: 3.2em} +div.smallindentedblock {margin-left: 3.2em; font-size: smaller} +div.smalllisp {margin-left: 3.2em} +kbd {font-style:oblique} +pre.display {font-family: inherit} +pre.format {font-family: inherit} +pre.menu-comment {font-family: serif} +pre.menu-preformatted {font-family: serif} +pre.smalldisplay {font-family: inherit; font-size: smaller} +pre.smallexample {font-size: smaller} +pre.smallformat {font-family: inherit; font-size: smaller} +pre.smalllisp {font-size: smaller} +span.nocodebreak {white-space:nowrap} +span.nolinebreak {white-space:nowrap} +span.roman {font-family:serif; font-weight:normal} +span.sansserif {font-family:sans-serif; font-weight:normal} +ul.no-bullet {list-style: none} +--> +</style> + + +</head> + +<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000"> +<a name="Small-IPA-passes"></a> +<div class="header"> +<p> +Next: <a href="Regular-IPA-passes.html#Regular-IPA-passes" accesskey="n" rel="next">Regular IPA passes</a>, Up: <a href="IPA-passes.html#IPA-passes" accesskey="u" rel="up">IPA passes</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p> +</div> +<hr> +<a name="Small-IPA-passes-1"></a> +<h4 class="subsection">9.4.1 Small IPA passes</h4> +<a name="index-small-IPA-passes"></a> +<p>A small IPA pass is a pass derived from <code>simple_ipa_opt_pass</code>. +As described in <a href="IPA.html#IPA">IPA</a>, it does everything at once and +defines only the <em>Execute</em> stage. During this +stage it accesses and modifies the function bodies. +No <code>generate_summary</code>, <code>read_summary</code>, or <code>write_summary</code> +hooks are defined. +</p> +<ul> +<li> IPA free lang data + +<p>This pass frees resources that are used by the front end but are +not needed once it is done. It is located in <samp>tree.cc</samp> and is described by +<code>pass_ipa_free_lang_data</code>. +</p> +</li><li> IPA function and variable visibility + +<p>This is a local function pass handling visibilities of all symbols. This +happens before LTO streaming, so <samp>-fwhole-program</samp> should be ignored +at this level. It is located in <samp>ipa-visibility.cc</samp> and is described by +<code>pass_ipa_function_and_variable_visibility</code>. +</p> +</li><li> IPA remove symbols + +<p>This pass performs reachability analysis and reclaims all unreachable nodes. +It is located in <samp>passes.cc</samp> and is described by +<code>pass_ipa_remove_symbols</code>. +</p> +</li><li> IPA OpenACC + +<p>This is a pass group for OpenACC processing. It is located in +<samp>tree-ssa-loop.cc</samp> and is described by <code>pass_ipa_oacc</code>. +</p> +</li><li> IPA points-to analysis + +<p>This is a tree-based points-to analysis pass. The idea behind this analyzer +is to generate set constraints from the program, then solve the resulting +constraints in order to generate the points-to sets. It is located in +<samp>tree-ssa-structalias.cc</samp> and is described by <code>pass_ipa_pta</code>. +</p> +</li><li> IPA OpenACC kernels + +<p>This is a pass group for processing OpenACC kernels regions. It is a +subpass of the IPA OpenACC pass group that runs on offloaded functions +containing OpenACC kernels loops. It is located in +<samp>tree-ssa-loop.cc</samp> and is described by +<code>pass_ipa_oacc_kernels</code>. +</p> +</li><li> Target clone + +<p>This is a pass for parsing functions with multiple target attributes. +It is located in <samp>multiple_target.cc</samp> and is described by +<code>pass_target_clone</code>. +</p> +</li><li> IPA auto profile + +<p>This pass uses AutoFDO profiling data to annotate the control flow graph. +It is located in <samp>auto-profile.cc</samp> and is described by +<code>pass_ipa_auto_profile</code>. +</p> +</li><li> IPA tree profile + +<p>This pass does profiling for all functions in the call graph. +It calculates branch +probabilities and basic block execution counts. It is located +in <samp>tree-profile.cc</samp> and is described by <code>pass_ipa_tree_profile</code>. +</p> +</li><li> IPA free function summary + +<p>This pass is a small IPA pass when argument <code>small_p</code> is true. +It releases inline function summaries and call summaries. +It is located in <samp>ipa-fnsummary.cc</samp> and is described by +<code>pass_ipa_free_free_fn_summary</code>. +</p> +</li><li> IPA increase alignment + +<p>This pass increases the alignment of global arrays to improve +vectorization. It is located in <samp>tree-vectorizer.cc</samp> +and is described by <code>pass_ipa_increase_alignment</code>. +</p> +</li><li> IPA transactional memory + +<p>This pass is for transactional memory support. +It is located in <samp>trans-mem.cc</samp> and is described by +<code>pass_ipa_tm</code>. +</p> +</li><li> IPA lower emulated TLS + +<p>This pass lowers thread-local storage (TLS) operations +to emulation functions provided by libgcc. +It is located in <samp>tree-emutls.cc</samp> and is described by +<code>pass_ipa_lower_emutls</code>. +</p> +</li></ul> + +<hr> +<div class="header"> +<p> +Next: <a href="Regular-IPA-passes.html#Regular-IPA-passes" accesskey="n" rel="next">Regular IPA passes</a>, Up: <a href="IPA-passes.html#IPA-passes" accesskey="u" rel="up">IPA passes</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p> +</div> + + + +</body> +</html> |