[llvm] [TableGen][Docs] Fix empty list syntax in TableGen doc. (PR #145041)

Chenguang Wang via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 20 07:11:26 PDT 2025


https://github.com/wecing created https://github.com/llvm/llvm-project/pull/145041

`[]<list<int>>` actually produces `list<list<int>>`.

>From d08024c893ab843b7d8e29804084ff0e0699991a Mon Sep 17 00:00:00 2001
From: Chenguang Wang <w3cing at gmail.com>
Date: Fri, 20 Jun 2025 07:08:41 -0700
Subject: [PATCH] [TableGen][Docs] Fix empty list syntax in TableGen doc.

`[]<list<int>>` actually produces `list<list<int>>`.
---
 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 fe0564d2990df..7b30698ce4fd6 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -1915,7 +1915,7 @@ and non-0 as true.
     ``list<int>``. *start* is ``0`` and *step* is ``1`` by default. *step* can
     be negative and cannot be 0. If *start* ``<`` *end* and *step* is negative,
     or *start* ``>`` *end* and *step* is positive, the result is an empty list
-    ``[]<list<int>>``.
+    ``[]<int>``.
 
     For example:
 



More information about the llvm-commits mailing list