mirror of
https://github.com/ziglang/zig.git
synced 2024-11-15 08:33:06 +00:00
these are not real cpu features
This commit is contained in:
parent
327ad0ae89
commit
6793af8d8b
@ -2,12 +2,9 @@ const std = @import("../std.zig");
|
||||
const Cpu = std.Target.Cpu;
|
||||
|
||||
pub const Feature = enum {
|
||||
@"16bit_mode",
|
||||
@"32bit_mode",
|
||||
@"3dnow",
|
||||
@"3dnowa",
|
||||
@"64bit",
|
||||
@"64bit_mode",
|
||||
adx,
|
||||
aes,
|
||||
avx,
|
||||
@ -134,20 +131,6 @@ pub const all_features = blk: {
|
||||
const len = @typeInfo(Feature).Enum.fields.len;
|
||||
std.debug.assert(len <= Cpu.Feature.Set.bit_count);
|
||||
var result: [len]Cpu.Feature = undefined;
|
||||
result[@enumToInt(Feature.@"16bit_mode")] = .{
|
||||
.index = @enumToInt(Feature.@"16bit_mode"),
|
||||
.name = @tagName(Feature.@"16bit_mode"),
|
||||
.llvm_name = "16bit-mode",
|
||||
.description = "16-bit mode (i8086)",
|
||||
.dependencies = featureSet(&[_]Feature{}),
|
||||
};
|
||||
result[@enumToInt(Feature.@"32bit_mode")] = .{
|
||||
.index = @enumToInt(Feature.@"32bit_mode"),
|
||||
.name = @tagName(Feature.@"32bit_mode"),
|
||||
.llvm_name = "32bit-mode",
|
||||
.description = "32-bit mode (80386)",
|
||||
.dependencies = featureSet(&[_]Feature{}),
|
||||
};
|
||||
result[@enumToInt(Feature.@"3dnow")] = .{
|
||||
.index = @enumToInt(Feature.@"3dnow"),
|
||||
.name = @tagName(Feature.@"3dnow"),
|
||||
@ -173,13 +156,6 @@ pub const all_features = blk: {
|
||||
.description = "Support 64-bit instructions",
|
||||
.dependencies = featureSet(&[_]Feature{}),
|
||||
};
|
||||
result[@enumToInt(Feature.@"64bit_mode")] = .{
|
||||
.index = @enumToInt(Feature.@"64bit_mode"),
|
||||
.name = @tagName(Feature.@"64bit_mode"),
|
||||
.llvm_name = "64bit-mode",
|
||||
.description = "64-bit mode (x86_64)",
|
||||
.dependencies = featureSet(&[_]Feature{}),
|
||||
};
|
||||
result[@enumToInt(Feature.adx)] = .{
|
||||
.index = @enumToInt(Feature.adx),
|
||||
.name = @tagName(Feature.adx),
|
||||
|
Loading…
Reference in New Issue
Block a user