r282255 - Fix for r280064 that added options for fp denormals and exceptions.
Sjoerd Meijer via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 23 08:21:33 PDT 2016
Author: sjoerdmeijer
Date: Fri Sep 23 10:21:33 2016
New Revision: 282255
URL: http://llvm.org/viewvc/llvm-project?rev=282255&view=rev
Log:
Fix for r280064 that added options for fp denormals and exceptions.
These options were forgotten to be copied in setCommandLineOpts.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=282255&r1=282254&r2=282255&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Fri Sep 23 10:21:33 2016
@@ -537,6 +537,12 @@ void EmitAssemblyHelper::CreateTargetMac
.Case("posix", llvm::ThreadModel::POSIX)
.Case("single", llvm::ThreadModel::Single);
+ Options.FPDenormalType =
+ llvm::StringSwitch<llvm::FPDenormal::DenormalType>(CodeGenOpts.FPDenormalMode)
+ .Case("ieee", llvm::FPDenormal::IEEE)
+ .Case("preserve-sign", llvm::FPDenormal::PreserveSign)
+ .Case("positive-zero", llvm::FPDenormal::PositiveZero);
+
// Set float ABI type.
assert((CodeGenOpts.FloatABI == "soft" || CodeGenOpts.FloatABI == "softfp" ||
CodeGenOpts.FloatABI == "hard" || CodeGenOpts.FloatABI.empty()) &&
@@ -579,6 +585,7 @@ void EmitAssemblyHelper::CreateTargetMac
Options.LessPreciseFPMADOption = CodeGenOpts.LessPreciseFPMAD;
Options.NoInfsFPMath = CodeGenOpts.NoInfsFPMath;
Options.NoNaNsFPMath = CodeGenOpts.NoNaNsFPMath;
+ Options.NoTrappingFPMath = CodeGenOpts.NoTrappingMath;
Options.NoZerosInBSS = CodeGenOpts.NoZeroInitializedInBSS;
Options.UnsafeFPMath = CodeGenOpts.UnsafeFPMath;
Options.StackAlignmentOverride = CodeGenOpts.StackAlignment;
More information about the cfe-commits
mailing list