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

Go to the source code of this file.

Data Structures

struct  streamer_hooks
 

Macros

#define stream_write_tree(OB, EXPR, REF_P)
 
#define stream_write_tree_shallow_non_ref(OB, EXPR, REF_P)
 
#define stream_read_tree(IB, DATA_IN)
 
#define stream_input_location(LOCPTR, BP, DATA_IN)
 
#define stream_output_location(OB, BP, LOC)
 
#define stream_output_location_and_block(OB, BP, LOC)
 

Functions

void streamer_hooks_init (void)
 

Variables

struct streamer_hooks streamer_hooks
 

Macro Definition Documentation

◆ stream_input_location

#define stream_input_location ( LOCPTR,
BP,
DATA_IN )
Value:
streamer_hooks.input_location (LOCPTR, BP, DATA_IN)
Definition streamer-hooks.h:37
void(* input_location)(location_t *, struct bitpack_d *, class data_in *)
Definition streamer-hooks.h:55

Referenced by input_eh_region(), input_struct_function_base(), ipa_odr_read_section(), streamer_read_tree_bitfields(), unpack_ts_block_value_fields(), and unpack_ts_omp_clause_value_fields().

◆ stream_output_location

#define stream_output_location ( OB,
BP,
LOC )
Value:
void(* output_location)(struct output_block *, struct bitpack_d *, location_t)
Definition streamer-hooks.h:59

Referenced by output_eh_region(), output_struct_function_base(), pack_ts_block_value_fields(), pack_ts_omp_clause_value_fields(), and streamer_write_tree_bitfields().

◆ stream_output_location_and_block

#define stream_output_location_and_block ( OB,
BP,
LOC )
Value:
void(* output_location_and_block)(struct output_block *, struct bitpack_d *, location_t)
Definition streamer-hooks.h:64

Referenced by output_cfg(), output_gimple_stmt(), and output_phi().

◆ stream_read_tree

◆ stream_write_tree

◆ stream_write_tree_shallow_non_ref

#define stream_write_tree_shallow_non_ref ( OB,
EXPR,
REF_P )
Value:
streamer_hooks.write_tree (OB, EXPR, REF_P, false)

Function Documentation

◆ streamer_hooks_init()

void streamer_hooks_init ( void )
In streamer-hooks.cc.   
Initialize the current set of streamer hooks.   

Referenced by lto_streamer_hooks_init().

Variable Documentation

◆ streamer_hooks

struct streamer_hooks streamer_hooks
extern
Streamer hooks.   
Streamer hooks.  Support for adding streamer-specific callbacks to
   generic streaming routines.

   Copyright (C) 2011-2024 Free Software Foundation, Inc.
   Contributed by Diego Novillo <dnovillo@google.com>

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/>.   
Streamer hooks.