GCC Middle and Back End API Reference
optinfo.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "backend.h"
#include "tree.h"
#include "gimple.h"
#include "optinfo.h"
#include "optinfo-emit-json.h"
#include "dump-context.h"
#include "pretty-print.h"
#include "gimple-pretty-print.h"
#include "cgraph.h"
#include "selftest.h"
Include dependency graph for optinfo.cc:

Macros

#define INCLUDE_MEMORY
 

Functions

const char * optinfo_kind_to_string (enum optinfo_kind kind)
 
static dump_flags_t optinfo_kind_to_dump_flag (enum optinfo_kind kind)
 
bool optinfo_wants_inlining_info_p ()
 

Macro Definition Documentation

◆ INCLUDE_MEMORY

#define INCLUDE_MEMORY
Optimization information.
   Copyright (C) 2018-2024 Free Software Foundation, Inc.
   Contributed by David Malcolm <dmalcolm@redhat.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/>.   

Function Documentation

◆ optinfo_kind_to_dump_flag()

static dump_flags_t optinfo_kind_to_dump_flag ( enum optinfo_kind kind)
static

◆ optinfo_kind_to_string()

const char * optinfo_kind_to_string ( enum optinfo_kind kind)

◆ optinfo_wants_inlining_info_p()

bool optinfo_wants_inlining_info_p ( )
Return true if any of the active optinfo destinations make use
of inlining information.
(if true, then the information is preserved).   

References dump_context::get(), and dump_context::optimization_records_enabled_p().

Referenced by remove_unused_scope_block_p().