Document !and. Fix !shl and friends -- they provide binary operations.
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 3 Sep 2014 13:17:03 +0000 (13:17 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 3 Sep 2014 13:17:03 +0000 (13:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217034 91177308-0d34-0410-b5e6-96231b3b80d8

docs/TableGen/LangIntro.rst
docs/TableGen/LangRef.rst

index 5bb6ee267cd893f5de61d01d74fadc2595e9dd7f..85c74a5b46087b91d99756785f3c84b5289b0b65 100644 (file)
@@ -211,8 +211,8 @@ supported include:
     on string, int and bit objects.  Use !cast<string> to compare other types of
     objects.
 
-``!shl(a,b)`` ``!srl(a,b)`` ``!sra(a,b)`` ``!add(a,b)``
-    The usual logical and arithmetic operators.
+``!shl(a,b)`` ``!srl(a,b)`` ``!sra(a,b)`` ``!add(a,b)`` ``!and(a,b)``
+    The usual binary and arithmetic operators.
 
 Note that all of the values have rules specifying how they convert to values
 for different types.  These rules allow you to assign a value like "``7``"
index 29581520497ae0152984bf3b4405e037403c1bb5..134afedbb7b4b80ce0f2e5bedbb0804d80f32e31 100644 (file)
@@ -96,7 +96,7 @@ wide variety of meanings:
 .. productionlist::
    BangOperator: one of
                :!eq     !if      !head    !tail      !con
-               :!add    !shl     !sra     !srl
+               :!add    !shl     !sra     !srl       !and
                :!cast   !empty   !subst   !foreach   !listconcat   !strconcat
 
 Syntax