選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

183 行
7.3KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Small IPA passes (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Small IPA passes (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Small IPA passes (GNU Compiler Collection (GCC) Internals)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="IPA-passes.html#IPA-passes" rel="up" title="IPA passes">
  30. <link href="Regular-IPA-passes.html#Regular-IPA-passes" rel="next" title="Regular IPA passes">
  31. <link href="IPA-passes.html#IPA-passes" rel="prev" title="IPA passes">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Small-IPA-passes"></a>
  62. <div class="header">
  63. <p>
  64. 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> &nbsp; [<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>
  65. </div>
  66. <hr>
  67. <a name="Small-IPA-passes-1"></a>
  68. <h4 class="subsection">9.4.1 Small IPA passes</h4>
  69. <a name="index-small-IPA-passes"></a>
  70. <p>A small IPA pass is a pass derived from <code>simple_ipa_opt_pass</code>.
  71. As described in <a href="IPA.html#IPA">IPA</a>, it does everything at once and
  72. defines only the <em>Execute</em> stage. During this
  73. stage it accesses and modifies the function bodies.
  74. No <code>generate_summary</code>, <code>read_summary</code>, or <code>write_summary</code>
  75. hooks are defined.
  76. </p>
  77. <ul>
  78. <li> IPA free lang data
  79. <p>This pass frees resources that are used by the front end but are
  80. not needed once it is done. It is located in <samp>tree.c</samp> and is described by
  81. <code>pass_ipa_free_lang_data</code>.
  82. </p>
  83. </li><li> IPA function and variable visibility
  84. <p>This is a local function pass handling visibilities of all symbols. This
  85. happens before LTO streaming, so <samp>-fwhole-program</samp> should be ignored
  86. at this level. It is located in <samp>ipa-visibility.c</samp> and is described by
  87. <code>pass_ipa_function_and_variable_visibility</code>.
  88. </p>
  89. </li><li> IPA remove symbols
  90. <p>This pass performs reachability analysis and reclaims all unreachable nodes.
  91. It is located in <samp>passes.c</samp> and is described by
  92. <code>pass_ipa_remove_symbols</code>.
  93. </p>
  94. </li><li> IPA OpenACC
  95. <p>This is a pass group for OpenACC processing. It is located in
  96. <samp>tree-ssa-loop.c</samp> and is described by <code>pass_ipa_oacc</code>.
  97. </p>
  98. </li><li> IPA points-to analysis
  99. <p>This is a tree-based points-to analysis pass. The idea behind this analyzer
  100. is to generate set constraints from the program, then solve the resulting
  101. constraints in order to generate the points-to sets. It is located in
  102. <samp>tree-ssa-structalias.c</samp> and is described by <code>pass_ipa_pta</code>.
  103. </p>
  104. </li><li> IPA OpenACC kernels
  105. <p>This is a pass group for processing OpenACC kernels regions. It is a
  106. subpass of the IPA OpenACC pass group that runs on offloaded functions
  107. containing OpenACC kernels loops. It is located in
  108. <samp>tree-ssa-loop.c</samp> and is described by
  109. <code>pass_ipa_oacc_kernels</code>.
  110. </p>
  111. </li><li> Target clone
  112. <p>This is a pass for parsing functions with multiple target attributes.
  113. It is located in <samp>multiple_target.c</samp> and is described by
  114. <code>pass_target_clone</code>.
  115. </p>
  116. </li><li> IPA auto profile
  117. <p>This pass uses AutoFDO profiling data to annotate the control flow graph.
  118. It is located in <samp>auto-profile.c</samp> and is described by
  119. <code>pass_ipa_auto_profile</code>.
  120. </p>
  121. </li><li> IPA tree profile
  122. <p>This pass does profiling for all functions in the call graph.
  123. It calculates branch
  124. probabilities and basic block execution counts. It is located
  125. in <samp>tree-profile.c</samp> and is described by <code>pass_ipa_tree_profile</code>.
  126. </p>
  127. </li><li> IPA free function summary
  128. <p>This pass is a small IPA pass when argument <code>small_p</code> is true.
  129. It releases inline function summaries and call summaries.
  130. It is located in <samp>ipa-fnsummary.c</samp> and is described by
  131. <code>pass_ipa_free_free_fn_summary</code>.
  132. </p>
  133. </li><li> IPA increase alignment
  134. <p>This pass increases the alignment of global arrays to improve
  135. vectorization. It is located in <samp>tree-vectorizer.c</samp>
  136. and is described by <code>pass_ipa_increase_alignment</code>.
  137. </p>
  138. </li><li> IPA transactional memory
  139. <p>This pass is for transactional memory support.
  140. It is located in <samp>trans-mem.c</samp> and is described by
  141. <code>pass_ipa_tm</code>.
  142. </p>
  143. </li><li> IPA lower emulated TLS
  144. <p>This pass lowers thread-local storage (TLS) operations
  145. to emulation functions provided by libgcc.
  146. It is located in <samp>tree-emutls.c</samp> and is described by
  147. <code>pass_ipa_lower_emutls</code>.
  148. </p>
  149. </li></ul>
  150. <hr>
  151. <div class="header">
  152. <p>
  153. 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> &nbsp; [<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>
  154. </div>
  155. </body>
  156. </html>