Generate the ISLE definitions; this provides ISLE glue to access the assembler instructions in [cranelift_assembler_x64_meta].
(
insts: &[cranelift_assembler_x64_meta::dsl::Inst],
isle_dir: &std::path::Path,
)
| 103 | /// Generate the ISLE definitions; this provides ISLE glue to access the |
| 104 | /// assembler instructions in [cranelift_assembler_x64_meta]. |
| 105 | fn generate_isle_for_assembler( |
| 106 | insts: &[cranelift_assembler_x64_meta::dsl::Inst], |
| 107 | isle_dir: &std::path::Path, |
| 108 | ) -> Result<(), error::Error> { |
| 109 | let mut fmt = Formatter::new(Language::Isle); |
| 110 | gen_asm::generate_isle(&mut fmt, insts); |
| 111 | fmt.write("assembler.isle", isle_dir) |
| 112 | } |
| 113 | |
| 114 | /// Generate a macro containing builder functions for the assembler's ISLE |
| 115 | /// constructors; this provides Rust implementations backing up the ISLE |
no test coverage detected