[PATCH] D32117: Update TableGen LangIntro.rst
Alex Bradbury via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 2 07:00:18 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL301920: Improvements to TableGen/LangIntro.rst (authored by asb).
Changed prior to commit:
https://reviews.llvm.org/D32117?vs=96910&id=97442#toc
Repository:
rL LLVM
https://reviews.llvm.org/D32117
Files:
llvm/trunk/docs/TableGen/LangIntro.rst
Index: llvm/trunk/docs/TableGen/LangIntro.rst
===================================================================
--- llvm/trunk/docs/TableGen/LangIntro.rst
+++ llvm/trunk/docs/TableGen/LangIntro.rst
@@ -58,6 +58,10 @@
The 'string' type represents an ordered sequence of characters of arbitrary
length.
+``code``
+ The `code` type represents a code fragment, which can be single/multi-line
+ string literal.
+
``bits<n>``
A 'bits' type is an arbitrary, but fixed, size integer that is broken up
into individual bits. This type is useful because it can handle some bits
@@ -105,7 +109,7 @@
hexadecimal integer value
``"foo"``
- string value
+ a single-line string value, can be assigned to ``string`` or ``code`` variable.
``[{ ... }]``
usually called a "code fragment", but is just a multiline string literal
@@ -126,7 +130,8 @@
access to one bit of a value
``value{15-17}``
- access to multiple bits of a value
+ access to an ordered sequence of bits of a value, in particular ``value{15-17}``
+ produces an order that is the reverse of ``value{17-15}``.
``DEF``
reference to a record definition
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32117.97442.patch
Type: text/x-patch
Size: 1174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170502/60e9e2c4/attachment.bin>
More information about the llvm-commits
mailing list