Changeset View
Changeset View
Standalone View
Standalone View
llvm/docs/CommandGuide/FileCheck.rst
Show First 20 Lines • Show All 688 Lines • ▼ Show 20 Lines | * ``<expr>`` is an expression. An expression is in turn recursively defined | ||||
as: | as: | ||||
* a numeric operand, or | * a numeric operand, or | ||||
* an expression followed by an operator and a numeric operand. | * an expression followed by an operator and a numeric operand. | ||||
A numeric operand is a previously defined numeric variable, or an integer | A numeric operand is a previously defined numeric variable, or an integer | ||||
literal. The supported operators are ``+`` and ``-``. Spaces are accepted | literal. The supported operators are ``+`` and ``-``. Spaces are accepted | ||||
before, after and between any of these elements. | before, after and between any of these elements. | ||||
There is currently no support for operator precendence, but parentheses can | |||||
jhenderson: This sentence reads slightly clunkily to me. How about "however, parentheses" -> "but"? | |||||
be used to change the evaluation order. | |||||
For example: | For example: | ||||
.. code-block:: llvm | .. code-block:: llvm | ||||
; CHECK: load r[[#REG:]], [r0] | ; CHECK: load r[[#REG:]], [r0] | ||||
; CHECK: load r[[#REG+1]], [r1] | ; CHECK: load r[[#REG+1]], [r1] | ||||
; CHECK: Loading from 0x[[#%x,ADDR:]] | ; CHECK: Loading from 0x[[#%x,ADDR:]] | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |
This sentence reads slightly clunkily to me. How about "however, parentheses" -> "but"?