[llvm] [TableGen][Docs] Fix productionlists for SimpleValue (PR #123751)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 06:12:39 PST 2025
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/123751
Previously the grammar tokens SimpleValue2 through SimpleValue9 were
unreferenced. This ties them together so that the grammar makes more
sense.
>From a6a4fb8fba6ee3511917755ac99705c205d33e59 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Tue, 21 Jan 2025 14:09:43 +0000
Subject: [PATCH] [TableGen][Docs] Fix productionlists for SimpleValue
Previously the grammar tokens SimpleValue2 through SimpleValue9 were
unreferenced. This ties them together so that the grammar makes more
sense.
---
llvm/docs/TableGen/ProgRef.rst | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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
More information about the llvm-commits
mailing list