<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/Preprocessor/feature_tests.cpp, branch main</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>[clang] Mark `__builtin_convertvector` and `__builtin_shufflevector` as `constexpr`. (#112129)</title>
<updated>2024-10-14T16:09:36+00:00</updated>
<author>
<name>c8ef</name>
<email>c8ef@outlook.com</email>
</author>
<published>2024-10-14T16:09:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ab6ec7ab149ea2c627ed2814c11be33a92171153'/>
<id>ab6ec7ab149ea2c627ed2814c11be33a92171153</id>
<content type='text'>
Closes #107985.

LanguageExtensions.rst states that `__builtin_shufflevector` and
`__builtin_convertvector` can be evaluated as constants, but this is not
reflected in Butiltins.td. This patch aligns these two.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #107985.

LanguageExtensions.rst states that `__builtin_shufflevector` and
`__builtin_convertvector` can be evaluated as constants, but this is not
reflected in Butiltins.td. This patch aligns these two.</pre>
</div>
</content>
</entry>
<entry>
<title>Clang: Support minimumnum and maximumnum intrinsics (#96281)</title>
<updated>2024-10-14T07:49:01+00:00</updated>
<author>
<name>YunQiang Su</name>
<email>yunqiang@isrc.iscas.ac.cn</email>
</author>
<published>2024-10-14T07:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5bf81e53dbea609562f91a2d771863cfeb49fa32'/>
<id>5bf81e53dbea609562f91a2d771863cfeb49fa32</id>
<content type='text'>
We just introduce llvm.minimumnum and llvm.maximumnum intrinsics support
to llvm. Let's support them in Clang.

See: #93033</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We just introduce llvm.minimumnum and llvm.maximumnum intrinsics support
to llvm. Let's support them in Clang.

See: #93033</pre>
</div>
</content>
</entry>
<entry>
<title>[Clang] Improve type traits recognition in `__has_builtin` (#111516)</title>
<updated>2024-10-08T21:03:32+00:00</updated>
<author>
<name>cor3ntin</name>
<email>corentinjabot@gmail.com</email>
</author>
<published>2024-10-08T21:03:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=75611caff4fab2f73358ae1f4c4f490622cfaa1d'/>
<id>75611caff4fab2f73358ae1f4c4f490622cfaa1d</id>
<content type='text'>
`__has_builtin` was relying on reversible identifiers and string
matching to recognize builtin-type traits, leading to some newer type
traits not being recognized.

Fixes #111477</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`__has_builtin` was relying on reversible identifiers and string
matching to recognize builtin-type traits, leading to some newer type
traits not being recognized.

Fixes #111477</pre>
</div>
</content>
</entry>
<entry>
<title>[Clang][clang-cl] Implement `__builtin_FUNCSIG`</title>
<updated>2023-05-19T16:02:44+00:00</updated>
<author>
<name>Jakub Mazurkiewicz</name>
<email>mazkuba3@gmail.com</email>
</author>
<published>2023-05-19T15:57:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=78d8312acea96f58f13a876f98d241590c16d530'/>
<id>78d8312acea96f58f13a876f98d241590c16d530</id>
<content type='text'>
This patch implements __builtin_FUNCSIG intrinsic which returns the same string as __FUNCSIG__.

Fixes https://github.com/llvm/llvm-project/issues/58951
Differential Revision: https://reviews.llvm.org/D150183
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch implements __builtin_FUNCSIG intrinsic which returns the same string as __FUNCSIG__.

Fixes https://github.com/llvm/llvm-project/issues/58951
Differential Revision: https://reviews.llvm.org/D150183
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __builtin_FILE_NAME()</title>
<updated>2023-03-17T13:52:41+00:00</updated>
<author>
<name>Ilya Karapsin</name>
<email>ilya84050@gmail.com</email>
</author>
<published>2023-03-17T13:50:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2147e940e8a8f85f97f28407989c628886b5cd7e'/>
<id>2147e940e8a8f85f97f28407989c628886b5cd7e</id>
<content type='text'>
Add '__builtin_FILE_NAME()', which expands to the filename because the
full path is not always needed. It corresponds to the '__FILE_NAME__'
predefined macro and is consistent with the other '__builin' functions
added for predefined macros.

Differential Revision: https://reviews.llvm.org/D144878
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add '__builtin_FILE_NAME()', which expands to the filename because the
full path is not always needed. It corresponds to the '__FILE_NAME__'
predefined macro and is consistent with the other '__builin' functions
added for predefined macros.

Differential Revision: https://reviews.llvm.org/D144878
</pre>
</div>
</content>
</entry>
<entry>
<title>[Clang] Add __has_constexpr_builtin support</title>
<updated>2022-10-21T11:23:10+00:00</updated>
<author>
<name>Evgeny Shulgin</name>
<email>izaronplatz@gmail.com</email>
</author>
<published>2022-10-21T11:22:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5b567637e22bfa128514a5a9de7f3296423e8acd'/>
<id>5b567637e22bfa128514a5a9de7f3296423e8acd</id>
<content type='text'>
The `__has_constexpr_builtin` macro can be used to check
whether the builtin in constant-evaluated by Clang frontend.

Reviewed By: aaron.ballman, shafik

Differential Revision: https://reviews.llvm.org/D136036
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `__has_constexpr_builtin` macro can be used to check
whether the builtin in constant-evaluated by Clang frontend.

Reviewed By: aaron.ballman, shafik

Differential Revision: https://reviews.llvm.org/D136036
</pre>
</div>
</content>
</entry>
<entry>
<title>Accept __is_same_as as a GCC-compatibility synonym for the proper trait name __is_same.</title>
<updated>2019-10-29T21:44:38+00:00</updated>
<author>
<name>Richard Smith</name>
<email>richard@metafoo.co.uk</email>
</author>
<published>2019-10-29T21:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=eb535d23418c7259cac85bdb13197263b2cee056'/>
<id>eb535d23418c7259cac85bdb13197263b2cee056</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __has_builtin support for builtin function-like type traits.</title>
<updated>2019-08-14T02:30:11+00:00</updated>
<author>
<name>Richard Smith</name>
<email>richard-llvm@metafoo.co.uk</email>
</author>
<published>2019-08-14T02:30:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=dac3ea4eb3f6fc75be4305b9b7ed1a861ea5993e'/>
<id>dac3ea4eb3f6fc75be4305b9b7ed1a861ea5993e</id>
<content type='text'>
Summary:
Previously __has_builtin(__builtin_*) would return false for
__builtin_*s that we modeled as keywords rather than as functions
(because they take type arguments). With this patch, all builtins
that are called with function-call-like syntax return true from
__has_builtin (covering __builtin_* and also the __is_* and __has_* type
traits and the handful of similar builtins without such a prefix).

Update the documentation on __has_builtin and on type traits to match.
While doing this I noticed the type trait documentation was out of date
and incomplete; that's fixed here too.

Reviewers: aaron.ballman

Subscribers: jfb, kristina, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66100

llvm-svn: 368785
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Previously __has_builtin(__builtin_*) would return false for
__builtin_*s that we modeled as keywords rather than as functions
(because they take type arguments). With this patch, all builtins
that are called with function-call-like syntax return true from
__has_builtin (covering __builtin_* and also the __is_* and __has_* type
traits and the handful of similar builtins without such a prefix).

Update the documentation on __has_builtin and on type traits to match.
While doing this I noticed the type trait documentation was out of date
and incomplete; that's fixed here too.

Reviewers: aaron.ballman

Subscribers: jfb, kristina, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66100

llvm-svn: 368785
</pre>
</div>
</content>
</entry>
</feed>
