[llvm] [TableGen][Docs] Fix production for ValueList (PR #124180)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 12:01:14 PST 2025
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/124180
ValueList (which can be empty) is an optional ValueListNE (which must be
Non Empty).
>From b2dfc85d779f4d9a11dd99d7a77d4379b555ad6e Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Thu, 23 Jan 2025 19:58:51 +0000
Subject: [PATCH] [TableGen][Docs] Fix production for ValueList
ValueList (which can be empty) is an optional ValueListNE (which must be
Non Empty).
---
llvm/docs/TableGen/ProgRef.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
More information about the llvm-commits
mailing list