[llvm] [TableGen][Docs] Defm ParentClassList cannot be empty (PR #124740)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 05:12:39 PST 2025
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/124740
For Def, Class and MultiClass, the ParentClassList may be empty. Fix the
production for Defm where it cannot.
>From 293a7c335d71b8aa6bfce16542312c58036a370f Mon Sep 17 00:00:00 2001
From: Jay Foad <jay.foad at amd.com>
Date: Tue, 28 Jan 2025 13:10:55 +0000
Subject: [PATCH] [TableGen][Docs] Defm ParentClassList cannot be empty
For Def, Class and MultiClass, the ParentClassList may be empty. Fix the
production for Defm where it cannot.
---
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..7371ab5d22e249 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -970,10 +970,10 @@ multiclasses. Those record definitions are specified by ``def``
statements in the multiclasses, and indirectly by ``defm`` statements.
.. productionlist::
- Defm: "defm" [`NameValue`] `ParentClassList` ";"
+ Defm: "defm" [`NameValue`] `ParentClassListNE` ";"
The optional :token:`NameValue` is formed in the same way as the name of a
-``def``. The :token:`ParentClassList` is a colon followed by a list of at
+``def``. The :token:`ParentClassListNE` is a colon followed by a list of at
least one multiclass and any number of regular classes. The multiclasses
must precede the regular classes. Note that the ``defm`` does not have a
body.
More information about the llvm-commits
mailing list