[llvm] [TableGen][Docs] Fix productionlists for SimpleValue (PR #123751)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 06:13:35 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tablegen
Author: Jay Foad (jayfoad)
<details>
<summary>Changes</summary>
Previously the grammar tokens SimpleValue2 through SimpleValue9 were
unreferenced. This ties them together so that the grammar makes more
sense.
---
Full diff: https://github.com/llvm/llvm-project/pull/123751.diff
1 Files Affected:
- (modified) llvm/docs/TableGen/ProgRef.rst (+10-1)
``````````diff
diff --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index cfe61382658ec4..0abe45b9093b44 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -363,7 +363,16 @@ Simple values
The :token:`SimpleValue` has a number of forms.
.. productionlist::
- SimpleValue: `TokInteger` | `TokString`+ | `TokCode`
+ SimpleValue: `SimpleValue1`
+ :| `SimpleValue2`
+ :| `SimpleValue3`
+ :| `SimpleValue4`
+ :| `SimpleValue5`
+ :| `SimpleValue6`
+ :| `SimpleValue7`
+ :| `SimpleValue8`
+ :| `SimpleValue9`
+ SimpleValue1: `TokInteger` | `TokString`+ | `TokCode`
A value can be an integer literal, a string literal, or a code literal.
Multiple adjacent string literals are concatenated as in C/C++; the simple
``````````
</details>
https://github.com/llvm/llvm-project/pull/123751
More information about the llvm-commits
mailing list