GCC Middle and Back End API Reference
callback-info.h File Reference
This graph shows which files directly or indirectly include this file:

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

Function Documentation

◆ callback_call_arg_summary()

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().

◆ callback_call_num_args_summary()

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().

◆ callback_ifn_assume_call_p()

◆ callback_ifn_assume_call_with_edge_p()

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().

Variable Documentation

◆ callback_info_sum

callback_info_sum_t* callback_info_sum
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().