summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/Mips.h
diff options
context:
space:
mode:
authorStefan Maksimovic <stefan.maksimovic@imgtec.com>2017-08-11 11:03:54 +0000
committerStefan Maksimovic <stefan.maksimovic@imgtec.com>2017-08-11 11:03:54 +0000
commit76391b101d993e70a6c9ef00d441ece758dc0400 (patch)
treeb0849d41d1c8da133a8b3b7f0d4dee0cb044927e /clang/lib/Basic/Targets/Mips.h
parent7426c97bc6448786c45f354c58a0b74dde6be6e7 (diff)
downloadbcm5719-llvm-76391b101d993e70a6c9ef00d441ece758dc0400.tar.gz
bcm5719-llvm-76391b101d993e70a6c9ef00d441ece758dc0400.zip
Revert r310057
Bring back changes which r304953 introduced since they were in fact not the cause of failures described in r310057 commit message. llvm-svn: 310702
Diffstat (limited to 'clang/lib/Basic/Targets/Mips.h')
-rw-r--r--clang/lib/Basic/Targets/Mips.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets/Mips.h b/clang/lib/Basic/Targets/Mips.h
index e5e5e4bab41..20382b280a6 100644
--- a/clang/lib/Basic/Targets/Mips.h
+++ b/clang/lib/Basic/Targets/Mips.h
@@ -52,6 +52,7 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
enum MipsFloatABI { HardFloat, SoftFloat } FloatABI;
enum DspRevEnum { NoDSP, DSP1, DSP2 } DspRev;
bool HasMSA;
+ bool DisableMadd4;
protected:
bool HasFP64;
@@ -62,7 +63,7 @@ public:
: TargetInfo(Triple), IsMips16(false), IsMicromips(false),
IsNan2008(false), IsSingleFloat(false), IsNoABICalls(false),
CanUseBSDABICalls(false), FloatABI(HardFloat), DspRev(NoDSP),
- HasMSA(false), HasFP64(false) {
+ HasMSA(false), DisableMadd4(false), HasFP64(false) {
TheCXXABI.set(TargetCXXABI::GenericMIPS);
setABI((getTriple().getArch() == llvm::Triple::mips ||
@@ -319,6 +320,8 @@ public:
DspRev = std::max(DspRev, DSP2);
else if (Feature == "+msa")
HasMSA = true;
+ else if (Feature == "+nomadd4")
+ DisableMadd4 = true;
else if (Feature == "+fp64")
HasFP64 = true;
else if (Feature == "-fp64")
OpenPOWER on IntegriCloud