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 ) |
Referenced by DISABLE_COPY_AND_ASSIGN().
ana::analysis_plan::~analysis_plan | ( | ) |
|
private |
References analysis_plan().
|
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 m_logger.
Referenced by set_logger().
|
inlineinherited |
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 m_logger.
Referenced by set_logger().
|
inlineinherited |
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 m_logger.
Referenced by set_logger().
|
inlineinherited |
References gcc_assert, get_logger_pp(), and m_logger.
Referenced by get_logger_pp().
|
inlineinherited |
|
inherited |
References ATTRIBUTE_GCC_DIAG, end_log_line(), enter_scope(), exit_scope(), and start_log_line().
|
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 m_logger.
Referenced by set_logger().
bool ana::analysis_plan::use_summary_p | ( | const cgraph_edge * | edge | ) | const |
|
private |
|
private |
|
privateinherited |
Referenced by end_log_line(), enter_scope(), exit_scope(), get_logger(), get_logger_file(), get_logger_pp(), log(), and start_log_line().
|
private |
|
private |