GCC Middle and Back End API Reference
|
#include <optinfo.h>
Public Member Functions | |
optinfo (const dump_location_t &loc, enum optinfo_kind kind, opt_pass *pass) | |
~optinfo () | |
const dump_location_t & | get_dump_location () const |
const dump_user_location_t & | get_user_location () const |
const dump_impl_location_t & | get_impl_location () const |
enum optinfo_kind | get_kind () const |
opt_pass * | get_pass () const |
unsigned int | num_items () const |
const optinfo_item * | get_item (unsigned int i) const |
location_t | get_location_t () const |
profile_count | get_count () const |
void | add_item (std::unique_ptr< optinfo_item > item) |
void | emit_for_opt_problem () const |
Private Member Functions | |
void | handle_dump_file_kind (dump_flags_t) |
Private Attributes | |
dump_location_t | m_loc |
enum optinfo_kind | m_kind |
opt_pass * | m_pass |
auto_vec< optinfo_item * > | m_items |
Friends | |
class | dump_context |
A bundle of information describing part of an optimization.
|
inline |
optinfo::~optinfo | ( | ) |
optinfo's dtor.
References FOR_EACH_VEC_ELT, i, and m_items.
void optinfo::add_item | ( | std::unique_ptr< optinfo_item > | item | ) |
Add ITEM to this optinfo.
References gcc_assert, and m_items.
Referenced by dump_context::begin_scope(), dump_context::dump_dec(), dump_context::dump_generic_expr(), dump_context::dump_gimple_expr(), dump_context::dump_gimple_stmt(), dump_context::dump_symtab_node(), and dump_pretty_printer::emit_item().
void optinfo::emit_for_opt_problem | ( | ) | const |
Re-emit this optinfo, both to the "non-immediate" destinations, *and* to the "immediate" destinations.
References dump_context::dump_loc_immediate(), dump_context::emit_item(), dump_context::emit_optinfo(), FOR_EACH_VEC_ELT, dump_context::get(), get_kind(), get_user_location(), i, m_items, MSG_PRIORITY_REEMITTED, and optinfo_kind_to_dump_flag().
Referenced by opt_problem::emit_and_clear().
|
inline |
References dump_location_t::get_count(), and m_loc.
Referenced by optrecord_json_writer::optinfo_to_json().
|
inline |
References m_loc.
Referenced by opt_problem::get_dump_location().
|
inline |
References dump_location_t::get_impl_location(), and m_loc.
Referenced by optrecord_json_writer::optinfo_to_json().
|
inline |
Referenced by optrecord_json_writer::optinfo_to_json().
|
inline |
References m_kind.
Referenced by optrecord_json_writer::add_record(), emit_for_opt_problem(), and optrecord_json_writer::optinfo_to_json().
|
inline |
References dump_location_t::get_location_t(), and m_loc.
Referenced by optrecord_json_writer::optinfo_to_json().
|
inline |
References m_pass.
Referenced by optrecord_json_writer::optinfo_to_json().
|
inline |
References dump_location_t::get_user_location(), and m_loc.
Referenced by emit_for_opt_problem().
|
private |
Update the optinfo's kind based on DUMP_KIND.
References gcc_assert, m_kind, MSG_MISSED_OPTIMIZATION, MSG_NOTE, MSG_OPTIMIZED_LOCATIONS, OPTINFO_KIND_FAILURE, OPTINFO_KIND_NOTE, OPTINFO_KIND_SCOPE, and OPTINFO_KIND_SUCCESS.
|
inline |
References m_items.
Referenced by optrecord_json_writer::optinfo_to_json().
|
friend |
|
private |
Referenced by add_item(), emit_for_opt_problem(), get_item(), num_items(), and ~optinfo().
|
private |
Referenced by dump_context::begin_scope(), get_kind(), and handle_dump_file_kind().
|
private |
Referenced by get_count(), get_dump_location(), get_impl_location(), get_location_t(), and get_user_location().
|
private |
Referenced by get_pass().