GCC Middle and Back End API Reference
|
#include <program-point.h>
Public Member Functions | |
function_point (const supernode *supernode, const superedge *from_edge, unsigned stmt_idx, enum point_kind kind) | |
void | print (pretty_printer *pp, const format &f) const |
void | print_source_line (pretty_printer *pp) const |
void | dump () const |
hashval_t | hash () const |
bool | operator== (const function_point &other) const |
const supernode * | get_supernode () const |
function * | get_function () const |
const gimple * | get_stmt () const |
location_t | get_location () const |
enum point_kind | get_kind () const |
const superedge * | get_from_edge () const |
unsigned | get_stmt_idx () const |
bool | final_stmt_p () const |
void | next_stmt () |
function_point | get_next () const |
Static Public Member Functions | |
static function_point | from_function_entry (const supergraph &sg, const function &fun) |
static function_point | before_supernode (const supernode *supernode, const superedge *from_edge) |
static function_point | before_stmt (const supernode *supernode, unsigned stmt_idx) |
static function_point | after_supernode (const supernode *supernode) |
static function_point | empty () |
static function_point | deleted () |
static int | cmp_within_supernode_1 (const function_point &point_a, const function_point &point_b) |
static int | cmp_within_supernode (const function_point &point_a, const function_point &point_b) |
static int | cmp (const function_point &point_a, const function_point &point_b) |
static int | cmp_ptr (const void *p1, const void *p2) |
Private Attributes | |
const supernode * | m_supernode |
const superedge * | m_from_edge |
unsigned | m_stmt_idx |
enum point_kind | m_kind |
A class for representing a location within the program, without interprocedural information. This represents a fine-grained location within the supergraph (or within one of its nodes).
ana::function_point::function_point | ( | const supernode * | supernode, |
const superedge * | from_edge, | ||
unsigned | stmt_idx, | ||
enum point_kind | kind ) |
Referenced by after_supernode(), before_stmt(), deleted(), and empty().
|
inlinestatic |
References function_point(), NULL, and ana::PK_AFTER_SUPERNODE.
Referenced by ana::program_point::after_supernode().
|
inlinestatic |
References function_point(), NULL, and ana::PK_BEFORE_STMT.
Referenced by ana::program_point::before_stmt().
|
static |
Referenced by ana::program_point::before_supernode().
|
static |
|
static |
|
static |
|
static |
|
inlinestatic |
References function_point(), NULL, and ana::PK_DELETED.
Referenced by ana::program_point::deleted().
void ana::function_point::dump | ( | ) | const |
|
inlinestatic |
References function_point(), NULL, and ana::PK_EMPTY.
Referenced by ana::program_point::empty().
bool ana::function_point::final_stmt_p | ( | ) | const |
|
static |
|
inline |
References m_from_edge.
Referenced by ana::program_point::get_from_edge().
function * ana::function_point::get_function | ( | ) | const |
Referenced by ana::program_point::get_function().
|
inline |
References m_kind.
Referenced by ana::program_point::get_kind().
location_t ana::function_point::get_location | ( | ) | const |
Referenced by ana::program_point::get_location().
function_point ana::function_point::get_next | ( | ) | const |
const gimple * ana::function_point::get_stmt | ( | ) | const |
Referenced by ana::program_point::get_stmt().
|
inline |
References gcc_assert, m_kind, m_stmt_idx, and ana::PK_BEFORE_STMT.
Referenced by ana::program_point::get_stmt_idx().
|
inline |
References m_supernode.
Referenced by ana::program_point::get_supernode().
hashval_t ana::function_point::hash | ( | ) | const |
void ana::function_point::next_stmt | ( | ) |
Referenced by ana::program_point::next_stmt().
|
inline |
References m_from_edge, m_kind, m_stmt_idx, and m_supernode.
void ana::function_point::print | ( | pretty_printer * | pp, |
const format & | f ) const |
void ana::function_point::print_source_line | ( | pretty_printer * | pp | ) | const |
|
private |
Referenced by get_from_edge(), and operator==().
|
private |
Referenced by get_kind(), get_stmt_idx(), and operator==().
|
private |
Referenced by get_stmt_idx(), and operator==().
|
private |
Referenced by get_supernode(), and operator==().