aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/md.texi
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2013-06-04 08:56:32 +0000
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>2013-06-04 08:56:32 +0000
commitaadaf24ef0336560cb808406da288878a6120ca2 (patch)
tree4f8825d4fa1be11ed9e79f9aea1c1495ed811e18 /gcc/doc/md.texi
parent0cd9e9eeeadf90b732ed7bbad30739d1b0d9128b (diff)
downloadgcc-aadaf24ef0336560cb808406da288878a6120ca2.zip
gcc-aadaf24ef0336560cb808406da288878a6120ca2.tar.gz
gcc-aadaf24ef0336560cb808406da288878a6120ca2.tar.bz2
rtl.def: Add extra fourth optional field to define_cond_exec.
2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * rtl.def: Add extra fourth optional field to define_cond_exec. * gensupport.c (process_one_cond_exec): Process attributes from define_cond_exec. * doc/md.texi: Document fourth field in define_cond_exec. From-SVN: r199640
Diffstat (limited to 'gcc/doc/md.texi')
-rw-r--r--gcc/doc/md.texi10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi
index 8c72c85..3b20991 100644
--- a/gcc/doc/md.texi
+++ b/gcc/doc/md.texi
@@ -8866,7 +8866,8 @@ can be quite tedious to describe these forms directly in the
(define_cond_exec
[@var{predicate-pattern}]
"@var{condition}"
- "@var{output-template}")
+ "@var{output-template}"
+ "@var{optional-insn-attribues}")
@end smallexample
@var{predicate-pattern} is the condition that must be true for the
@@ -8887,6 +8888,13 @@ In order to handle the general case, there is a global variable
@code{current_insn_predicate} that will contain the entire predicate
if the current insn is predicated, and will otherwise be @code{NULL}.
+@var{optional-insn-attributes} is an optional vector of attributes that gets
+appended to the insn attributes of the produced cond_exec rtx. It can
+be used to add some distinguishing attribute to cond_exec rtxs produced
+that way. An example usage would be to use this attribute in conjunction
+with attributes on the main pattern to disable particular alternatives under
+certain conditions.
+
When @code{define_cond_exec} is used, an implicit reference to
the @code{predicable} instruction attribute is made.
@xref{Insn Attributes}. This attribute must be a boolean (i.e.@: have