<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Support/APFloat.cpp, branch users/nico/python-1</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>[NFC][ADT/Support] Add {} for else when if body has {} (#140758)</title>
<updated>2025-05-21T20:19:09+00:00</updated>
<author>
<name>Rahul Joshi</name>
<email>rjoshi@nvidia.com</email>
</author>
<published>2025-05-21T20:19:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=a76bf4da53182baace54fd69f9d38fc10e6b8e85'/>
<id>a76bf4da53182baace54fd69f9d38fc10e6b8e85</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Use StringRef::consume_front (NFC) (#139458)</title>
<updated>2025-05-11T17:28:49+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-05-11T17:28:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7470131b43405a07ccafd83aea286d0f35aefb34'/>
<id>7470131b43405a07ccafd83aea286d0f35aefb34</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[InstCombine] Fold fneg/fabs patterns with ppc_f128 (#130557)</title>
<updated>2025-04-14T06:30:00+00:00</updated>
<author>
<name>Yingwei Zheng</name>
<email>dtcxzyw2333@gmail.com</email>
</author>
<published>2025-04-14T06:30:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e710a5a9f274162c63e32aa8d88f6a734759b4a5'/>
<id>e710a5a9f274162c63e32aa8d88f6a734759b4a5</id>
<content type='text'>
This patch is needed by
https://github.com/llvm/llvm-project/pull/130496.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch is needed by
https://github.com/llvm/llvm-project/pull/130496.</pre>
</div>
</content>
</entry>
<entry>
<title>[APFloat] Fix `IEEEFloat::addOrSubtractSignificand` and `IEEEFloat::normalize` (#98721)</title>
<updated>2025-03-10T02:44:27+00:00</updated>
<author>
<name>beetrees</name>
<email>b@beetr.ee</email>
</author>
<published>2025-03-10T02:44:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8b9c91ec7da0ca3daab8ff6711126443e500bb66'/>
<id>8b9c91ec7da0ca3daab8ff6711126443e500bb66</id>
<content type='text'>
Fixes #63895
Fixes #104984

Before this PR, `addOrSubtractSignificand` presumed that the loss came
from the side being subtracted, and didn't handle the case where lhs ==
rhs and there was loss. This can occur during FMA. This PR fixes the
situation by correctly determining where the loss came from and handling
it appropriately.

Additionally, `normalize` failed to adjust the exponent when the
significand is zero but `lost_fraction != lfExactlyZero`. This meant
that the test case from #63895 was rounded incorrectly as the loss
wasn't adjusted to account for the exponent being below the minimum
exponent. This PR fixes this by only skipping the exponent adjustment if
the significand is zero and there was no lost fraction.

(Note to reviewer: I don't have commit access)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #63895
Fixes #104984

Before this PR, `addOrSubtractSignificand` presumed that the loss came
from the side being subtracted, and didn't handle the case where lhs ==
rhs and there was loss. This can occur during FMA. This PR fixes the
situation by correctly determining where the loss came from and handling
it appropriately.

Additionally, `normalize` failed to adjust the exponent when the
significand is zero but `lost_fraction != lfExactlyZero`. This meant
that the test case from #63895 was rounded incorrectly as the loss
wasn't adjusted to account for the exponent being below the minimum
exponent. This PR fixes this by only skipping the exponent adjustment if
the significand is zero and there was no lost fraction.

(Note to reviewer: I don't have commit access)</pre>
</div>
</content>
</entry>
<entry>
<title>ADT: Switch to a raw pointer for DoubleAPFloat::Floats.</title>
<updated>2025-03-06T05:15:08+00:00</updated>
<author>
<name>Peter Collingbourne</name>
<email>pcc@google.com</email>
</author>
<published>2025-03-06T05:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c72ebeeb7f1cebb481243cce3a5b18f548a9d930'/>
<id>c72ebeeb7f1cebb481243cce3a5b18f548a9d930</id>
<content type='text'>
In order for the union APFloat::Storage to permit access to the
semantics field when another union member is stored there, all members
of Storage must be standard layout. This is not necessarily the case
for DoubleAPFloat which may be non-standard layout because there is no
requirement that its std::unique_ptr member is standard layout. Fix this
by converting Floats to a raw pointer.

Reviewers: arsenm

Reviewed By: arsenm

Pull Request: https://github.com/llvm/llvm-project/pull/129981
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order for the union APFloat::Storage to permit access to the
semantics field when another union member is stored there, all members
of Storage must be standard layout. This is not necessarily the case
for DoubleAPFloat which may be non-standard layout because there is no
requirement that its std::unique_ptr member is standard layout. Fix this
by converting Floats to a raw pointer.

Reviewers: arsenm

Reviewed By: arsenm

Pull Request: https://github.com/llvm/llvm-project/pull/129981
</pre>
</div>
</content>
</entry>
<entry>
<title>[X86][DAGCombiner] Skip x87 fp80 values in `combineFMulOrFDivWithIntPow2` (#128618)</title>
<updated>2025-02-25T14:03:17+00:00</updated>
<author>
<name>Yingwei Zheng</name>
<email>dtcxzyw2333@gmail.com</email>
</author>
<published>2025-02-25T14:03:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=44d1dbd24c20a0ee93063dcf44d68e2b8f0bf77c'/>
<id>44d1dbd24c20a0ee93063dcf44d68e2b8f0bf77c</id>
<content type='text'>
f80 is not a valid IEEE floating-point type.
Closes https://github.com/llvm/llvm-project/issues/128528.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
f80 is not a valid IEEE floating-point type.
Closes https://github.com/llvm/llvm-project/issues/128528.</pre>
</div>
</content>
</entry>
<entry>
<title>[APFloat][NFC]extract `fltSemantics::isRepresentableBy` to header (#122636)</title>
<updated>2025-01-13T22:12:04+00:00</updated>
<author>
<name>Congcong Cai</name>
<email>congcongcai0907@163.com</email>
</author>
<published>2025-01-13T22:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ad56f6267f6b208c46074d9f58464f171418d619'/>
<id>ad56f6267f6b208c46074d9f58464f171418d619</id>
<content type='text'>
isRepresentableBy is useful to check float point type compatibility</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
isRepresentableBy is useful to check float point type compatibility</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm][NFC] `APFloat`: Add missing semantics to enum (#117291)</title>
<updated>2024-12-04T22:58:59+00:00</updated>
<author>
<name>Matthias Springer</name>
<email>me@m-sp.org</email>
</author>
<published>2024-12-04T22:58:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f50ce316ec434f1e2f061287a48d85acde801a3d'/>
<id>f50ce316ec434f1e2f061287a48d85acde801a3d</id>
<content type='text'>
* Add missing semantics to the `Semantics` enum.
* Move all documentation of the semantics to the header file.
* Also rename some functions for consistency.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add missing semantics to the `Semantics` enum.
* Move all documentation of the semantics to the header file.
* Also rename some functions for consistency.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] `APFloat`: Add helpers to query NaN/inf semantics (#116315)</title>
<updated>2024-11-16T02:48:05+00:00</updated>
<author>
<name>Matthias Springer</name>
<email>me@m-sp.org</email>
</author>
<published>2024-11-16T02:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=309c890921b8d2f33e32aac4890317b887189a1f'/>
<id>309c890921b8d2f33e32aac4890317b887189a1f</id>
<content type='text'>
`APFloat` changes extracted from #116176 as per reviewer comments.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`APFloat` changes extracted from #116176 as per reviewer comments.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] `APFloat`: Query `hasNanOrInf` from semantics (#116158)</title>
<updated>2024-11-15T00:29:54+00:00</updated>
<author>
<name>Matthias Springer</name>
<email>me@m-sp.org</email>
</author>
<published>2024-11-15T00:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2f55de4e317ee93cdca839558acf8be2b5ac2b46'/>
<id>2f55de4e317ee93cdca839558acf8be2b5ac2b46</id>
<content type='text'>
Whether a floating point type supports NaN or infinity can be queried
from its semantics. No need to hard-code a list of types.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Whether a floating point type supports NaN or infinity can be queried
from its semantics. No need to hard-code a list of types.</pre>
</div>
</content>
</entry>
</feed>
