GCC Middle and Back End API Reference
dump_location_t Class Reference

#include <dumpfile.h>

Collaboration diagram for dump_location_t:

Public Member Functions

 dump_location_t (const dump_impl_location_t &impl_location=dump_impl_location_t())
 
 dump_location_t (const gimple *stmt, const dump_impl_location_t &impl_location=dump_impl_location_t())
 
 dump_location_t (const rtx_insn *insn, const dump_impl_location_t &impl_location=dump_impl_location_t())
 
 dump_location_t (const dump_user_location_t &user_location, const dump_impl_location_t &impl_location=dump_impl_location_t())
 
const dump_user_location_tget_user_location () const
 
const dump_impl_location_tget_impl_location () const
 
location_t get_location_t () const
 
profile_count get_count () const
 

Static Public Member Functions

static dump_location_t from_location_t (location_t loc, const dump_impl_location_t &impl_location=dump_impl_location_t())
 

Private Attributes

dump_user_location_t m_user_location
 
dump_impl_location_t m_impl_location
 

Detailed Description

A bundle of information for describing the location of a dump message:
(a) the source location and hotness within the user's code, together with
(b) the source location within the compiler/plugin.

The constructors use default parameters so that (b) gets sets up
automatically.

The upshot is that you can pass in e.g. a gimple * to dump_printf_loc,
and the dump call will automatically record where in GCC's source
code the dump was emitted from.   

Constructor & Destructor Documentation

◆ dump_location_t() [1/4]

dump_location_t::dump_location_t ( const dump_impl_location_t & impl_location = dump_impl_location_t ())
inline

Referenced by from_location_t().

◆ dump_location_t() [2/4]

dump_location_t::dump_location_t ( const gimple * stmt,
const dump_impl_location_t & impl_location = dump_impl_location_t () )
inline

◆ dump_location_t() [3/4]

dump_location_t::dump_location_t ( const rtx_insn * insn,
const dump_impl_location_t & impl_location = dump_impl_location_t () )
inline

◆ dump_location_t() [4/4]

dump_location_t::dump_location_t ( const dump_user_location_t & user_location,
const dump_impl_location_t & impl_location = dump_impl_location_t () )
inline

Member Function Documentation

◆ from_location_t()

static dump_location_t dump_location_t::from_location_t ( location_t loc,
const dump_impl_location_t & impl_location = dump_impl_location_t () )
inlinestatic

◆ get_count()

profile_count dump_location_t::get_count ( ) const
inline

◆ get_impl_location()

const dump_impl_location_t & dump_location_t::get_impl_location ( ) const
inline

◆ get_location_t()

location_t dump_location_t::get_location_t ( ) const
inline

◆ get_user_location()

const dump_user_location_t & dump_location_t::get_user_location ( ) const
inline

Field Documentation

◆ m_impl_location

dump_impl_location_t dump_location_t::m_impl_location
private

Referenced by get_impl_location().

◆ m_user_location

dump_user_location_t dump_location_t::m_user_location
private

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