GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "backend.h"
#include "target.h"
#include "rtl.h"
#include "tree.h"
#include "regs.h"
#include "function-abi.h"
#include "varasm.h"
#include "cgraph.h"
Functions | |
HARD_REG_SET | call_clobbers_in_region (unsigned int abis, const_hard_reg_set mask, machine_mode mode) |
const predefined_function_abi & | fntype_abi (const_tree type) |
function_abi | fndecl_abi (const_tree fndecl) |
function_abi | insn_callee_abi (const rtx_insn *insn) |
function_abi | expr_callee_abi (const_tree exp) |
Variables | |
target_function_abi_info | default_target_function_abi_info |
HARD_REG_SET call_clobbers_in_region | ( | unsigned int | abis, |
const_hard_reg_set | mask, | ||
machine_mode | mode ) |
Return the set of registers that cannot be used to hold a value of mode MODE across the calls in a region described by ABIS and MASK, where: * Bit ID of ABIS is set if the region contains a call with function_abi identifier ID. * MASK contains all the registers that are fully or partially clobbered by calls in the region. This is not quite as accurate as testing each individual call, but it's a close and conservatively-correct approximation. It's much better for some targets than just using MASK.
References CLEAR_HARD_REG_SET, and function_abis.
Referenced by call_clobbered_in_region_p(), and ira_need_caller_save_regs().
function_abi expr_callee_abi | ( | const_tree | exp | ) |
Return the ABI of the function called by CALL_EXPR EXP. Return the default ABI for erroneous calls.
References CALL_EXPR_FN, default_function_abi, error_mark_node, exp(), fndecl_abi(), fntype_abi(), gcc_assert, get_callee_fndecl(), POINTER_TYPE_P, TREE_CODE, and TREE_TYPE.
function_abi fndecl_abi | ( | const_tree | fndecl | ) |
Return the ABI of function decl FNDECL.
References decl_binds_to_current_def_p(), fntype_abi(), gcc_assert, cgraph_node::rtl_info(), TREE_CODE, and TREE_TYPE.
Referenced by expr_callee_abi(), insn_callee_abi(), prepare_function_start(), and read_rtl_function_body_from_file_range().
const predefined_function_abi & fntype_abi | ( | const_tree | type | ) |
Return the predefined ABI used by functions with type TYPE.
References default_function_abi, FUNC_OR_METHOD_TYPE_P, gcc_assert, and targetm.
Referenced by aggregate_value_p(), expr_callee_abi(), and fndecl_abi().
function_abi insn_callee_abi | ( | const rtx_insn * | insn | ) |
Return the ABI of the function called by INSN.
References CALL_P, default_function_abi, fndecl_abi(), gcc_assert, get_call_fndecl(), and targetm.
Referenced by build_def_use(), calculate_gen_cands(), collect_fn_hard_reg_usage(), compute_hash_table_work(), copyprop_hardreg_forward_1(), cselib_process_insn(), dataflow_set_clear_at_call(), df_get_call_refs(), do_remat(), find_all_hard_reg_sets(), find_equiv_reg(), inherit_in_ebb(), invalidate_for_call(), mark_set_resources(), mark_target_live_regs(), old_insns_match_p(), process_bb_lives(), process_bb_node_lives(), record_dead_and_set_regs(), record_opr_changes(), reg_set_p(), reload_combine(), reload_cse_move2add_invalidate(), save_call_clobbered_regs(), set_bb_regs(), setup_save_areas(), simplify_using_initial_values(), and update_equiv_regs_prescan().
target_function_abi_info default_target_function_abi_info |
Information about fuunction binary interfaces. Copyright (C) 2019-2024 Free Software Foundation, Inc. This file is part of GCC GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.