GCC Middle and Back End API Reference
|
#include <dumpfile.h>
Public Member Functions | |
dump_user_location_t () | |
dump_user_location_t (const gimple *stmt) | |
dump_user_location_t (const rtx_insn *insn) | |
profile_count | get_count () const |
location_t | get_location_t () const |
Static Public Member Functions | |
static dump_user_location_t | from_location_t (location_t loc) |
static dump_user_location_t | from_function_decl (tree fndecl) |
Private Member Functions | |
dump_user_location_t (profile_count count, location_t loc) | |
Private Attributes | |
profile_count | m_count |
location_t | m_loc |
A class for describing where in the user's source that a dump message relates to, with various constructors for convenience. In particular, this lets us associate dump messages with hotness information (e.g. from PGO), allowing them to be prioritized by code hotness.
|
inline |
Referenced by from_function_decl(), and from_location_t().
dump_user_location_t::dump_user_location_t | ( | const gimple * | stmt | ) |
Construct a dump_user_location_t from STMT (using its location and hotness).
References gimple::bb, basic_block_def::count, gimple_location(), m_count, and m_loc.
dump_user_location_t::dump_user_location_t | ( | const rtx_insn * | insn | ) |
Construct a dump_user_location_t from an RTL instruction (using its location and hotness).
References BLOCK_FOR_INSN(), basic_block_def::count, INSN_LOCATION(), m_count, and m_loc.
|
inlineprivate |
|
static |
Construct from a function declaration. This one requires spelling out to avoid accidentally constructing from other kinds of tree.
References DECL_SOURCE_LOCATION, dump_user_location_t(), and gcc_assert.
Referenced by check_counter(), find_loop_location(), get_coverage_counts(), get_loop_location(), init_node_map(), ipa_icf::sem_function::merge(), ipa_icf::sem_variable::merge(), and ipa_icf::sem_item_optimizer::merge_classes().
|
inlinestatic |
References dump_user_location_t().
Referenced by compute_branch_probabilities(), execute_oacc_device_lower(), dump_location_t::from_location_t(), get_coverage_counts(), inform_oacc_loop(), maybe_build_inner_data_region(), oacc_privatization_begin_diagnose_var(), omp_oacc_kernels_decompose_1(), and scan_sharing_clauses().
|
inline |
References m_count.
Referenced by dump_location_t::get_count().
|
inline |
|
private |
Referenced by dump_user_location_t(), dump_user_location_t(), and get_count().
|
private |
Referenced by dump_user_location_t(), dump_user_location_t(), and get_location_t().