From a4d4dc434330fac93e30f68bc5ab3405d0c796da Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date: Fri, 11 Nov 2016 12:57:22 +0100
Subject: [PATCH] Add *_query to the documentation of the textual language

---
 doc/ref_kernel.rst | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/doc/ref_kernel.rst b/doc/ref_kernel.rst
index 3a15e3a58..97d71f3e0 100644
--- a/doc/ref_kernel.rst
+++ b/doc/ref_kernel.rst
@@ -242,6 +242,12 @@ These are usually key-value pairs. The following attributes are recognized:
       heuristic and indicate that the specified list of dependencies is
       exhaustive.
 
+* ``dep_query=...`` provides an alternative way of specifying instruction
+  dependencies. The given string is parsed as a match expression object by
+  :func:`loopy.match.parse_match`. Upon kernel generation, this match
+  expression is used to match instructions in the kernel and add them as
+  dependencies.
+
 * ``nosync=id1:id2`` prescribes that no barrier synchronization is necessary
   the instructions with identifiers ``id1`` and ``id2`` to the, even if
   a dependency chain exists and variables are accessed in an apparently
@@ -251,6 +257,9 @@ These are usually key-value pairs. The following attributes are recognized:
   function :func:`fnmatch.fnmatchcase`. This is helpful in conjunction with
   ``id_prefix``.
 
+* ``nosync_query=...`` provides an alternative way of specifying ``nosync``,
+  just like ``dep_query`` and ``dep``.
+
 * ``priority=integer`` sets the instructions priority to the value
   ``integer``. Instructions with higher priority will be scheduled sooner,
   if possible. Note that the scheduler may still schedule a lower-priority
-- 
GitLab