struct propeller [src]
Alias for std.Target.propeller
This file is auto-generated by tools/update_cpu_features.zig.
Members
- all_features (Constant)
- cpu (struct)
- Feature (enum)
- featureSet (Constant)
- featureSetHas (Constant)
- featureSetHasAll (Constant)
- featureSetHasAny (Constant)
Source
//! This file is auto-generated by tools/update_cpu_features.zig.
const std = @import("../std.zig");
const CpuFeature = std.Target.Cpu.Feature;
const CpuModel = std.Target.Cpu.Model;
pub const Feature = enum {
p2,
};
pub const featureSet = CpuFeature.FeatureSetFns(Feature).featureSet;
pub const featureSetHas = CpuFeature.FeatureSetFns(Feature).featureSetHas;
pub const featureSetHasAny = CpuFeature.FeatureSetFns(Feature).featureSetHasAny;
pub const featureSetHasAll = CpuFeature.FeatureSetFns(Feature).featureSetHasAll;
pub const all_features = blk: {
const len = @typeInfo(Feature).@"enum".fields.len;
std.debug.assert(len <= CpuFeature.Set.needed_bit_count);
var result: [len]CpuFeature = undefined;
result[@intFromEnum(Feature.p2)] = .{
.llvm_name = null,
.description = "Enable Propeller 2",
.dependencies = featureSet(&[_]Feature{}),
};
const ti = @typeInfo(Feature);
for (&result, 0..) |*elem, i| {
elem.index = i;
elem.name = ti.@"enum".fields[i].name;
}
break :blk result;
};
pub const cpu = struct {
pub const p1: CpuModel = .{
.name = "p1",
.llvm_name = null,
.features = featureSet(&[_]Feature{}),
};
pub const p2: CpuModel = .{
.name = "p2",
.llvm_name = null,
.features = featureSet(&[_]Feature{
.p2,
}),
};
};