<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/clang/test/Parser/fp-floatcontrol-syntax.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>Remove redundant option -menable-unsafe-fp-math.</title>
<updated>2022-10-14T14:55:29+00:00</updated>
<author>
<name>Zahira Ammarguellat</name>
<email>zahira.ammarguellat@intel.com</email>
</author>
<published>2022-10-03T19:15:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=84a9ec2ff1ee97fd7e8ed988f5e7b197aab84a7b'/>
<id>84a9ec2ff1ee97fd7e8ed988f5e7b197aab84a7b</id>
<content type='text'>
There are currently two options that are used to tell the compiler to perform
unsafe floating-point optimizations:
'-ffast-math' and '-funsafe-math-optimizations'.

'-ffast-math' is enabled by default. It automatically enables the driver option
'-menable-unsafe-fp-math'.
Below is a table illustrating the special operations enabled automatically by
'-ffast-math', '-funsafe-math-optimizations' and '-menable-unsafe-fp-math'
respectively.

Special Operations -ffast-math	-funsafe-math-optimizations -menable-unsafe-fp-math
MathErrno	       0	         1	                    1
FiniteMathOnly         1 	         0                          0
AllowFPReassoc	       1         	 1                          1
NoSignedZero	       1                 1                          1
AllowRecip             1                 1                          1
ApproxFunc             1                 1                          1
RoundingMath	       0                 0                          0
UnsafeFPMath	       1                 0                          1
FPContract	       fast	         on	                    on

'-ffast-math' enables '-fno-math-errno', '-ffinite-math-only',
'-funsafe-math-optimzations' and sets 'FpContract' to 'fast'. The driver option
'-menable-unsafe-fp-math' enables the same special options than
'-funsafe-math-optimizations'. This is redundant.
We propose to remove the driver option '-menable-unsafe-fp-math' and use
instead, the setting of the special operations to set the function attribute
'unsafe-fp-math'. This attribute will be enabled only if those special
operations are enabled and if 'FPContract' is either 'fast' or set to the
default value.

Differential Revision: https://reviews.llvm.org/D135097
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are currently two options that are used to tell the compiler to perform
unsafe floating-point optimizations:
'-ffast-math' and '-funsafe-math-optimizations'.

'-ffast-math' is enabled by default. It automatically enables the driver option
'-menable-unsafe-fp-math'.
Below is a table illustrating the special operations enabled automatically by
'-ffast-math', '-funsafe-math-optimizations' and '-menable-unsafe-fp-math'
respectively.

Special Operations -ffast-math	-funsafe-math-optimizations -menable-unsafe-fp-math
MathErrno	       0	         1	                    1
FiniteMathOnly         1 	         0                          0
AllowFPReassoc	       1         	 1                          1
NoSignedZero	       1                 1                          1
AllowRecip             1                 1                          1
ApproxFunc             1                 1                          1
RoundingMath	       0                 0                          0
UnsafeFPMath	       1                 0                          1
FPContract	       fast	         on	                    on

'-ffast-math' enables '-fno-math-errno', '-ffinite-math-only',
'-funsafe-math-optimzations' and sets 'FpContract' to 'fast'. The driver option
'-menable-unsafe-fp-math' enables the same special options than
'-funsafe-math-optimizations'. This is redundant.
We propose to remove the driver option '-menable-unsafe-fp-math' and use
instead, the setting of the special operations to set the function attribute
'unsafe-fp-math'. This attribute will be enabled only if those special
operations are enabled and if 'FPContract' is either 'fast' or set to the
default value.

Differential Revision: https://reviews.llvm.org/D135097
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow #pragma float_control(push|pop) within a language linkage specification</title>
<updated>2021-07-28T11:37:56+00:00</updated>
<author>
<name>Aaron Ballman</name>
<email>aaron@aaronballman.com</email>
</author>
<published>2021-07-28T11:37:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b0ef3d8f666fa6008abb09340b73d9340d442569'/>
<id>b0ef3d8f666fa6008abb09340b73d9340d442569</id>
<content type='text'>
Currently, we prohibit this pragma from appearing within a language
linkage specification, but this is useful functionality that is
supported by MSVC (which is where we inherited this feature from).
This patch allows you to use the pragma within an extern "C" {} (etc)
block.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, we prohibit this pragma from appearing within a language
linkage specification, but this is useful functionality that is
supported by MSVC (which is where we inherited this feature from).
This patch allows you to use the pragma within an extern "C" {} (etc)
block.
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang][cli] Remove -f[no-]trapping-math from -cc1 command line</title>
<updated>2021-01-12T09:00:23+00:00</updated>
<author>
<name>Jan Svoboda</name>
<email>jan_svoboda@apple.com</email>
</author>
<published>2021-01-12T08:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7ab803095ae58445996dc4694acb216e3a32ee64'/>
<id>7ab803095ae58445996dc4694acb216e3a32ee64</id>
<content type='text'>
This patch removes the -f[no-]trapping-math flags from the -cc1 command line. These flags are ignored in the command line parser and their semantics is fully handled by -ffp-exception-mode.

This patch does not remove -f[no-]trapping-math from the driver command line. The driver flags are being used and do affect compilation.

Reviewed By: dexonsmith, SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D93395
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch removes the -f[no-]trapping-math flags from the -cc1 command line. These flags are ignored in the command line parser and their semantics is fully handled by -ffp-exception-mode.

This patch does not remove -f[no-]trapping-math from the driver command line. The driver flags are being used and do affect compilation.

Reviewed By: dexonsmith, SjoerdMeijer

Differential Revision: https://reviews.llvm.org/D93395
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang] Enable support for #pragma STDC FENV_ACCESS</title>
<updated>2020-10-25T13:46:25+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-09-29T17:44:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2e204e23911b1f8bd1463535da40c6e48747a138'/>
<id>2e204e23911b1f8bd1463535da40c6e48747a138</id>
<content type='text'>
Reviewers: rjmccall, rsmith, sepavloff

Differential Revision: https://reviews.llvm.org/D87528
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewers: rjmccall, rsmith, sepavloff

Differential Revision: https://reviews.llvm.org/D87528
</pre>
</div>
</content>
</entry>
<entry>
<title>[PATCH] #pragma float_control should be permitted in namespace scope.</title>
<updated>2020-05-12T13:10:19+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-08T15:05:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7f2db993500923a51c0b0aed650a3e0d4241205b'/>
<id>7f2db993500923a51c0b0aed650a3e0d4241205b</id>
<content type='text'>
Summary: Erroneous error diagnostic observed in VS2017 &lt;numeric&gt; header
Also correction to propagate usesFPIntrin from template func to instantiation.

Reviewers: rjmccall, erichkeane (no feedback received)

Differential Revision: https://reviews.llvm.org/D79631
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary: Erroneous error diagnostic observed in VS2017 &lt;numeric&gt; header
Also correction to propagate usesFPIntrin from template func to instantiation.

Reviewers: rjmccall, erichkeane (no feedback received)

Differential Revision: https://reviews.llvm.org/D79631
</pre>
</div>
</content>
</entry>
<entry>
<title>When pragma FENV_ACCESS is ignored do not modify Sema.CurFPFeatures</title>
<updated>2020-05-06T20:18:59+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-06T18:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e5578013b199e142864cbf374b4a143e5d0c184a'/>
<id>e5578013b199e142864cbf374b4a143e5d0c184a</id>
<content type='text'>
Bug reported by @uabelho against reviews.llvm.org/D72841

Reviewers: rjmccall

Differential Revision: https://reviews.llvm.org/D79510
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug reported by @uabelho against reviews.llvm.org/D72841

Reviewers: rjmccall

Differential Revision: https://reviews.llvm.org/D79510
</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "Add support for #pragma float_control" with buildbot fixes</title>
<updated>2020-05-04T12:51:25+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-01T17:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f5360d4bb3376347479d86547d21b95d80be786d'/>
<id>f5360d4bb3376347479d86547d21b95d80be786d</id>
<content type='text'>
Add support for #pragma float_control

Reviewers: rjmccall, erichkeane, sepavloff

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

This reverts commit fce82c0ed310174fe48e2402ac731b6340098389.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add support for #pragma float_control

Reviewers: rjmccall, erichkeane, sepavloff

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

This reverts commit fce82c0ed310174fe48e2402ac731b6340098389.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Reapply "Add support for #pragma float_control" with improvements to"</title>
<updated>2020-05-01T17:31:09+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-01T17:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fce82c0ed310174fe48e2402ac731b6340098389'/>
<id>fce82c0ed310174fe48e2402ac731b6340098389</id>
<content type='text'>
This reverts commit 69aacaf699922ffe0450f567e21208c10c84731f.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 69aacaf699922ffe0450f567e21208c10c84731f.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "Add support for #pragma float_control" with improvements to</title>
<updated>2020-05-01T17:03:30+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-01T16:26:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=69aacaf699922ffe0450f567e21208c10c84731f'/>
<id>69aacaf699922ffe0450f567e21208c10c84731f</id>
<content type='text'>
test cases
Add support for #pragma float_control

Reviewers: rjmccall, erichkeane, sepavloff

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

This reverts commit 85dc033caccaa6ab919d57f9759290be41240146, and makes
corrections to the test cases that failed on buildbots.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test cases
Add support for #pragma float_control

Reviewers: rjmccall, erichkeane, sepavloff

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

This reverts commit 85dc033caccaa6ab919d57f9759290be41240146, and makes
corrections to the test cases that failed on buildbots.
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Add support for #pragma float_control"</title>
<updated>2020-05-01T13:36:58+00:00</updated>
<author>
<name>Melanie Blower</name>
<email>melanie.blower@intel.com</email>
</author>
<published>2020-05-01T13:36:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=85dc033caccaa6ab919d57f9759290be41240146'/>
<id>85dc033caccaa6ab919d57f9759290be41240146</id>
<content type='text'>
This reverts commit 4f1e9a17e9d28bdfd035313c96b3a5d4c91a7733.
due to fail on buildbot, sorry for the noise
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 4f1e9a17e9d28bdfd035313c96b3a5d4c91a7733.
due to fail on buildbot, sorry for the noise
</pre>
</div>
</content>
</entry>
</feed>
