<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/docs/TableGen, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[TableGen][Docs] Fix empty list syntax in TableGen doc. (#145041)</title>
<updated>2025-06-20T16:07:35+00:00</updated>
<author>
<name>Chenguang Wang</name>
<email>w3cing@gmail.com</email>
</author>
<published>2025-06-20T16:07:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=72de0e45846bab293a0b07e5aeda65a5e6590a87'/>
<id>72de0e45846bab293a0b07e5aeda65a5e6590a87</id>
<content type='text'>
`[]&lt;list&lt;int&gt;&gt;` actually produces `list&lt;list&lt;int&gt;&gt;`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`[]&lt;list&lt;int&gt;&gt;` actually produces `list&lt;list&lt;int&gt;&gt;`.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Fix typos in documentation (#141078)</title>
<updated>2025-05-22T20:58:42+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-22T20:58:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=19a4e5202db40117265cfd704e7d1b7370045f17'/>
<id>19a4e5202db40117265cfd704e7d1b7370045f17</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen] Only store direct superclasses in Record (#123072)</title>
<updated>2025-04-24T17:57:51+00:00</updated>
<author>
<name>Jay Foad</name>
<email>jay.foad@amd.com</email>
</author>
<published>2025-04-24T17:57:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9'/>
<id>2bc6f9d4b6ff1d838f1c2d50cacbab6ba2f20bc9</id>
<content type='text'>
In Record only store the direct superclasses instead of all
superclasses. getSuperClasses recurses to find all superclasses when
necessary.

This gives a small reduction in memory usage. On lib/Target/X86/X86.td I
measured about 2.0% reduction in total bytes allocated (measured by
valgrind) and 1.3% reduction in peak memory usage (measured by
/usr/bin/time -v).

---------

Co-authored-by: Min-Yih Hsu &lt;min@myhsu.dev&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Record only store the direct superclasses instead of all
superclasses. getSuperClasses recurses to find all superclasses when
necessary.

This gives a small reduction in memory usage. On lib/Target/X86/X86.td I
measured about 2.0% reduction in total bytes allocated (measured by
valgrind) and 1.3% reduction in peak memory usage (measured by
/usr/bin/time -v).

---------

Co-authored-by: Min-Yih Hsu &lt;min@myhsu.dev&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen] Add `!instances` operator to get defined records (#129680)</title>
<updated>2025-03-28T08:31:00+00:00</updated>
<author>
<name>Pengcheng Wang</name>
<email>wangpengcheng.pp@bytedance.com</email>
</author>
<published>2025-03-28T08:31:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=883612859bd255fc964c121ea6d3b1a9fb37fc65'/>
<id>883612859bd255fc964c121ea6d3b1a9fb37fc65</id>
<content type='text'>
The format is: `!instances&lt;T&gt;([regex])`.
    
This operator produces a list of records whose type is `T`. If
`regex` is provided, only records whose name matches the regular
expression `regex` will be included. The format of `regex` is ERE
(Extended POSIX Regular Expressions).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The format is: `!instances&lt;T&gt;([regex])`.
    
This operator produces a list of records whose type is `T`. If
`regex` is provided, only records whose name matches the regular
expression `regex` will be included. The format of `regex` is ERE
(Extended POSIX Regular Expressions).</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen] Add `!match` operator to do regex matching (#130759)</title>
<updated>2025-03-13T04:13:09+00:00</updated>
<author>
<name>Pengcheng Wang</name>
<email>wangpengcheng.pp@bytedance.com</email>
</author>
<published>2025-03-13T04:13:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=376e3b62cd36cabf4235e085cd13df05c2bd754b'/>
<id>376e3b62cd36cabf4235e085cd13df05c2bd754b</id>
<content type='text'>
The grammar is `!match(str, regex)` and this operator produces 1
if the `str` matches the regular expression `regex`.

The format of `regex` is ERE (Extended POSIX Regular Expressions).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The grammar is `!match(str, regex)` and this operator produces 1
if the `str` matches the regular expression `regex`.

The format of `regex` is ERE (Extended POSIX Regular Expressions).</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen][Docs] Fix productionlists for assert and dump (#123739)</title>
<updated>2025-02-05T11:03:35+00:00</updated>
<author>
<name>Jay Foad</name>
<email>jay.foad@amd.com</email>
</author>
<published>2025-02-05T11:03:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b275309a4c0cc42def7c59a6d6876c16703a6efe'/>
<id>b275309a4c0cc42def7c59a6d6876c16703a6efe</id>
<content type='text'>
These were referring to nonexistent grammar tokens instead of `Value`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These were referring to nonexistent grammar tokens instead of `Value`.</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen][Docs] Fix productionlists for SimpleValue (#123751)</title>
<updated>2025-02-05T09:15:38+00:00</updated>
<author>
<name>Jay Foad</name>
<email>jay.foad@amd.com</email>
</author>
<published>2025-02-05T09:15:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=439de724fe40d1052bc9d2b0ee1d19768cfea285'/>
<id>439de724fe40d1052bc9d2b0ee1d19768cfea285</id>
<content type='text'>
Previously the grammar tokens SimpleValue2 through SimpleValue9 were
unreferenced. This ties them together so that the grammar makes more
sense.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the grammar tokens SimpleValue2 through SimpleValue9 were
unreferenced. This ties them together so that the grammar makes more
sense.</pre>
</div>
</content>
</entry>
<entry>
<title>[TableGen][Docs] Accept "code" as a Type (#124902)</title>
<updated>2025-01-30T13:17:41+00:00</updated>
<author>
<name>Jay Foad</name>
<email>jay.foad@amd.com</email>
</author>
<published>2025-01-30T13:17:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=104c2b86a5e9f4871707b25399735f0e5db58745'/>
<id>104c2b86a5e9f4871707b25399735f0e5db58745</id>
<content type='text'>
Previously the Type production did not include "code", which was only
accepted in one place in the grammar:

   BodyItem: (`Type` | "code") `TokIdentifier` ["=" `Value`] ";"

However the parser implementation accepts "code" as a Type with only one
place where it is *not* allowed, corresponding to this production:

   SimpleValue9: `BangOperator` ["&lt;" `Type` "&gt;"] "(" `ValueListNE` ")"

This patch changes the production for Type to include "code", thereby
fixing most occurrences of Type in the grammar, and documents the
restriction for BangOperator Types in the text instead of codifying it
in the grammar.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the Type production did not include "code", which was only
accepted in one place in the grammar:

   BodyItem: (`Type` | "code") `TokIdentifier` ["=" `Value`] ";"

However the parser implementation accepts "code" as a Type with only one
place where it is *not* allowed, corresponding to this production:

   SimpleValue9: `BangOperator` ["&lt;" `Type` "&gt;"] "(" `ValueListNE` ")"

This patch changes the production for Type to include "code", thereby
fixing most occurrences of Type in the grammar, and documents the
restriction for BangOperator Types in the text instead of codifying it
in the grammar.</pre>
</div>
</content>
</entry>
<entry>
<title>[Docs][TableGen] Remove ReturnRange from the SearchIndex documentation. NFC</title>
<updated>2025-01-03T19:19:23+00:00</updated>
<author>
<name>Craig Topper</name>
<email>craig.topper@sifive.com</email>
</author>
<published>2025-01-03T19:19:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5ee8418057646f4640cd1bb60e73f9e5129ea12e'/>
<id>5ee8418057646f4640cd1bb60e73f9e5129ea12e</id>
<content type='text'>
SearchIndex doesn't support ReturnRange. It is only supported for
the primary key.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SearchIndex doesn't support ReturnRange. It is only supported for
the primary key.
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm][TableGen] Add a !initialized predicate to allow testing for ? (#117964)</title>
<updated>2024-12-18T02:34:35+00:00</updated>
<author>
<name>Krzysztof Drewniak</name>
<email>Krzysztof.Drewniak@amd.com</email>
</author>
<published>2024-12-18T02:34:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b24caf3d2b91ad8b2b29d70fb69fce3c5347b9f4'/>
<id>b24caf3d2b91ad8b2b29d70fb69fce3c5347b9f4</id>
<content type='text'>
There are cases (like in an upcoming patch to MLIR's `Property` class)
where the ? value is a useful null value. However, existing predicates
make ti difficult to test if the value in a record one is operating is ?
or not.

This commit adds the !initialized predicate, which is 1 on concrete,
non-? values and 0 on ?.

---------

Co-authored-by: Akshat Oke &lt;Akshat.Oke@amd.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are cases (like in an upcoming patch to MLIR's `Property` class)
where the ? value is a useful null value. However, existing predicates
make ti difficult to test if the value in a record one is operating is ?
or not.

This commit adds the !initialized predicate, which is 1 on concrete,
non-? values and 0 on ?.

---------

Co-authored-by: Akshat Oke &lt;Akshat.Oke@amd.com&gt;</pre>
</div>
</content>
</entry>
</feed>
