cranelift_codegen_meta/isa/
pulley.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use crate::cdsl::{isa::TargetIsa, settings::SettingGroupBuilder};

pub(crate) fn define() -> TargetIsa {
    let mut settings = SettingGroupBuilder::new("pulley");
    settings.add_enum(
        "pointer_width",
        "The width of pointers for this Pulley target",
        "Supported values:\n\
         * 'pointer32'\n\
         * 'pointer64'\n",
        vec!["pointer32", "pointer64"],
    );
    settings.add_bool(
        "big_endian",
        "Whether this is a big-endian target",
        "Whether this is a big-endian target",
        false,
    );
    TargetIsa::new("pulley", settings.build())
}