| ... | @@ -2,12 +2,9 @@ const std = @import("../std.zig"); | ... | @@ -2,12 +2,9 @@ const std = @import("../std.zig"); |
| 2 | const Cpu = std.Target.Cpu; | 2 | const Cpu = std.Target.Cpu; |
| 3 | | 3 | |
| 4 | pub const Feature = enum { | 4 | pub const Feature = enum { |
| 5 | @"16bit_mode", | | |
| 6 | @"32bit_mode", | | |
| 7 | @"3dnow", | 5 | @"3dnow", |
| 8 | @"3dnowa", | 6 | @"3dnowa", |
| 9 | @"64bit", | 7 | @"64bit", |
| 10 | @"64bit_mode", | | |
| 11 | adx, | 8 | adx, |
| 12 | aes, | 9 | aes, |
| 13 | avx, | 10 | avx, |
| ... | @@ -138,16 +135,6 @@ pub const all_features = blk: { | ... | @@ -138,16 +135,6 @@ pub const all_features = blk: { |
| 138 | const len = @typeInfo(Feature).Enum.fields.len; | 135 | const len = @typeInfo(Feature).Enum.fields.len; |
| 139 | std.debug.assert(len <= Cpu.Feature.Set.needed_bit_count); | 136 | std.debug.assert(len <= Cpu.Feature.Set.needed_bit_count); |
| 140 | var result: [len]Cpu.Feature = undefined; | 137 | var result: [len]Cpu.Feature = undefined; |
| 141 | result[@enumToInt(Feature.@"16bit_mode")] = .{ | | |
| 142 | .llvm_name = "16bit-mode", | | |
| 143 | .description = "16-bit mode (i8086)", | | |
| 144 | .dependencies = featureSet(&[_]Feature{}), | | |
| 145 | }; | | |
| 146 | result[@enumToInt(Feature.@"32bit_mode")] = .{ | | |
| 147 | .llvm_name = "32bit-mode", | | |
| 148 | .description = "32-bit mode (80386)", | | |
| 149 | .dependencies = featureSet(&[_]Feature{}), | | |
| 150 | }; | | |
| 151 | result[@enumToInt(Feature.@"3dnow")] = .{ | 138 | result[@enumToInt(Feature.@"3dnow")] = .{ |
| 152 | .llvm_name = "3dnow", | 139 | .llvm_name = "3dnow", |
| 153 | .description = "Enable 3DNow! instructions", | 140 | .description = "Enable 3DNow! instructions", |
| ... | @@ -167,11 +154,6 @@ pub const all_features = blk: { | ... | @@ -167,11 +154,6 @@ pub const all_features = blk: { |
| 167 | .description = "Support 64-bit instructions", | 154 | .description = "Support 64-bit instructions", |
| 168 | .dependencies = featureSet(&[_]Feature{}), | 155 | .dependencies = featureSet(&[_]Feature{}), |
| 169 | }; | 156 | }; |
| 170 | result[@enumToInt(Feature.@"64bit_mode")] = .{ | | |
| 171 | .llvm_name = "64bit-mode", | | |
| 172 | .description = "64-bit mode (x86_64)", | | |
| 173 | .dependencies = featureSet(&[_]Feature{}), | | |
| 174 | }; | | |
| 175 | result[@enumToInt(Feature.adx)] = .{ | 157 | result[@enumToInt(Feature.adx)] = .{ |
| 176 | .llvm_name = "adx", | 158 | .llvm_name = "adx", |
| 177 | .description = "Support ADX instructions", | 159 | .description = "Support ADX instructions", |