pub fn generate(isas: &Vec<isa::Isa>, out_dir: &str) -> Result<(), error::Error> {
    // Common definitions.
    let shared_settings = gen_settings::generate_common("new_settings.rs", &out_dir)?;

    gen_types::generate("types.rs", &out_dir)?;

    // Per ISA definitions.
    let isas = isa::define(isas, &shared_settings);

    for isa in isas {
        gen_registers::generate(&isa, "registers", &out_dir)?;
        gen_settings::generate(&isa, "new_settings", &out_dir)?;
    }

    Ok(())
}
/// Generates all the Rust source files used in Cranelift from the meta-language.
Generates all the Rust source files used in Cranelift from the meta-language.
Generates all the Rust source files used in Cranelift from the meta - language .
pub fn generate(isas: &Vec<isa::Isa>, out_dir: &str) -> Result<(), error::Error> {
    // Common definitions.
    let shared_settings = gen_settings::generate_common("new_settings.rs", &out_dir)?;
    gen_types::generate("types.rs", &out_dir)?;
    // Per ISA definitions.
    let isas = isa::define(isas, &shared_settings);
    for isa in isas {
        gen_registers::generate(&isa, "registers", &out_dir)?;
        gen_settings::generate(&isa, "new_settings", &out_dir)?;
    }
    Ok(())
}
pub fn generate ( isas : & Vec < isa :: Isa > , out_dir : & str ) -> Result < ( ) , error :: Error > { // Common definitions. let shared_settings = gen_settings :: generate_common ( " " , & out_dir ) ? ; gen_types :: generate ( " " , & out_dir ) ? ; // Per ISA definitions. let isas = isa :: define ( isas , & shared_settings ) ; for isa in isas { gen_registers :: generate ( & isa , " " , & out_dir ) ? ; gen_settings :: generate ( & isa , " " , & out_dir ) ? ; } Ok ( ( ) ) }
Generates all the Rust source files used in Cranelift from the meta-language.
Generates all the Rust source files used in Cranelift from the meta - language .
isas
&Vec<isa::Isa>
out_dir
&str
isas
&Vec<isa::Isa>
out_dir
&str