|
GCC Middle and Back End API Reference
|

Go to the source code of this file.
Data Structures | |
| class | callback_info |
| class | callback_info_sum_t |
Functions | |
| tree | callback_call_arg_summary (const gimple *stmt, int idx, callback_info *ci) |
| unsigned | callback_call_num_args_summary (const gcall *stmt, callback_info *ci) |
| bool | callback_ifn_assume_call_p (const gimple *stmt) |
| bool | callback_ifn_assume_call_with_edge_p (cgraph_node *caller, gimple *stmt) |
Variables | |
| callback_info_sum_t * | callback_info_sum |
| tree callback_call_arg_summary | ( | const gimple * | stmt, |
| int | idx, | ||
| callback_info * | ci ) |
Return the argument of STMT at IDX if CI is null, otherwise use the mapping in CI and return the remapped argument. Presumes that the remapped index is not ARG_MAPPING_UNKNOWN_IDX.
Return the argument at IDX if CI is null, otherwise use the mapping in CI and return the remapped argument. Presumes that the remapped index is not ARG_MAPPING_UNKNOWN_IDX.
References callback_info::arg_mapping, ARG_MAPPING_UNKNOWN_IDX, callback_call_arg_summary(), gcc_checking_assert, and gimple_call_arg().
Referenced by callback_call_arg_summary(), and ipa_param_adjustments::modify_call().
| unsigned callback_call_num_args_summary | ( | const gcall * | stmt, |
| callback_info * | ci ) |
Return the number of arguments of STMT if CI is null, ci->arg_mapping.length() otherwise.
References callback_info::arg_mapping, callback_call_num_args_summary(), and gimple_call_num_args().
Referenced by callback_call_num_args_summary(), ipa_compute_jump_functions_for_edge(), and ipa_param_adjustments::modify_call().
Returns TRUE iff STMT is an internal call statement to IFN_ASSUME.
References callback_ifn_assume_call_p(), gimple_call_internal_fn(), gimple_call_internal_p(), and is_gimple_call().
Referenced by callback_ifn_assume_call_p(), callback_ifn_assume_call_with_edge_p(), ipa_analyze_call_uses(), ipa_param_body_adjustments::modify_call_stmt(), and cgraph_edge::redirect_call_stmt_to_callee().
| bool callback_ifn_assume_call_with_edge_p | ( | cgraph_node * | caller, |
| gimple * | stmt ) |
Returns TRUE iff STMT is an internal call statement to IFN_ASSUME with a callback edge pointing to the outlined body.
References callback_ifn_assume_call_p(), callback_ifn_assume_call_with_edge_p(), and cgraph_node::get_edge().
Referenced by callback_ifn_assume_call_with_edge_p().
|
extern |
Callback attribute summary Copyright (C) 2026 Free Software Foundation, Inc. Contributed by Josef Melcr <jmelcr@gcc.gnu.org> This file is part of GCC. GCC is free software; you can redistribute it and/or modify under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, 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/>.
Referenced by callback_edge_useful_p(), callback_fetch_attr_by_edge(), callback_redirect_edge(), callback_info_sum_t::check_create_info_sum(), callback_info::create_internal_summary(), callback_info_sum_t::free_info_sum(), input_edge(), ipa_compute_jump_functions_for_edge(), lto_output_edge(), cgraph_edge::make_callback(), ipa_param_adjustments::modify_call(), ipa_param_body_adjustments::modify_call_stmt(), and cgraph_edge::redirect_callee().