[llvm] [TableGen][Docs] ValueList should allow a trailing comma (PR #124728)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 02:58:59 PST 2025
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/124728
TableGen accepts trailing commas like [1,2,] and {1,2,}.
>From 21fd829e809f1771bc486c3935061634c660bd44 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Tue, 28 Jan 2025 10:57:58 +0000
Subject: [PATCH] [TableGen][Docs] ValueList should allow a trailing comma
TableGen accepts trailing commas like [1,2,] and {1,2,}.
---
llvm/docs/TableGen/ProgRef.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index cfe61382658ec4..74fb2bea25233c 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -392,7 +392,7 @@ A question mark represents an uninitialized value.
.. productionlist::
SimpleValue4: "{" [`ValueList`] "}"
ValueList: `ValueListNE`
- ValueListNE: `Value` ("," `Value`)*
+ ValueListNE: `Value` ("," `Value`)* [","]
This value represents a sequence of bits, which can be used to initialize a
``bits<``\ *n*\ ``>`` field (note the braces). When doing so, the values
More information about the llvm-commits
mailing list