@@ -46,18 +46,10 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
4646 HasAltivec = true ;
4747 } else if (Feature == " +vsx" ) {
4848 HasVSX = true ;
49- } else if (Feature == " +crbits" ) {
50- UseCRBits = true ;
51- } else if (Feature == " +bpermd" ) {
52- HasBPERMD = true ;
53- } else if (Feature == " +extdiv" ) {
54- HasExtDiv = true ;
5549 } else if (Feature == " +power8-vector" ) {
5650 HasP8Vector = true ;
5751 } else if (Feature == " +crypto" ) {
5852 HasP8Crypto = true ;
59- } else if (Feature == " +direct-move" ) {
60- HasDirectMove = true ;
6153 } else if (Feature == " +htm" ) {
6254 HasHTM = true ;
6355 } else if (Feature == " +float128" ) {
@@ -68,8 +60,6 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
6860 HasP10Vector = true ;
6961 } else if (Feature == " +pcrelative-memops" ) {
7062 HasPCRelativeMemops = true ;
71- } else if (Feature == " +prefix-instrs" ) {
72- HasPrefixInstrs = true ;
7363 } else if (Feature == " +spe" || Feature == " +efpu2" ) {
7464 HasStrictFP = false ;
7565 HasSPE = true ;
@@ -81,30 +71,12 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
8171 HasFrsqrtes = true ;
8272 } else if (Feature == " -hard-float" ) {
8373 FloatABI = SoftFloat;
84- } else if (Feature == " +paired-vector-memops" ) {
85- PairedVectorMemops = true ;
8674 } else if (Feature == " +mma" ) {
8775 HasMMA = true ;
8876 } else if (Feature == " +rop-protect" ) {
8977 HasROPProtect = true ;
90- } else if (Feature == " +privileged" ) {
91- HasPrivileged = true ;
92- } else if (Feature == " +aix-small-local-exec-tls" ) {
93- HasAIXSmallLocalExecTLS = true ;
94- } else if (Feature == " +aix-small-local-dynamic-tls" ) {
95- HasAIXSmallLocalDynamicTLS = true ;
96- } else if (Feature == " +isa-v206-instructions" ) {
97- IsISA2_06 = true ;
98- } else if (Feature == " +isa-v207-instructions" ) {
99- IsISA2_07 = true ;
100- } else if (Feature == " +isa-v30-instructions" ) {
101- IsISA3_0 = true ;
102- } else if (Feature == " +isa-v31-instructions" ) {
103- IsISA3_1 = true ;
10478 } else if (Feature == " +quadword-atomics" ) {
10579 HasQuadwordAtomics = true ;
106- } else if (Feature == " +aix-shared-lib-tls-model-opt" ) {
107- HasAIXShLibTLSModelOpt = true ;
10880 } else if (Feature == " +longcall" ) {
10981 UseLongCalls = true ;
11082 }
@@ -747,31 +719,17 @@ bool PPCTargetInfo::hasFeature(StringRef Feature) const {
747719 .Case (" powerpc" , true )
748720 .Case (" altivec" , HasAltivec)
749721 .Case (" vsx" , HasVSX)
750- .Case (" crbits" , UseCRBits)
751722 .Case (" power8-vector" , HasP8Vector)
752723 .Case (" crypto" , HasP8Crypto)
753- .Case (" direct-move" , HasDirectMove)
754724 .Case (" htm" , HasHTM)
755- .Case (" bpermd" , HasBPERMD)
756- .Case (" extdiv" , HasExtDiv)
757725 .Case (" float128" , HasFloat128)
758726 .Case (" power9-vector" , HasP9Vector)
759- .Case (" paired-vector-memops" , PairedVectorMemops)
760727 .Case (" power10-vector" , HasP10Vector)
761728 .Case (" pcrelative-memops" , HasPCRelativeMemops)
762- .Case (" prefix-instrs" , HasPrefixInstrs)
763729 .Case (" spe" , HasSPE)
764730 .Case (" mma" , HasMMA)
765731 .Case (" rop-protect" , HasROPProtect)
766- .Case (" privileged" , HasPrivileged)
767- .Case (" aix-small-local-exec-tls" , HasAIXSmallLocalExecTLS)
768- .Case (" aix-small-local-dynamic-tls" , HasAIXSmallLocalDynamicTLS)
769- .Case (" isa-v206-instructions" , IsISA2_06)
770- .Case (" isa-v207-instructions" , IsISA2_07)
771- .Case (" isa-v30-instructions" , IsISA3_0)
772- .Case (" isa-v31-instructions" , IsISA3_1)
773732 .Case (" quadword-atomics" , HasQuadwordAtomics)
774- .Case (" aix-shared-lib-tls-model-opt" , HasAIXShLibTLSModelOpt)
775733 .Case (" longcall" , UseLongCalls)
776734 .Default (false );
777735}
0 commit comments