Lines Matching refs:fxn
711 clone_function(clone_state *state, const nir_function *fxn, nir_shader *ns) in clone_function() argument
714 nir_function *nfxn = nir_function_create(ns, fxn->name); in clone_function()
717 add_remap(state, nfxn, fxn); in clone_function()
719 nfxn->num_params = fxn->num_params; in clone_function()
720 nfxn->params = ralloc_array(state->ns, nir_parameter, fxn->num_params); in clone_function()
721 memcpy(nfxn->params, fxn->params, sizeof(nir_parameter) * fxn->num_params); in clone_function()
723 nfxn->return_type = fxn->return_type; in clone_function()
751 foreach_list_typed(nir_function, fxn, node, &s->functions) in nir_shader_clone()
752 clone_function(&state, fxn, ns); in nir_shader_clone()
759 nir_foreach_function(fxn, s) { in nir_shader_clone()
760 nir_function *nfxn = remap_global(&state, fxn); in nir_shader_clone()
761 nfxn->impl = clone_function_impl(&state, fxn->impl); in nir_shader_clone()