GCC Middle and Back End API Reference
|
#include <analysis-plan.h>
Public Member Functions | |
analysis_plan (const supergraph &sg, logger *logger) | |
~analysis_plan () | |
int | cmp_function (function *fun_a, function *fun_b) const |
bool | use_summary_p (const cgraph_edge *edge) const |
logger * | get_logger () const |
void | set_logger (logger *logger) |
void | log (const char *fmt,...) const ATTRIBUTE_GCC_DIAG(2 |
void void | start_log_line () const |
void | end_log_line () const |
void | enter_scope (const char *scope_name) |
void | exit_scope (const char *scope_name) |
pretty_printer * | get_logger_pp () const |
FILE * | get_logger_file () const |
Private Member Functions | |
DISABLE_COPY_AND_ASSIGN (analysis_plan) | |
Private Attributes | |
const supergraph & | m_sg |
cgraph_node ** | m_cgraph_node_postorder |
int | m_num_cgraph_nodes |
auto_vec< int > | m_index_by_uid |
logger * | m_logger |
A class to encapsulate decisions about how the analysis should happen. Examples: - the order in which functions should be analyzed, so that function summaries are created before analysis of call sites that might use them - which callgraph edges should use call summaries TODO: the above is a work-in-progress.
ana::analysis_plan::analysis_plan | ( | const supergraph & | sg, |
logger * | logger ) |
ana::analysis_plan::~analysis_plan | ( | ) |
|
private |
|
inlineinherited |
A shortcut for ending a log line from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::end_log_line(), and ana::log_user::m_logger.
A shortcut for recording entry into a scope from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::enter_scope(), ggc_alloc(), and ana::log_user::m_logger.
A shortcut for recording exit from a scope from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::logger::exit_scope(), ggc_alloc(), and ana::log_user::m_logger.
|
inlineinherited |
References ana::log_user::m_logger.
Referenced by ana::exploded_graph::get_logger(), and ana::impl_region_model_context::get_logger().
|
inlineinherited |
References ana::logger::get_file(), ana::log_user::m_logger, and NULL.
|
inlineinherited |
References gcc_assert, ana::logger::get_printer(), and ana::log_user::m_logger.
A shortcut for calling log from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ap, ggc_alloc(), ana::logger::log_va(), and ana::log_user::m_logger.
|
inlineinherited |
A shortcut for starting a log line from a log_user, handling the common case where the underlying logger is NULL via a no-op.
References ana::log_user::m_logger, and ana::logger::start_log_line().
bool ana::analysis_plan::use_summary_p | ( | const cgraph_edge * | edge | ) | const |
|
private |
|
private |
|
privateinherited |
|
private |
|
private |