Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

470 lines
23KB

  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>Side Effects (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Side Effects (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Side Effects (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="RTL.html#RTL" rel="up" title="RTL">
  30. <link href="Incdec.html#Incdec" rel="next" title="Incdec">
  31. <link href="RTL-Declarations.html#RTL-Declarations" rel="prev" title="RTL Declarations">
  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="Side-Effects"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Incdec.html#Incdec" accesskey="n" rel="next">Incdec</a>, Previous: <a href="RTL-Declarations.html#RTL-Declarations" accesskey="p" rel="prev">RTL Declarations</a>, Up: <a href="RTL.html#RTL" accesskey="u" rel="up">RTL</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="Side-Effect-Expressions"></a>
  68. <h3 class="section">14.15 Side Effect Expressions</h3>
  69. <a name="index-RTL-side-effect-expressions"></a>
  70. <p>The expression codes described so far represent values, not actions.
  71. But machine instructions never produce values; they are meaningful
  72. only for their side effects on the state of the machine. Special
  73. expression codes are used to represent side effects.
  74. </p>
  75. <p>The body of an instruction is always one of these side effect codes;
  76. the codes described above, which represent values, appear only as
  77. the operands of these.
  78. </p>
  79. <dl compact="compact">
  80. <dd><a name="index-set"></a>
  81. </dd>
  82. <dt><code>(set <var>lval</var> <var>x</var>)</code></dt>
  83. <dd><p>Represents the action of storing the value of <var>x</var> into the place
  84. represented by <var>lval</var>. <var>lval</var> must be an expression
  85. representing a place that can be stored in: <code>reg</code> (or <code>subreg</code>,
  86. <code>strict_low_part</code> or <code>zero_extract</code>), <code>mem</code>, <code>pc</code>,
  87. <code>parallel</code>, or <code>cc0</code>.
  88. </p>
  89. <p>If <var>lval</var> is a <code>reg</code>, <code>subreg</code> or <code>mem</code>, it has a
  90. machine mode; then <var>x</var> must be valid for that mode.
  91. </p>
  92. <p>If <var>lval</var> is a <code>reg</code> whose machine mode is less than the full
  93. width of the register, then it means that the part of the register
  94. specified by the machine mode is given the specified value and the
  95. rest of the register receives an undefined value. Likewise, if
  96. <var>lval</var> is a <code>subreg</code> whose machine mode is narrower than
  97. the mode of the register, the rest of the register can be changed in
  98. an undefined way.
  99. </p>
  100. <p>If <var>lval</var> is a <code>strict_low_part</code> of a subreg, then the part
  101. of the register specified by the machine mode of the <code>subreg</code> is
  102. given the value <var>x</var> and the rest of the register is not changed.
  103. </p>
  104. <p>If <var>lval</var> is a <code>zero_extract</code>, then the referenced part of
  105. the bit-field (a memory or register reference) specified by the
  106. <code>zero_extract</code> is given the value <var>x</var> and the rest of the
  107. bit-field is not changed. Note that <code>sign_extract</code> cannot
  108. appear in <var>lval</var>.
  109. </p>
  110. <p>If <var>lval</var> is <code>(cc0)</code>, it has no machine mode, and <var>x</var> may
  111. be either a <code>compare</code> expression or a value that may have any mode.
  112. The latter case represents a &ldquo;test&rdquo; instruction. The expression
  113. <code>(set (cc0) (reg:<var>m</var> <var>n</var>))</code> is equivalent to
  114. <code>(set (cc0) (compare (reg:<var>m</var> <var>n</var>) (const_int 0)))</code>.
  115. Use the former expression to save space during the compilation.
  116. </p>
  117. <p>If <var>lval</var> is a <code>parallel</code>, it is used to represent the case of
  118. a function returning a structure in multiple registers. Each element
  119. of the <code>parallel</code> is an <code>expr_list</code> whose first operand is a
  120. <code>reg</code> and whose second operand is a <code>const_int</code> representing the
  121. offset (in bytes) into the structure at which the data in that register
  122. corresponds. The first element may be null to indicate that the structure
  123. is also passed partly in memory.
  124. </p>
  125. <a name="index-jump-instructions-and-set"></a>
  126. <a name="index-if_005fthen_005felse-usage"></a>
  127. <p>If <var>lval</var> is <code>(pc)</code>, we have a jump instruction, and the
  128. possibilities for <var>x</var> are very limited. It may be a
  129. <code>label_ref</code> expression (unconditional jump). It may be an
  130. <code>if_then_else</code> (conditional jump), in which case either the
  131. second or the third operand must be <code>(pc)</code> (for the case which
  132. does not jump) and the other of the two must be a <code>label_ref</code>
  133. (for the case which does jump). <var>x</var> may also be a <code>mem</code> or
  134. <code>(plus:SI (pc) <var>y</var>)</code>, where <var>y</var> may be a <code>reg</code> or a
  135. <code>mem</code>; these unusual patterns are used to represent jumps through
  136. branch tables.
  137. </p>
  138. <p>If <var>lval</var> is neither <code>(cc0)</code> nor <code>(pc)</code>, the mode of
  139. <var>lval</var> must not be <code>VOIDmode</code> and the mode of <var>x</var> must be
  140. valid for the mode of <var>lval</var>.
  141. </p>
  142. <a name="index-SET_005fDEST"></a>
  143. <a name="index-SET_005fSRC"></a>
  144. <p><var>lval</var> is customarily accessed with the <code>SET_DEST</code> macro and
  145. <var>x</var> with the <code>SET_SRC</code> macro.
  146. </p>
  147. <a name="index-return"></a>
  148. </dd>
  149. <dt><code>(return)</code></dt>
  150. <dd><p>As the sole expression in a pattern, represents a return from the
  151. current function, on machines where this can be done with one
  152. instruction, such as VAXen. On machines where a multi-instruction
  153. &ldquo;epilogue&rdquo; must be executed in order to return from the function,
  154. returning is done by jumping to a label which precedes the epilogue, and
  155. the <code>return</code> expression code is never used.
  156. </p>
  157. <p>Inside an <code>if_then_else</code> expression, represents the value to be
  158. placed in <code>pc</code> to return to the caller.
  159. </p>
  160. <p>Note that an insn pattern of <code>(return)</code> is logically equivalent to
  161. <code>(set (pc) (return))</code>, but the latter form is never used.
  162. </p>
  163. <a name="index-simple_005freturn"></a>
  164. </dd>
  165. <dt><code>(simple_return)</code></dt>
  166. <dd><p>Like <code>(return)</code>, but truly represents only a function return, while
  167. <code>(return)</code> may represent an insn that also performs other functions
  168. of the function epilogue. Like <code>(return)</code>, this may also occur in
  169. conditional jumps.
  170. </p>
  171. <a name="index-call-1"></a>
  172. </dd>
  173. <dt><code>(call <var>function</var> <var>nargs</var>)</code></dt>
  174. <dd><p>Represents a function call. <var>function</var> is a <code>mem</code> expression
  175. whose address is the address of the function to be called.
  176. <var>nargs</var> is an expression which can be used for two purposes: on
  177. some machines it represents the number of bytes of stack argument; on
  178. others, it represents the number of argument registers.
  179. </p>
  180. <p>Each machine has a standard machine mode which <var>function</var> must
  181. have. The machine description defines macro <code>FUNCTION_MODE</code> to
  182. expand into the requisite mode name. The purpose of this mode is to
  183. specify what kind of addressing is allowed, on machines where the
  184. allowed kinds of addressing depend on the machine mode being
  185. addressed.
  186. </p>
  187. <a name="index-clobber"></a>
  188. </dd>
  189. <dt><code>(clobber <var>x</var>)</code></dt>
  190. <dd><p>Represents the storing or possible storing of an unpredictable,
  191. undescribed value into <var>x</var>, which must be a <code>reg</code>,
  192. <code>scratch</code>, <code>parallel</code> or <code>mem</code> expression.
  193. </p>
  194. <p>One place this is used is in string instructions that store standard
  195. values into particular hard registers. It may not be worth the
  196. trouble to describe the values that are stored, but it is essential to
  197. inform the compiler that the registers will be altered, lest it
  198. attempt to keep data in them across the string instruction.
  199. </p>
  200. <p>If <var>x</var> is <code>(mem:BLK (const_int 0))</code> or
  201. <code>(mem:BLK (scratch))</code>, it means that all memory
  202. locations must be presumed clobbered. If <var>x</var> is a <code>parallel</code>,
  203. it has the same meaning as a <code>parallel</code> in a <code>set</code> expression.
  204. </p>
  205. <p>Note that the machine description classifies certain hard registers as
  206. &ldquo;call-clobbered&rdquo;. All function call instructions are assumed by
  207. default to clobber these registers, so there is no need to use
  208. <code>clobber</code> expressions to indicate this fact. Also, each function
  209. call is assumed to have the potential to alter any memory location,
  210. unless the function is declared <code>const</code>.
  211. </p>
  212. <p>If the last group of expressions in a <code>parallel</code> are each a
  213. <code>clobber</code> expression whose arguments are <code>reg</code> or
  214. <code>match_scratch</code> (see <a href="RTL-Template.html#RTL-Template">RTL Template</a>) expressions, the combiner
  215. phase can add the appropriate <code>clobber</code> expressions to an insn it
  216. has constructed when doing so will cause a pattern to be matched.
  217. </p>
  218. <p>This feature can be used, for example, on a machine that whose multiply
  219. and add instructions don&rsquo;t use an MQ register but which has an
  220. add-accumulate instruction that does clobber the MQ register. Similarly,
  221. a combined instruction might require a temporary register while the
  222. constituent instructions might not.
  223. </p>
  224. <p>When a <code>clobber</code> expression for a register appears inside a
  225. <code>parallel</code> with other side effects, the register allocator
  226. guarantees that the register is unoccupied both before and after that
  227. insn if it is a hard register clobber. For pseudo-register clobber,
  228. the register allocator and the reload pass do not assign the same hard
  229. register to the clobber and the input operands if there is an insn
  230. alternative containing the &lsquo;<samp>&amp;</samp>&rsquo; constraint (see <a href="Modifiers.html#Modifiers">Modifiers</a>) for
  231. the clobber and the hard register is in register classes of the
  232. clobber in the alternative. You can clobber either a specific hard
  233. register, a pseudo register, or a <code>scratch</code> expression; in the
  234. latter two cases, GCC will allocate a hard register that is available
  235. there for use as a temporary.
  236. </p>
  237. <p>For instructions that require a temporary register, you should use
  238. <code>scratch</code> instead of a pseudo-register because this will allow the
  239. combiner phase to add the <code>clobber</code> when required. You do this by
  240. coding (<code>clobber</code> (<code>match_scratch</code> &hellip;)). If you do
  241. clobber a pseudo register, use one which appears nowhere else&mdash;generate
  242. a new one each time. Otherwise, you may confuse CSE.
  243. </p>
  244. <p>There is one other known use for clobbering a pseudo register in a
  245. <code>parallel</code>: when one of the input operands of the insn is also
  246. clobbered by the insn. In this case, using the same pseudo register in
  247. the clobber and elsewhere in the insn produces the expected results.
  248. </p>
  249. <a name="index-use"></a>
  250. </dd>
  251. <dt><code>(use <var>x</var>)</code></dt>
  252. <dd><p>Represents the use of the value of <var>x</var>. It indicates that the
  253. value in <var>x</var> at this point in the program is needed, even though
  254. it may not be apparent why this is so. Therefore, the compiler will
  255. not attempt to delete previous instructions whose only effect is to
  256. store a value in <var>x</var>. <var>x</var> must be a <code>reg</code> expression.
  257. </p>
  258. <p>In some situations, it may be tempting to add a <code>use</code> of a
  259. register in a <code>parallel</code> to describe a situation where the value
  260. of a special register will modify the behavior of the instruction.
  261. A hypothetical example might be a pattern for an addition that can
  262. either wrap around or use saturating addition depending on the value
  263. of a special control register:
  264. </p>
  265. <div class="smallexample">
  266. <pre class="smallexample">(parallel [(set (reg:SI 2) (unspec:SI [(reg:SI 3)
  267. (reg:SI 4)] 0))
  268. (use (reg:SI 1))])
  269. </pre></div>
  270. <p>This will not work, several of the optimizers only look at expressions
  271. locally; it is very likely that if you have multiple insns with
  272. identical inputs to the <code>unspec</code>, they will be optimized away even
  273. if register 1 changes in between.
  274. </p>
  275. <p>This means that <code>use</code> can <em>only</em> be used to describe
  276. that the register is live. You should think twice before adding
  277. <code>use</code> statements, more often you will want to use <code>unspec</code>
  278. instead. The <code>use</code> RTX is most commonly useful to describe that
  279. a fixed register is implicitly used in an insn. It is also safe to use
  280. in patterns where the compiler knows for other reasons that the result
  281. of the whole pattern is variable, such as &lsquo;<samp>cpymem<var>m</var></samp>&rsquo; or
  282. &lsquo;<samp>call</samp>&rsquo; patterns.
  283. </p>
  284. <p>During the reload phase, an insn that has a <code>use</code> as pattern
  285. can carry a reg_equal note. These <code>use</code> insns will be deleted
  286. before the reload phase exits.
  287. </p>
  288. <p>During the delayed branch scheduling phase, <var>x</var> may be an insn.
  289. This indicates that <var>x</var> previously was located at this place in the
  290. code and its data dependencies need to be taken into account. These
  291. <code>use</code> insns will be deleted before the delayed branch scheduling
  292. phase exits.
  293. </p>
  294. <a name="index-parallel"></a>
  295. </dd>
  296. <dt><code>(parallel [<var>x0</var> <var>x1</var> &hellip;])</code></dt>
  297. <dd><p>Represents several side effects performed in parallel. The square
  298. brackets stand for a vector; the operand of <code>parallel</code> is a
  299. vector of expressions. <var>x0</var>, <var>x1</var> and so on are individual
  300. side effect expressions&mdash;expressions of code <code>set</code>, <code>call</code>,
  301. <code>return</code>, <code>simple_return</code>, <code>clobber</code> or <code>use</code>.
  302. </p>
  303. <p>&ldquo;In parallel&rdquo; means that first all the values used in the individual
  304. side-effects are computed, and second all the actual side-effects are
  305. performed. For example,
  306. </p>
  307. <div class="smallexample">
  308. <pre class="smallexample">(parallel [(set (reg:SI 1) (mem:SI (reg:SI 1)))
  309. (set (mem:SI (reg:SI 1)) (reg:SI 1))])
  310. </pre></div>
  311. <p>says unambiguously that the values of hard register 1 and the memory
  312. location addressed by it are interchanged. In both places where
  313. <code>(reg:SI 1)</code> appears as a memory address it refers to the value
  314. in register 1 <em>before</em> the execution of the insn.
  315. </p>
  316. <p>It follows that it is <em>incorrect</em> to use <code>parallel</code> and
  317. expect the result of one <code>set</code> to be available for the next one.
  318. For example, people sometimes attempt to represent a jump-if-zero
  319. instruction this way:
  320. </p>
  321. <div class="smallexample">
  322. <pre class="smallexample">(parallel [(set (cc0) (reg:SI 34))
  323. (set (pc) (if_then_else
  324. (eq (cc0) (const_int 0))
  325. (label_ref &hellip;)
  326. (pc)))])
  327. </pre></div>
  328. <p>But this is incorrect, because it says that the jump condition depends
  329. on the condition code value <em>before</em> this instruction, not on the
  330. new value that is set by this instruction.
  331. </p>
  332. <a name="index-peephole-optimization_002c-RTL-representation"></a>
  333. <p>Peephole optimization, which takes place together with final assembly
  334. code output, can produce insns whose patterns consist of a <code>parallel</code>
  335. whose elements are the operands needed to output the resulting
  336. assembler code&mdash;often <code>reg</code>, <code>mem</code> or constant expressions.
  337. This would not be well-formed RTL at any other stage in compilation,
  338. but it is OK then because no further optimization remains to be done.
  339. However, the definition of the macro <code>NOTICE_UPDATE_CC</code>, if
  340. any, must deal with such insns if you define any peephole optimizations.
  341. </p>
  342. <a name="index-cond_005fexec"></a>
  343. </dd>
  344. <dt><code>(cond_exec [<var>cond</var> <var>expr</var>])</code></dt>
  345. <dd><p>Represents a conditionally executed expression. The <var>expr</var> is
  346. executed only if the <var>cond</var> is nonzero. The <var>cond</var> expression
  347. must not have side-effects, but the <var>expr</var> may very well have
  348. side-effects.
  349. </p>
  350. <a name="index-sequence"></a>
  351. </dd>
  352. <dt><code>(sequence [<var>insns</var> &hellip;])</code></dt>
  353. <dd><p>Represents a sequence of insns. If a <code>sequence</code> appears in the
  354. chain of insns, then each of the <var>insns</var> that appears in the sequence
  355. must be suitable for appearing in the chain of insns, i.e. must satisfy
  356. the <code>INSN_P</code> predicate.
  357. </p>
  358. <p>After delay-slot scheduling is completed, an insn and all the insns that
  359. reside in its delay slots are grouped together into a <code>sequence</code>.
  360. The insn requiring the delay slot is the first insn in the vector;
  361. subsequent insns are to be placed in the delay slot.
  362. </p>
  363. <p><code>INSN_ANNULLED_BRANCH_P</code> is set on an insn in a delay slot to
  364. indicate that a branch insn should be used that will conditionally annul
  365. the effect of the insns in the delay slots. In such a case,
  366. <code>INSN_FROM_TARGET_P</code> indicates that the insn is from the target of
  367. the branch and should be executed only if the branch is taken; otherwise
  368. the insn should be executed only if the branch is not taken.
  369. See <a href="Delay-Slots.html#Delay-Slots">Delay Slots</a>.
  370. </p>
  371. <p>Some back ends also use <code>sequence</code> objects for purposes other than
  372. delay-slot groups. This is not supported in the common parts of the
  373. compiler, which treat such sequences as delay-slot groups.
  374. </p>
  375. <p>DWARF2 Call Frame Address (CFA) adjustments are sometimes also expressed
  376. using <code>sequence</code> objects as the value of a <code>RTX_FRAME_RELATED_P</code>
  377. note. This only happens if the CFA adjustments cannot be easily derived
  378. from the pattern of the instruction to which the note is attached. In
  379. such cases, the value of the note is used instead of best-guesing the
  380. semantics of the instruction. The back end can attach notes containing
  381. a <code>sequence</code> of <code>set</code> patterns that express the effect of the
  382. parent instruction.
  383. </p></dd>
  384. </dl>
  385. <p>These expression codes appear in place of a side effect, as the body of
  386. an insn, though strictly speaking they do not always describe side
  387. effects as such:
  388. </p>
  389. <dl compact="compact">
  390. <dd><a name="index-asm_005finput"></a>
  391. </dd>
  392. <dt><code>(asm_input <var>s</var>)</code></dt>
  393. <dd><p>Represents literal assembler code as described by the string <var>s</var>.
  394. </p>
  395. <a name="index-unspec"></a>
  396. <a name="index-unspec_005fvolatile"></a>
  397. </dd>
  398. <dt><code>(unspec [<var>operands</var> &hellip;] <var>index</var>)</code></dt>
  399. <dt><code>(unspec_volatile [<var>operands</var> &hellip;] <var>index</var>)</code></dt>
  400. <dd><p>Represents a machine-specific operation on <var>operands</var>. <var>index</var>
  401. selects between multiple machine-specific operations.
  402. <code>unspec_volatile</code> is used for volatile operations and operations
  403. that may trap; <code>unspec</code> is used for other operations.
  404. </p>
  405. <p>These codes may appear inside a <code>pattern</code> of an
  406. insn, inside a <code>parallel</code>, or inside an expression.
  407. </p>
  408. <a name="index-addr_005fvec"></a>
  409. </dd>
  410. <dt><code>(addr_vec:<var>m</var> [<var>lr0</var> <var>lr1</var> &hellip;])</code></dt>
  411. <dd><p>Represents a table of jump addresses. The vector elements <var>lr0</var>,
  412. etc., are <code>label_ref</code> expressions. The mode <var>m</var> specifies
  413. how much space is given to each address; normally <var>m</var> would be
  414. <code>Pmode</code>.
  415. </p>
  416. <a name="index-addr_005fdiff_005fvec"></a>
  417. </dd>
  418. <dt><code>(addr_diff_vec:<var>m</var> <var>base</var> [<var>lr0</var> <var>lr1</var> &hellip;] <var>min</var> <var>max</var> <var>flags</var>)</code></dt>
  419. <dd><p>Represents a table of jump addresses expressed as offsets from
  420. <var>base</var>. The vector elements <var>lr0</var>, etc., are <code>label_ref</code>
  421. expressions and so is <var>base</var>. The mode <var>m</var> specifies how much
  422. space is given to each address-difference. <var>min</var> and <var>max</var>
  423. are set up by branch shortening and hold a label with a minimum and a
  424. maximum address, respectively. <var>flags</var> indicates the relative
  425. position of <var>base</var>, <var>min</var> and <var>max</var> to the containing insn
  426. and of <var>min</var> and <var>max</var> to <var>base</var>. See rtl.def for details.
  427. </p>
  428. <a name="index-prefetch"></a>
  429. </dd>
  430. <dt><code>(prefetch:<var>m</var> <var>addr</var> <var>rw</var> <var>locality</var>)</code></dt>
  431. <dd><p>Represents prefetch of memory at address <var>addr</var>.
  432. Operand <var>rw</var> is 1 if the prefetch is for data to be written, 0 otherwise;
  433. targets that do not support write prefetches should treat this as a normal
  434. prefetch.
  435. Operand <var>locality</var> specifies the amount of temporal locality; 0 if there
  436. is none or 1, 2, or 3 for increasing levels of temporal locality;
  437. targets that do not support locality hints should ignore this.
  438. </p>
  439. <p>This insn is used to minimize cache-miss latency by moving data into a
  440. cache before it is accessed. It should use only non-faulting data prefetch
  441. instructions.
  442. </p></dd>
  443. </dl>
  444. <hr>
  445. <div class="header">
  446. <p>
  447. Next: <a href="Incdec.html#Incdec" accesskey="n" rel="next">Incdec</a>, Previous: <a href="RTL-Declarations.html#RTL-Declarations" accesskey="p" rel="prev">RTL Declarations</a>, Up: <a href="RTL.html#RTL" accesskey="u" rel="up">RTL</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>
  448. </div>
  449. </body>
  450. </html>