Lines Matching refs:old_decl
5326 tree old_decl = (is_gimple_call (old_stmt) in fold_marked_statements() local
5328 if (old_decl && fndecl_built_in_p (old_decl)) in fold_marked_statements()
5342 old_decl, NULL); in fold_marked_statements()
5353 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
5386 cgraph_update_edges_for_call_stmt (old_stmt, old_decl, in fold_marked_statements()
6191 tree_function_versioning (tree old_decl, tree new_decl, in tree_function_versioning() argument
6207 gcc_assert (TREE_CODE (old_decl) == FUNCTION_DECL in tree_function_versioning()
6209 DECL_POSSIBLY_INLINED (old_decl) = 1; in tree_function_versioning()
6211 old_version_node = cgraph_node::get (old_decl); in tree_function_versioning()
6217 if (DECL_HAS_DEBUG_ARGS_P (old_decl)) in tree_function_versioning()
6222 old_debug_args = decl_debug_args_lookup (old_decl); in tree_function_versioning()
6234 (*debug_hooks->outlining_inline_function) (old_decl); in tree_function_versioning()
6237 DECL_ABSTRACT_ORIGIN (new_decl) = DECL_ORIGIN (old_decl); in tree_function_versioning()
6238 if (DECL_ORIGIN (old_decl) == old_decl) in tree_function_versioning()
6240 DECL_FUNCTION_PERSONALITY (new_decl) = DECL_FUNCTION_PERSONALITY (old_decl); in tree_function_versioning()
6250 id.src_fn = old_decl; in tree_function_versioning()
6254 id.src_cfun = DECL_STRUCT_FUNCTION (old_decl); in tree_function_versioning()
6265 old_entry_block = ENTRY_BLOCK_PTR_FOR_FN (DECL_STRUCT_FUNCTION (old_decl)); in tree_function_versioning()
6266 DECL_RESULT (new_decl) = DECL_RESULT (old_decl); in tree_function_versioning()
6267 DECL_ARGUMENTS (new_decl) = DECL_ARGUMENTS (old_decl); in tree_function_versioning()
6268 initialize_cfun (new_decl, old_decl, in tree_function_versioning()
6275 p = DECL_STRUCT_FUNCTION (old_decl)->static_chain_decl; in tree_function_versioning()
6300 for (parm = DECL_ARGUMENTS (old_decl); p; in tree_function_versioning()
6344 new_decl, old_decl, in tree_function_versioning()
6349 else if (DECL_ARGUMENTS (old_decl) != NULL_TREE) in tree_function_versioning()
6351 = copy_arguments_nochange (DECL_ARGUMENTS (old_decl), &id); in tree_function_versioning()
6358 if (!vec_safe_is_empty (DECL_STRUCT_FUNCTION (old_decl)->local_decls)) in tree_function_versioning()
6360 add_local_variables (DECL_STRUCT_FUNCTION (old_decl), cfun, &id); in tree_function_versioning()
6362 if (DECL_RESULT (old_decl) == NULL_TREE) in tree_function_versioning()
6365 && !VOID_TYPE_P (TREE_TYPE (DECL_RESULT (old_decl)))) in tree_function_versioning()
6367 tree resdecl_repl = copy_result_decl_to_var (DECL_RESULT (old_decl), in tree_function_versioning()
6370 insert_decl_map (&id, DECL_RESULT (old_decl), resdecl_repl); in tree_function_versioning()
6373 = build_decl (DECL_SOURCE_LOCATION (DECL_RESULT (old_decl)), in tree_function_versioning()
6383 DECL_RESULT (new_decl) = remap_decl (DECL_RESULT (old_decl), &id); in tree_function_versioning()
6386 && DECL_BY_REFERENCE (DECL_RESULT (old_decl)) in tree_function_versioning()
6387 && (old_name = ssa_default_def (id.src_cfun, DECL_RESULT (old_decl)))) in tree_function_versioning()
6397 if (loops_for_fn (DECL_STRUCT_FUNCTION (old_decl)) != NULL) in tree_function_versioning()