GCC Middle and Back End API Reference
diagnostic_path Class Referenceabstract

#include <diagnostic-path.h>

Inheritance diagram for diagnostic_path:
Collaboration diagram for diagnostic_path:

Public Member Functions

virtual ~diagnostic_path ()
 
virtual unsigned num_events () const =0
 
virtual const diagnostic_eventget_event (int idx) const =0
 
virtual unsigned num_threads () const =0
 
virtual const diagnostic_threadget_thread (diagnostic_thread_id_t) const =0
 
virtual bool same_function_p (int event_idx_a, int event_idx_b) const =0
 
bool interprocedural_p () const
 
bool multithreaded_p () const
 
const logical_location_managerget_logical_location_manager () const
 

Protected Member Functions

 diagnostic_path (const logical_location_manager &logical_loc_mgr)
 

Private Member Functions

bool get_first_event_in_a_function (unsigned *out_idx) const
 

Private Attributes

const logical_location_managerm_logical_loc_mgr
 

Detailed Description

Abstract base class for getting at a sequence of events.   

Constructor & Destructor Documentation

◆ ~diagnostic_path()

virtual diagnostic_path::~diagnostic_path ( )
inlinevirtual

◆ diagnostic_path()

Member Function Documentation

◆ get_event()

virtual const diagnostic_event & diagnostic_path::get_event ( int idx) const
pure virtual

◆ get_first_event_in_a_function()

bool diagnostic_path::get_first_event_in_a_function ( unsigned * out_idx) const
private
class diagnostic_path.   
Subroutine of diagnostic_path::interprocedural_p.
Look for the first event in this path that is within a function
i.e. has a non-null logical location for which function_p is true.
If found, write its index to *OUT_IDX and return true.
Otherwise return false.   

References get_event(), i, m_logical_loc_mgr, and num_events().

Referenced by interprocedural_p().

◆ get_logical_location_manager()

const logical_location_manager & diagnostic_path::get_logical_location_manager ( ) const
inline

References m_logical_loc_mgr.

◆ get_thread()

virtual const diagnostic_thread & diagnostic_path::get_thread ( diagnostic_thread_id_t ) const
pure virtual

◆ interprocedural_p()

bool diagnostic_path::interprocedural_p ( ) const
Return true if the events in this path involve more than one
function, or false if it is purely intraprocedural.   

References get_event(), get_first_event_in_a_function(), diagnostic_event::get_stack_depth(), i, num_events(), and same_function_p().

◆ multithreaded_p()

bool diagnostic_path::multithreaded_p ( ) const

◆ num_events()

virtual unsigned diagnostic_path::num_events ( ) const
pure virtual

◆ num_threads()

virtual unsigned diagnostic_path::num_threads ( ) const
pure virtual

◆ same_function_p()

virtual bool diagnostic_path::same_function_p ( int event_idx_a,
int event_idx_b ) const
pure virtual

Field Documentation

◆ m_logical_loc_mgr

const logical_location_manager& diagnostic_path::m_logical_loc_mgr
private

The documentation for this class was generated from the following files: