|
|
@ -1,6 +1,7 @@ |
|
|
|
//! A frontend for building Cranelift IR from other languages.
|
|
|
|
use crate::ssa::{Block, SSABuilder, SideEffects}; |
|
|
|
use crate::variable::Variable; |
|
|
|
use alloc::vec::Vec; |
|
|
|
use cranelift_codegen::cursor::{Cursor, FuncCursor}; |
|
|
|
use cranelift_codegen::entity::{EntitySet, SecondaryMap}; |
|
|
|
use cranelift_codegen::ir; |
|
|
@ -13,7 +14,6 @@ use cranelift_codegen::ir::{ |
|
|
|
}; |
|
|
|
use cranelift_codegen::isa::{TargetFrontendConfig, TargetIsa}; |
|
|
|
use cranelift_codegen::packed_option::PackedOption; |
|
|
|
use alloc::vec::Vec; |
|
|
|
|
|
|
|
/// Structure used for translating a series of functions into Cranelift IR.
|
|
|
|
///
|
|
|
@ -893,13 +893,13 @@ mod tests { |
|
|
|
use super::greatest_divisible_power_of_two; |
|
|
|
use crate::frontend::{FunctionBuilder, FunctionBuilderContext}; |
|
|
|
use crate::Variable; |
|
|
|
use alloc::string::ToString; |
|
|
|
use cranelift_codegen::entity::EntityRef; |
|
|
|
use cranelift_codegen::ir::types::*; |
|
|
|
use cranelift_codegen::ir::{AbiParam, ExternalName, Function, InstBuilder, Signature}; |
|
|
|
use cranelift_codegen::isa::CallConv; |
|
|
|
use cranelift_codegen::settings; |
|
|
|
use cranelift_codegen::verifier::verify_function; |
|
|
|
use alloc::string::ToString; |
|
|
|
|
|
|
|
fn sample_function(lazy_seal: bool) { |
|
|
|
let mut sig = Signature::new(CallConv::SystemV); |
|
|
|