Generates all the Rust source files used in Cranelift from the meta-language.
(isas: &[isa::Isa], out_dir: &std::path::Path)
| 30 | |
| 31 | /// Generates all the Rust source files used in Cranelift from the meta-language. |
| 32 | pub fn generate_rust(isas: &[isa::Isa], out_dir: &std::path::Path) -> Result<(), error::Error> { |
| 33 | let shared_defs = shared::define(); |
| 34 | generate_rust_for_shared_defs(&shared_defs, isas, out_dir) |
| 35 | } |
| 36 | |
| 37 | fn generate_rust_for_shared_defs( |
| 38 | shared_defs: &Definitions, |
no test coverage detected