cranelift_codegen_meta/isa/
s390x.rsuse crate::cdsl::isa::TargetIsa;
use crate::cdsl::settings::SettingGroupBuilder;
pub(crate) fn define() -> TargetIsa {
let mut settings = SettingGroupBuilder::new("s390x");
let has_mie2 = settings.add_bool(
"has_mie2",
"Has Miscellaneous-Instruction-Extensions Facility 2 support.",
"",
false,
);
let has_vxrs_ext2 = settings.add_bool(
"has_vxrs_ext2",
"Has Vector-Enhancements Facility 2 support.",
"",
false,
);
settings.add_preset(
"arch13",
"Thirteenth Edition of the z/Architecture.",
preset!(has_mie2 && has_vxrs_ext2),
);
settings.add_preset(
"z15",
"IBM z15 processor.",
preset!(has_mie2 && has_vxrs_ext2),
);
TargetIsa::new("s390x", settings.build())
}