| ... | ... | @@ -2,12 +2,9 @@ const std = @import("../std.zig"); |
| 2 | 2 | const Cpu = std.Target.Cpu; |
| 3 | 3 | |
| 4 | 4 | pub const Feature = enum { |
| 5 | | @"16bit_mode", |
| 6 | | @"32bit_mode", |
| 7 | 5 | @"3dnow", |
| 8 | 6 | @"3dnowa", |
| 9 | 7 | @"64bit", |
| 10 | | @"64bit_mode", |
| 11 | 8 | adx, |
| 12 | 9 | aes, |
| 13 | 10 | avx, |
| ... | ... | @@ -134,20 +131,6 @@ pub const all_features = blk: { |
| 134 | 131 | const len = @typeInfo(Feature).Enum.fields.len; |
| 135 | 132 | std.debug.assert(len <= Cpu.Feature.Set.bit_count); |
| 136 | 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 | 134 | result[@enumToInt(Feature.@"3dnow")] = .{ |
| 152 | 135 | .index = @enumToInt(Feature.@"3dnow"), |
| 153 | 136 | .name = @tagName(Feature.@"3dnow"), |
| ... | ... | @@ -173,13 +156,6 @@ pub const all_features = blk: { |
| 173 | 156 | .description = "Support 64-bit instructions", |
| 174 | 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 | 159 | result[@enumToInt(Feature.adx)] = .{ |
| 184 | 160 | .index = @enumToInt(Feature.adx), |
| 185 | 161 | .name = @tagName(Feature.adx), |