| ... | @@ -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, |
| ... | @@ -134,20 +131,6 @@ pub const all_features = blk: { | ... | @@ -134,20 +131,6 @@ pub const all_features = blk: { |
| 134 | const len = @typeInfo(Feature).Enum.fields.len; | 131 | const len = @typeInfo(Feature).Enum.fields.len; |
| 135 | std.debug.assert(len <= Cpu.Feature.Set.bit_count); | 132 | std.debug.assert(len <= Cpu.Feature.Set.bit_count); |
| 136 | var result: [len]Cpu.Feature = undefined; | 133 | var result: [len]Cpu.Feature = undefined; |
| 137 | result[@enumToInt(Feature.@"16bit_mode")] = .{ | | |
| 138 | .index = @enumToInt(Feature.@"16bit_mode"), | | |
| 139 | .name = @tagName(Feature.@"16bit_mode"), | | |
| 140 | .llvm_name = "16bit-mode", | | |
| 141 | .description = "16-bit mode (i8086)", | | |
| 142 | .dependencies = featureSet(&[_]Feature{}), | | |
| 143 | }; | | |
| 144 | result[@enumToInt(Feature.@"32bit_mode")] = .{ | | |
| 145 | .index = @enumToInt(Feature.@"32bit_mode"), | | |
| 146 | .name = @tagName(Feature.@"32bit_mode"), | | |
| 147 | .llvm_name = "32bit-mode", | | |
| 148 | .description = "32-bit mode (80386)", | | |
| 149 | .dependencies = featureSet(&[_]Feature{}), | | |
| 150 | }; | | |
| 151 | result[@enumToInt(Feature.@"3dnow")] = .{ | 134 | result[@enumToInt(Feature.@"3dnow")] = .{ |
| 152 | .index = @enumToInt(Feature.@"3dnow"), | 135 | .index = @enumToInt(Feature.@"3dnow"), |
| 153 | .name = @tagName(Feature.@"3dnow"), | 136 | .name = @tagName(Feature.@"3dnow"), |
| ... | @@ -173,13 +156,6 @@ pub const all_features = blk: { | ... | @@ -173,13 +156,6 @@ pub const all_features = blk: { |
| 173 | .description = "Support 64-bit instructions", | 156 | .description = "Support 64-bit instructions", |
| 174 | .dependencies = featureSet(&[_]Feature{}), | 157 | .dependencies = featureSet(&[_]Feature{}), |
| 175 | }; | 158 | }; |
| 176 | result[@enumToInt(Feature.@"64bit_mode")] = .{ | | |
| 177 | .index = @enumToInt(Feature.@"64bit_mode"), | | |
| 178 | .name = @tagName(Feature.@"64bit_mode"), | | |
| 179 | .llvm_name = "64bit-mode", | | |
| 180 | .description = "64-bit mode (x86_64)", | | |
| 181 | .dependencies = featureSet(&[_]Feature{}), | | |
| 182 | }; | | |
| 183 | result[@enumToInt(Feature.adx)] = .{ | 159 | result[@enumToInt(Feature.adx)] = .{ |
| 184 | .index = @enumToInt(Feature.adx), | 160 | .index = @enumToInt(Feature.adx), |
| 185 | .name = @tagName(Feature.adx), | 161 | .name = @tagName(Feature.adx), |