GCC Middle and Back End API Reference
callback_info Struct Reference

#include <callback-info.h>

Collaboration diagram for callback_info:

Public Member Functions

void stream_in (lto_input_block *ib)
void stream_out (lto_simple_output_block *ib) const
unsigned get_id () const
void init (unsigned fn_idx, tree attr)

Data Fields

unsigned fn_idx
auto_vec< int > arg_mapping
bool redirected
const char * plugin_name
plugin_callback_func func
void * user_data
struct callback_infonext

Detailed Description

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/>.   
Summary aggregating all information relevant to callback edges.  Most of the
information can be calculated from the attribute as well, but keeping it
separate allows us to modify the info without touching the underlying
attribute.   
List node for keeping track of plugin-registered callback.   

Member Function Documentation

◆ get_id()

unsigned callback_info::get_id ( ) const
Returns the id of the associated callback attribute.  See the comment of the
fn_idx field.   

References fn_idx.

Referenced by callback_fetch_attr_by_edge().

◆ init()

void callback_info::init ( unsigned fn_idx,
tree attr )

◆ stream_in()

void callback_info::stream_in ( lto_input_block * ib)

◆ stream_out()

Field Documentation

◆ arg_mapping

◆ fn_idx

◆ func

◆ next

◆ plugin_name

const char* callback_info::plugin_name

◆ redirected

◆ user_data

void* callback_info::user_data

The documentation for this struct was generated from the following files: