Searched refs:for_function (Results 1 – 16 of 16) sorted by relevance
81 let mut context = Context::for_function(create_function( in test_simple_func()129 let mut context = Context::for_function(create_multi_return_function(CallConv::SystemV)); in test_multi_return_func()
34 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
35 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
22 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
54 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
72 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
39 let mut comp_ctx = cranelift_codegen::Context::for_function(func.into_owned()); in run()
86 let mut context = Context::for_function(create_function( in test_simple_func()133 let mut context = Context::for_function(create_multi_return_function(CallConv::SystemV)); in test_multi_return_func()
117 let mut context = Context::for_function(create_function( in test_simple_func()164 let mut context = Context::for_function(create_multi_return_function( in test_multi_return_func()
113 let mut context = Context::for_function(create_function( in test_simple_func()160 let mut context = Context::for_function(create_multi_return_function(CallConv::SystemV)); in test_multi_return_func()
110 let mut context = Context::for_function(func.clone());200 context = Context::for_function(func.clone());
254 let mut ctx = Context::for_function(func.clone()); in to_optimized()
66 Self::for_function(Function::new()) in new()73 pub fn for_function(func: Function) -> Self { in for_function() method
118 let mut ctx = Context::for_function(func); in run_func_passes()
1940 let ctx = cranelift_codegen::Context::for_function(func); in test_builder_with_iconst_and_negative_constant()2015 let ctx = cranelift_codegen::Context::for_function(func); in try_call()