summaryrefslogtreecommitdiff
path: root/docs/TableGen/LangIntro.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/TableGen/LangIntro.rst')
-rw-r--r--docs/TableGen/LangIntro.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/TableGen/LangIntro.rst b/docs/TableGen/LangIntro.rst
index 3e74dffb00e..0f8b3f62136 100644
--- a/docs/TableGen/LangIntro.rst
+++ b/docs/TableGen/LangIntro.rst
@@ -208,6 +208,12 @@ 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.
+
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``"
to a "``bits<4>``" value, for example.