@@ -64,7 +64,7 @@ Classes and concrete records have a unique *name*, either chosen by
64
64
the programmer or generated by TableGen. Associated with that name
65
65
is a list of *fields * with values and an optional list of *parent classes *
66
66
(sometimes called base or super classes). The fields are the primary data that
67
- backends will process. Note that TableGen assigns no meanings to fields; the
67
+ backends will process. Note that TableGen assigns no meaning to fields; the
68
68
meanings are entirely up to the backends and the programs that incorporate
69
69
the output of those backends.
70
70
@@ -243,7 +243,7 @@ Include files
243
243
-------------
244
244
245
245
TableGen has an include mechanism. The content of the included file
246
- lexically replaces the ``include `` directive and is then parsed as if it was
246
+ lexically replaces the ``include `` directive and is then parsed as if it were
247
247
originally in the main file.
248
248
249
249
.. productionlist ::
@@ -670,17 +670,17 @@ name of a multiclass.
670
670
The argument values can be specified in two forms:
671
671
672
672
* Positional argument (``value ``). The value is assigned to the argument in the
673
- corresponding position. For ``Foo<a0, a1> ``, ``a0 `` will be assigned to first
674
- argument and ``a1 `` will be assigned to second argument.
673
+ corresponding position. For ``Foo<a0, a1> ``, ``a0 `` will be assigned to the first
674
+ argument and ``a1 `` will be assigned to the second argument.
675
675
* Named argument (``name=value ``). The value is assigned to the argument with
676
676
the specified name. For ``Foo<a=a0, b=a1> ``, ``a0 `` will be assigned to the
677
677
argument with name ``a `` and ``a1 `` will be assigned to the argument with
678
678
name ``b ``.
679
679
680
- Required arguments can also be specified as named argument.
680
+ Required arguments can also be specified as a named argument.
681
681
682
682
Note that the argument can only be specified once regardless of the way (named
683
- or positional) to specify and positional arguments should be put before named
683
+ or positional) to specify and positional arguments should precede named
684
684
arguments.
685
685
686
686
.. productionlist ::
@@ -817,7 +817,7 @@ type. It provides a single field, ``Value``, which holds a 3-bit number. Its
817
817
template argument, ``val ``, is used to set the ``Value `` field. Each of the
818
818
eight records is defined with ``FPFormat `` as its parent class. The
819
819
enumeration value is passed in angle brackets as the template argument. Each
820
- record will inherent the ``Value `` field with the appropriate enumeration
820
+ record will inherit the ``Value `` field with the appropriate enumeration
821
821
value.
822
822
823
823
Here is a more complex example of classes with template arguments. First, we
@@ -1308,7 +1308,7 @@ with ``F0``, ``F1``, ``F2``, and ``F3``.
1308
1308
-------------------------------------
1309
1309
1310
1310
A ``dump `` statement prints the input string to standard error
1311
- output. It is intended for debugging purpose .
1311
+ output. It is intended for debugging purposes .
1312
1312
1313
1313
* At top level, the message is printed immediately.
1314
1314
@@ -1727,7 +1727,7 @@ and non-0 as true.
1727
1727
1728
1728
``!div( ``\ *a *\ ``, `` *b *\ ``) ``
1729
1729
This operator performs signed division of *a * by *b *, and produces the quotient.
1730
- Division by 0 produces an error. Division of INT64_MIN by -1 produces an error.
1730
+ Division by 0 produces an error. Division of `` INT64_MIN `` by -1 produces an error.
1731
1731
1732
1732
``!empty( ``\ *a *\ ``) ``
1733
1733
This operator produces 1 if the string, list, or DAG *a * is empty; 0 otherwise.
@@ -1914,7 +1914,7 @@ and non-0 as true.
1914
1914
``!or( ``\ *a *\ ``, `` *b *\ ``, ...) ``
1915
1915
This operator does a bitwise OR on *a *, *b *, etc., and produces the
1916
1916
result. A logical OR can be performed if all the arguments are either
1917
- 0 or 1. This operator is short-circuit to -1 (all ones) the left-most
1917
+ 0 or 1. This operator is short-circuit to -1 (all ones) when the left-most
1918
1918
operand is -1.
1919
1919
1920
1920
``!range([ ``\ *start *\ ``,] `` *end *\ ``[, ``\ *step *\ ``]) ``
@@ -1937,7 +1937,7 @@ and non-0 as true.
1937
1937
Equivalent to ``!range(0, !size(list)) ``.
1938
1938
1939
1939
``!repr( ``\ *value *\ ``) ``
1940
- Represents *value * as a string. String format for the value is not
1940
+ Represents *value * as a string. The string format for the value is not
1941
1941
guaranteed to be stable. Intended for debugging purposes only.
1942
1942
1943
1943
``!setdagarg( ``\ *dag *\ ``, ``\ *key *\ ``, ``\ *arg *\ ``) ``
0 commit comments