Index: docs/TableGen/LangIntro.rst =================================================================== --- docs/TableGen/LangIntro.rst +++ docs/TableGen/LangIntro.rst @@ -55,8 +55,10 @@ The 'int' type represents a simple 32-bit integer value, such as 5. ``string`` - The 'string' type represents an ordered sequence of characters of arbitrary - length. + The 'string' type represents an ordered sequence of characters in single line. + +``code`` + The `code` type represents a code fragment, which can be single/multi-line string literal. ``bits`` A 'bits' type is an arbitrary, but fixed, size integer that is broken up @@ -105,7 +107,7 @@ hexadecimal integer value ``"foo"`` - string value + string value, can be assigned to ``string`` or ``code`` variable. ``[{ ... }]`` usually called a "code fragment", but is just a multiline string literal @@ -126,7 +128,8 @@ access to one bit of a value ``value{15-17}`` - access to multiple bits of a value + access to multiple bits of a value. The order matters, ``value{15-17}`` and ``value{17-15}`` + get opposite results. ``DEF`` reference to a record definition