[llvm] [TableGen][Docs] Reuse production for Defvar (PR #124592)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 09:22:59 PST 2025


https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/124592

None

>From dca88c690074d1ea3e1fcb49fbd5b3dcc70b89f6 Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Mon, 27 Jan 2025 17:12:24 +0000
Subject: [PATCH] [TableGen][Docs] Reuse production for Defvar

---
 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..62b1c04f0a641b 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -672,7 +672,7 @@ arguments.
    Body: ";" | "{" `BodyItem`* "}"
    BodyItem: (`Type` | "code") `TokIdentifier` ["=" `Value`] ";"
            :| "let" `TokIdentifier` ["{" `RangeList` "}"] "=" `Value` ";"
-           :| "defvar" `TokIdentifier` "=" `Value` ";"
+           :| `Defvar`
            :| `Assert`
 
 A field definition in the body specifies a field to be included in the class



More information about the llvm-commits mailing list