GCC Middle and Back End API Reference
lto-streamer.c File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "toplev.h"
#include "flags.h"
#include "tree.h"
#include "gimple.h"
#include "bitmap.h"
#include "diagnostic-core.h"
#include "vec.h"
#include "tree-streamer.h"
#include "lto-streamer.h"
#include "streamer-hooks.h"
Include dependency graph for lto-streamer.c:

Functions

const char * lto_tag_name ()
bitmap lto_bitmap_alloc ()
void lto_bitmap_free ()
char * lto_get_section_name ()
void print_lto_report ()
void lto_streamer_init ()
bool gate_lto_out ()
void lto_check_version ()
void lto_streamer_hooks_init ()

Variables

struct lto_stats_d lto_stats
static bitmap_obstack lto_obstack
static bool lto_obstack_initialized

Function Documentation

bool gate_lto_out ( void  )

Gate function for all LTO streaming passes.

Don't bother doing anything if the program has errors.

References hash_table< Descriptor, Allocator >::find_slot(), and gcc_assert.

bitmap lto_bitmap_alloc ( void  )

Allocate a bitmap from heap. Initializes the LTO obstack if necessary.

void lto_bitmap_free ( )

Free bitmap B.

References gcc_assert, LTO_section_function_body, and NULL.

void lto_check_version ( )

Check that the version MAJOR.MINOR is the correct version number.

char* lto_get_section_name ( )

Get a section name for a particular type or name. The NAME field is only used if SECTION_TYPE is LTO_section_function_body. For all others it is ignored. The callee of this function is responsible to free the returned name.

Make the section name unique so that ld -r combining sections doesn't confuse the reader with merged sections.

For options don't add a ID, the option reader cannot deal with them and merging should be ok here.

Referenced by lto_output_type_ref_index(), output_cfg(), and write_symbol().

void lto_streamer_hooks_init ( void  )

Initialize all the streamer hooks used for streaming GIMPLE.

void lto_streamer_init ( void  )

Initialization common to the LTO reader and writer.

Check that all the TS_* handled by the reader and writer routines match exactly the structures defined in treestruct.def. When a new TS_* astructure is added, the streamer should be updated to handle it.

References seen_error().

const char* lto_tag_name ( )

Return a string representing LTO tag TAG.

For tags representing tree nodes, return the name of the associated tree code.

     For tags representing gimple statements, return the name of
     the associated gimple code.   
void print_lto_report ( )

Show various memory usage statistics related to LTO.


Variable Documentation

bitmap_obstack lto_obstack
static

LTO uses bitmaps with different life-times. So use a separate obstack for all LTO bitmaps.

bool lto_obstack_initialized
static
struct lto_stats_d lto_stats

Miscellaneous utilities for GIMPLE streaming. Things that are used in both input and output are here.

Copyright (C) 2009-2013 Free Software Foundation, Inc. Contributed by Doug Kwan dougk.nosp@m.wan@.nosp@m.googl.nosp@m.e.co.nosp@m.m

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/. Statistics gathered during LTO, WPA and LTRANS.

Referenced by lto_start_compression().