[clang] [llvm] [AMDGPU] Implement 'llvm.get.fpenv' and 'llvm.set.fpenv' (PR #83906)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 5 20:00:23 PST 2024
================
@@ -6826,6 +6826,10 @@ def warn_floatingpoint_eq : Warning<
"comparing floating point with == or != is unsafe">,
InGroup<DiagGroup<"float-equal">>, DefaultIgnore;
+def warn_fenv_access : Warning<
+ "floating point environment access without #pragma STDC FENV_ACCESS set ON">,
+ InGroup<DiagGroup<"float-env">>;
----------------
jhuber6 wrote:
I'm not specifically knowledgeable about how this should be handled in the grander scheme. Could I get rid of the warning and leave that for a separate patch?
https://github.com/llvm/llvm-project/pull/83906
More information about the cfe-commits
mailing list