llvm-project/clang/unittests/Sema
Melanie Blower bc5b5ea037 [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware
@kpn pointed out that the global variable initialization functions didn't
have the "strictfp" metadata set correctly, and @rjmccall said that there
was buggy code in SetFPModel and StartFunction, this patch is to solve
those problems. When Sema creates a FunctionDecl, it sets the
FunctionDeclBits.UsesFPIntrin to "true" if the lexical FP settings
(i.e. a combination of command line options and #pragma float_control
settings) correspond to ConstrainedFP mode. That bit is used when CodeGen
starts codegen for a llvm function, and it translates into the
"strictfp" function attribute. See bugs.llvm.org/show_bug.cgi?id=44571

Reviewed By: Aaron Ballman

Differential Revision: https://reviews.llvm.org/D102343
2021-07-29 12:02:37 -04:00
..
CMakeLists.txt Use libClangTesting in the unittest for AST matchers 2020-06-04 17:40:39 +02:00
CodeCompleteTest.cpp [clang][CodeComplete] Fix crash on ParenListExprs 2021-02-08 13:16:49 +01:00
ExternalSemaSourceTest.cpp [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware 2021-07-29 12:02:37 -04:00
GslOwnerPointerInference.cpp [LifetimeAnalysis] don't use raw string literals in macros 2019-09-06 19:15:02 +00:00