[llvm] [TableGen][Docs] Fix production for ValueList (PR #124180)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 12:02:18 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-tablegen

Author: Jay Foad (jayfoad)

<details>
<summary>Changes</summary>

ValueList (which can be empty) is an optional ValueListNE (which must be
Non Empty).


---
Full diff: https://github.com/llvm/llvm-project/pull/124180.diff


1 Files Affected:

- (modified) llvm/docs/TableGen/ProgRef.rst (+2-2) 


``````````diff
diff --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index cfe61382658ec4..1d3b7c7d4b5a95 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -390,8 +390,8 @@ statements, etc. When parsed, these literals are converted to integers.
 A question mark represents an uninitialized value.
 
 .. productionlist::
-   SimpleValue4: "{" [`ValueList`] "}"
-   ValueList: `ValueListNE`
+   SimpleValue4: "{" `ValueList` "}"
+   ValueList: [`ValueListNE`]
    ValueListNE: `Value` ("," `Value`)*
 
 This value represents a sequence of bits, which can be used to initialize a

``````````

</details>


https://github.com/llvm/llvm-project/pull/124180


More information about the llvm-commits mailing list