Common interface to any structure containing routines, i.e., images and processes. More...
#include <dcfg_api.H>
Public Member Functions | |
virtual UINT32 | get_routine_ids (DCFG_ID_CONTAINER &node_ids) const =0 |
Get the set of routine IDs. | |
virtual DCFG_ROUTINE_CPTR | get_routine_info (DCFG_ID routine_id) const =0 |
Get access to data for a routine. | |
![]() | |
virtual UINT32 | get_loop_ids (DCFG_ID_CONTAINER &node_ids) const =0 |
Get the set of loop IDs. | |
virtual DCFG_LOOP_CPTR | get_loop_info (DCFG_ID loop_id) const =0 |
Get access to data for a loop. | |
![]() | |
virtual UINT32 | get_basic_block_ids (DCFG_ID_CONTAINER &node_ids) const =0 |
Get IDs of all basic blocks in the structure. | |
virtual UINT32 | get_internal_edge_ids (DCFG_ID_CONTAINER &edge_ids) const =0 |
Get list of internal edge IDs. | |
virtual UINT32 | get_inbound_edge_ids (DCFG_ID_CONTAINER &edge_ids) const =0 |
Get list of in-bound edge IDs. | |
virtual UINT32 | get_outbound_edge_ids (DCFG_ID_CONTAINER &edge_ids) const =0 |
Get list of out-bound edge IDs. | |
virtual UINT64 | get_instr_count () const =0 |
Get the total dynamic instruction count. | |
virtual UINT64 | get_instr_count_for_thread (UINT32 thread_id) const =0 |
Get per-thread dynamic instruction count. | |
Common interface to any structure containing routines, i.e., images and processes.
|
pure virtual |
Get the set of routine IDs.
Get IDs of all routines in the structure. A routine ID is the same as the ID of the basic block at its entry node.
node_ids
. [out] | node_ids | Container to which IDs are added. Previous contents of the container are not emptied by this call, so it should be emptied by the programmer before the call if desired. The programmer can use any implementation of DCFG_ID_CONTAINER: DCFG_ID_VECTOR, DCFG_ID_SET, etc. |
|
pure virtual |
Get access to data for a routine.
NULL
if routine_id
is invalid. [in] | routine_id | ID of desired routine. |