@@ -46,8 +46,6 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
4646 HasP8Crypto = true ;
4747 } else if (Feature == " +direct-move" ) {
4848 HasDirectMove = true ;
49- } else if (Feature == " +qpx" ) {
50- HasQPX = true ;
5149 } else if (Feature == " +htm" ) {
5250 HasHTM = true ;
5351 } else if (Feature == " +float128" ) {
@@ -99,7 +97,7 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
9997 }
10098
10199 // ABI options.
102- if (ABI == " elfv1" || ABI == " elfv1-qpx " )
100+ if (ABI == " elfv1" )
103101 Builder.defineMacro (" _CALL_ELF" , " 1" );
104102 if (ABI == " elfv2" )
105103 Builder.defineMacro (" _CALL_ELF" , " 2" );
@@ -159,22 +157,11 @@ void PPCTargetInfo::getTargetDefines(const LangOptions &Opts,
159157 Builder.defineMacro (" _ARCH_PWR10" );
160158 if (ArchDefs & ArchDefineA2)
161159 Builder.defineMacro (" _ARCH_A2" );
162- if (ArchDefs & ArchDefineA2q) {
163- Builder.defineMacro (" _ARCH_A2Q" );
164- Builder.defineMacro (" _ARCH_QP" );
165- }
166160 if (ArchDefs & ArchDefineE500)
167161 Builder.defineMacro (" __NO_LWSYNC__" );
168162 if (ArchDefs & ArchDefineFuture)
169163 Builder.defineMacro (" _ARCH_PWR_FUTURE" );
170164
171- if (getTriple ().getVendor () == llvm::Triple::BGQ) {
172- Builder.defineMacro (" __bg__" );
173- Builder.defineMacro (" __THW_BLUEGENE__" );
174- Builder.defineMacro (" __bgq__" );
175- Builder.defineMacro (" __TOS_BGQ__" );
176- }
177-
178165 if (HasAltivec) {
179166 Builder.defineMacro (" __VEC__" , " 10206" );
180167 Builder.defineMacro (" __ALTIVEC__" );
@@ -277,7 +264,6 @@ bool PPCTargetInfo::initFeatureMap(
277264 .Case (" ppc64le" , true )
278265 .Default (false );
279266
280- Features[" qpx" ] = (CPU == " a2q" );
281267 Features[" power9-vector" ] = (CPU == " pwr9" );
282268 Features[" crypto" ] = llvm::StringSwitch<bool >(CPU)
283269 .Case (" ppc64le" , true )
@@ -373,7 +359,6 @@ bool PPCTargetInfo::hasFeature(StringRef Feature) const {
373359 .Case (" power8-vector" , HasP8Vector)
374360 .Case (" crypto" , HasP8Crypto)
375361 .Case (" direct-move" , HasDirectMove)
376- .Case (" qpx" , HasQPX)
377362 .Case (" htm" , HasHTM)
378363 .Case (" bpermd" , HasBPERMD)
379364 .Case (" extdiv" , HasExtDiv)
@@ -503,17 +488,17 @@ ArrayRef<TargetInfo::AddlRegName> PPCTargetInfo::getGCCAddlRegNames() const {
503488}
504489
505490static constexpr llvm::StringLiteral ValidCPUNames[] = {
506- {" generic" }, {" 440" }, {" 450" }, {" 601" }, {" 602" },
507- {" 603" }, {" 603e" }, {" 603ev" }, {" 604" }, {" 604e" },
508- {" 620" }, {" 630" }, {" g3" }, {" 7400" }, {" g4" },
509- {" 7450" }, {" g4+" }, {" 750" }, {" 8548" }, {" 970" },
510- {" g5" }, {" a2" }, {" a2q " }, { " e500 " }, { " e500mc " },
511- {" e5500 " }, { " power3 " }, { " pwr3 " }, {" power4 " }, {" pwr4 " },
512- {" power5 " }, { " pwr5" }, {" power5x" }, {" pwr5x" }, {" power6" },
513- {" pwr6 " }, { " power6x " }, { " pwr6x " }, { " power7 " }, {" pwr7 " },
514- {" power8 " }, { " pwr8" }, {" power9" }, {" pwr9" }, {" power10" },
515- {" pwr10 " }, { " powerpc" }, {" ppc" }, {" powerpc64" }, {" ppc64" },
516- {" powerpc64le " }, { " ppc64le" }, {" future" }};
491+ {" generic" }, {" 440" }, {" 450" }, {" 601" }, {" 602" },
492+ {" 603" }, {" 603e" }, {" 603ev" }, {" 604" }, {" 604e" },
493+ {" 620" }, {" 630" }, {" g3" }, {" 7400" }, {" g4" },
494+ {" 7450" }, {" g4+" }, {" 750" }, {" 8548" }, {" 970" },
495+ {" g5" }, {" a2" }, {" e500 " }, { " e500mc " }, { " e5500 " },
496+ {" power3 " }, { " pwr3 " }, { " power4 " }, {" pwr4 " }, {" power5 " },
497+ {" pwr5" }, {" power5x" }, {" pwr5x" }, {" power6" }, { " pwr6 " },
498+ {" power6x " }, { " pwr6x " }, { " power7 " }, { " pwr7 " }, {" power8 " },
499+ {" pwr8" }, {" power9" }, {" pwr9" }, {" power10" }, { " pwr10 " },
500+ {" powerpc" }, {" ppc" }, {" powerpc64" }, {" ppc64" }, { " powerpc64le " },
501+ {" ppc64le" }, {" future" }};
517502
518503bool PPCTargetInfo::isValidCPUName (StringRef Name) const {
519504 return llvm::find (ValidCPUNames, Name) != std::end (ValidCPUNames);
0 commit comments