[llvm] e74b326 - Rename 'DenormalMode' in CommandFlags.inc to 'DenormalFPMath', as its
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 09:16:25 PST 2019
Author: James Y Knight
Date: 2019-11-20T12:16:14-05:00
New Revision: e74b326b1f506538f1fce11b7a70bcf7fb9b573c
URL: https://github.com/llvm/llvm-project/commit/e74b326b1f506538f1fce11b7a70bcf7fb9b573c
DIFF: https://github.com/llvm/llvm-project/commit/e74b326b1f506538f1fce11b7a70bcf7fb9b573c.diff
LOG: Rename 'DenormalMode' in CommandFlags.inc to 'DenormalFPMath', as its
option is actually named anyhow.
This avoids a conflict with the llvm::DenormalMode enum in
FloatingPointMode.h.
Added:
Modified:
llvm/include/llvm/CodeGen/CommandFlags.inc
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.inc b/llvm/include/llvm/CodeGen/CommandFlags.inc
index f1b3afbb44ae..76071b38c413 100644
--- a/llvm/include/llvm/CodeGen/CommandFlags.inc
+++ b/llvm/include/llvm/CodeGen/CommandFlags.inc
@@ -151,7 +151,7 @@ static cl::opt<bool>
"attribute not to use exceptions"),
cl::init(false));
-static cl::opt<llvm::FPDenormal::DenormalMode> DenormalMode(
+static cl::opt<llvm::FPDenormal::DenormalMode> DenormalFPMath(
"denormal-fp-math",
cl::desc("Select which denormal numbers the code is permitted to require"),
cl::init(FPDenormal::IEEE),
@@ -291,7 +291,7 @@ static TargetOptions InitTargetOptionsFromCodeGenFlags() {
Options.NoNaNsFPMath = EnableNoNaNsFPMath;
Options.NoSignedZerosFPMath = EnableNoSignedZerosFPMath;
Options.NoTrappingFPMath = EnableNoTrappingFPMath;
- Options.FPDenormalMode = DenormalMode;
+ Options.FPDenormalMode = DenormalFPMath;
Options.HonorSignDependentRoundingFPMathOption =
EnableHonorSignDependentRoundingFPMath;
if (FloatABIForCalls != FloatABI::Default)
More information about the llvm-commits
mailing list