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)    streamer_hooks.write_tree (OB, EXPR, REF_P, REF_P)
 
#define stream_write_tree_shallow_non_ref(OB, EXPR, REF_P)    streamer_hooks.write_tree (OB, EXPR, REF_P, false)
 
#define stream_read_tree(IB, DATA_IN)    streamer_hooks.read_tree (IB, DATA_IN)
 
#define stream_input_location(LOCPTR, BP, DATA_IN)    streamer_hooks.input_location (LOCPTR, BP, DATA_IN)
 
#define stream_output_location(OB, BP, LOC)    streamer_hooks.output_location (OB, BP, LOC)
 
#define stream_output_location_and_block(OB, BP, LOC)    streamer_hooks.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

◆ stream_output_location

◆ stream_output_location_and_block

#define stream_output_location_and_block ( OB,
BP,
LOC )    streamer_hooks.output_location_and_block (OB, BP, LOC)

◆ stream_read_tree

◆ stream_write_tree

◆ stream_write_tree_shallow_non_ref

#define stream_write_tree_shallow_non_ref ( OB,
EXPR,
REF_P )    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.   

References ggc_alloc().

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.