@@ -46,18 +46,10 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
46
46
HasAltivec = true ;
47
47
} else if (Feature == " +vsx" ) {
48
48
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 ;
55
49
} else if (Feature == " +power8-vector" ) {
56
50
HasP8Vector = true ;
57
51
} else if (Feature == " +crypto" ) {
58
52
HasP8Crypto = true ;
59
- } else if (Feature == " +direct-move" ) {
60
- HasDirectMove = true ;
61
53
} else if (Feature == " +htm" ) {
62
54
HasHTM = true ;
63
55
} else if (Feature == " +float128" ) {
@@ -68,8 +60,6 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
68
60
HasP10Vector = true ;
69
61
} else if (Feature == " +pcrelative-memops" ) {
70
62
HasPCRelativeMemops = true ;
71
- } else if (Feature == " +prefix-instrs" ) {
72
- HasPrefixInstrs = true ;
73
63
} else if (Feature == " +spe" || Feature == " +efpu2" ) {
74
64
HasStrictFP = false ;
75
65
HasSPE = true ;
@@ -81,30 +71,12 @@ bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
81
71
HasFrsqrtes = true ;
82
72
} else if (Feature == " -hard-float" ) {
83
73
FloatABI = SoftFloat;
84
- } else if (Feature == " +paired-vector-memops" ) {
85
- PairedVectorMemops = true ;
86
74
} else if (Feature == " +mma" ) {
87
75
HasMMA = true ;
88
76
} else if (Feature == " +rop-protect" ) {
89
77
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 ;
104
78
} else if (Feature == " +quadword-atomics" ) {
105
79
HasQuadwordAtomics = true ;
106
- } else if (Feature == " +aix-shared-lib-tls-model-opt" ) {
107
- HasAIXShLibTLSModelOpt = true ;
108
80
} else if (Feature == " +longcall" ) {
109
81
UseLongCalls = true ;
110
82
}
@@ -747,31 +719,17 @@ bool PPCTargetInfo::hasFeature(StringRef Feature) const {
747
719
.Case (" powerpc" , true )
748
720
.Case (" altivec" , HasAltivec)
749
721
.Case (" vsx" , HasVSX)
750
- .Case (" crbits" , UseCRBits)
751
722
.Case (" power8-vector" , HasP8Vector)
752
723
.Case (" crypto" , HasP8Crypto)
753
- .Case (" direct-move" , HasDirectMove)
754
724
.Case (" htm" , HasHTM)
755
- .Case (" bpermd" , HasBPERMD)
756
- .Case (" extdiv" , HasExtDiv)
757
725
.Case (" float128" , HasFloat128)
758
726
.Case (" power9-vector" , HasP9Vector)
759
- .Case (" paired-vector-memops" , PairedVectorMemops)
760
727
.Case (" power10-vector" , HasP10Vector)
761
728
.Case (" pcrelative-memops" , HasPCRelativeMemops)
762
- .Case (" prefix-instrs" , HasPrefixInstrs)
763
729
.Case (" spe" , HasSPE)
764
730
.Case (" mma" , HasMMA)
765
731
.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)
773
732
.Case (" quadword-atomics" , HasQuadwordAtomics)
774
- .Case (" aix-shared-lib-tls-model-opt" , HasAIXShLibTLSModelOpt)
775
733
.Case (" longcall" , UseLongCalls)
776
734
.Default (false );
777
735
}
0 commit comments