[PATCH 1/8] builtin: Add builtin types and function declarations for integer atomic fetch min/max

Jakub Jelinek jakub@redhat.com
Tue Sep 2 08:19:17 GMT 2025


On Tue, Sep 02, 2025 at 12:03:59PM +0530, soumyaa@nvidia.com wrote:
> From: Soumya AR <soumyaa@nvidia.com>
> 
> This patch adds builtin types and function declarations for integer atomic fetch
> min/max operations.

Do we really need the new builtins?
Isn't it better to just pattern recognize such operations using
__atomic_compare_exchange if the given optab exists on the target?
When pattern recognized it can then just use one internal fn to represent
all of these.

	Jakub



More information about the Libstdc++ mailing list