[llvm] r217034 - Document !and. Fix !shl and friends -- they provide binary operations.
Joerg Sonnenberger
joerg at bec.de
Wed Sep 3 06:17:03 PDT 2014
Author: joerg
Date: Wed Sep 3 08:17:03 2014
New Revision: 217034
URL: http://llvm.org/viewvc/llvm-project?rev=217034&view=rev
Log:
Document !and. Fix !shl and friends -- they provide binary operations.
Modified:
llvm/trunk/docs/TableGen/LangIntro.rst
llvm/trunk/docs/TableGen/LangRef.rst
Modified: llvm/trunk/docs/TableGen/LangIntro.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TableGen/LangIntro.rst?rev=217034&r1=217033&r2=217034&view=diff
==============================================================================
--- llvm/trunk/docs/TableGen/LangIntro.rst (original)
+++ llvm/trunk/docs/TableGen/LangIntro.rst Wed Sep 3 08:17:03 2014
@@ -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``"
Modified: llvm/trunk/docs/TableGen/LangRef.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/TableGen/LangRef.rst?rev=217034&r1=217033&r2=217034&view=diff
==============================================================================
--- llvm/trunk/docs/TableGen/LangRef.rst (original)
+++ llvm/trunk/docs/TableGen/LangRef.rst Wed Sep 3 08:17:03 2014
@@ -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
More information about the llvm-commits
mailing list