This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA: hook doc patch (56/112): TARGET_SCHED_SPECULATE_INSN
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 15 Jan 2010 22:28:08 -0500
- Subject: RFA: hook doc patch (56/112): TARGET_SCHED_SPECULATE_INSN
2010-01-15 Joern Rennecke <amylaar@spamcop.net>
* tm.texi (TARGET_SCHED_SPECULATE_INSN): Fix return value description.
Index: tm.texi
===================================================================
--- tm.texi (revision 155367)
+++ tm.texi (working copy)
@@ -6644,9 +6675,11 @@ This hook is called by the insn schedule
speculative dependencies and therefore can be scheduled speculatively.
The hook is used to check if the pattern of @var{insn} has a speculative
version and, in case of successful check, to generate that speculative
-pattern. The hook should return 1, if the instruction has a speculative form,
-or @minus{}1, if it doesn't. @var{request} describes the type of requested
-speculation. If the return value equals 1 then @var{new_pat} is assigned
-the generated speculative pattern.
+pattern. The hook should return @minus{}1, if there is no pattern that will
+satisfy the requested speculation type,
+0, if current pattern satisfies the requested speculation type,
+1, if pattern of the instruction should be changed; in the latter case,
+the hook shall write the new pattern to @var{new_pat}.
+@var{request} describes the type of requested speculation.
@end deftypefn