summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2016-10-04 08:03:36 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2016-10-04 08:03:36 +0000
commit535529b41c9d1a1b52ee755008018f27a0bb4fec (patch)
tree27665aea31818076b81458db0da7a26e41b63c96 /llvm/lib/Target
parenta565d9e612615416fb3420550a12d618b39fd63a (diff)
downloadbcm5719-llvm-535529b41c9d1a1b52ee755008018f27a0bb4fec.tar.gz
bcm5719-llvm-535529b41c9d1a1b52ee755008018f27a0bb4fec.zip
Consistent fp denormal mode names. NFC.
This fixes the inconsistency of the fp denormal option names: in LLVM this was DenormalType, but in Clang this is DenormalMode which seems better. Differential Revision: https://reviews.llvm.org/D24906 llvm-svn: 283192
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/ARM/ARMAsmPrinter.cpp4
-rw-r--r--llvm/lib/Target/TargetMachine.cpp6
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index b73225ef1e8..b1b4f865691 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -781,12 +781,12 @@ void ARMAsmPrinter::emitAttributes() {
// Set FP Denormals.
if (haveAllFunctionsAttribute(*MMI->getModule(), "denormal-fp-math",
"preserve-sign") ||
- TM.Options.FPDenormalType == FPDenormal::PreserveSign)
+ TM.Options.FPDenormalMode == FPDenormal::PreserveSign)
ATS.emitAttribute(ARMBuildAttrs::ABI_FP_denormal,
ARMBuildAttrs::PreserveFPSign);
else if (haveAllFunctionsAttribute(*MMI->getModule(), "denormal-fp-math",
"positive-zero") ||
- TM.Options.FPDenormalType == FPDenormal::PositiveZero)
+ TM.Options.FPDenormalMode == FPDenormal::PositiveZero)
ATS.emitAttribute(ARMBuildAttrs::ABI_FP_denormal,
ARMBuildAttrs::PositiveZero);
else if (!TM.Options.UnsafeFPMath)
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp
index f58535d8767..43a587ba847 100644
--- a/llvm/lib/Target/TargetMachine.cpp
+++ b/llvm/lib/Target/TargetMachine.cpp
@@ -82,11 +82,11 @@ void TargetMachine::resetTargetOptions(const Function &F) const {
StringRef Denormal =
F.getFnAttribute("denormal-fp-math").getValueAsString();
if (Denormal == "ieee")
- Options.FPDenormalType = FPDenormal::IEEE;
+ Options.FPDenormalMode = FPDenormal::IEEE;
else if (Denormal == "preserve-sign")
- Options.FPDenormalType = FPDenormal::PreserveSign;
+ Options.FPDenormalMode = FPDenormal::PreserveSign;
else if (Denormal == "positive-zero")
- Options.FPDenormalType = FPDenormal::PositiveZero;
+ Options.FPDenormalMode = FPDenormal::PositiveZero;
}
/// Returns the code generation relocation model. The choices are static, PIC,
OpenPOWER on IntegriCloud