Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/cranelift/codegen/meta/src/isa/pulley.rs
1693 views
1
use crate::cdsl::{isa::TargetIsa, settings::SettingGroupBuilder};
2
3
pub(crate) fn define() -> TargetIsa {
4
let mut settings = SettingGroupBuilder::new("pulley");
5
settings.add_enum(
6
"pointer_width",
7
"The width of pointers for this Pulley target",
8
"Supported values:\n\
9
* 'pointer32'\n\
10
* 'pointer64'\n",
11
vec!["pointer32", "pointer64"],
12
);
13
settings.add_bool(
14
"big_endian",
15
"Whether this is a big-endian target",
16
"Whether this is a big-endian target",
17
false,
18
);
19
TargetIsa::new("pulley", settings.build())
20
}
21
22