Re: Basic Block Statistics

2017-05-30 Thread Will Hawkins
I just wanted to send a quick follow up. Thanks to the incredible support on this list from Mr. Law and support in IRC from segher, djgpp and dmalcolm, I was able to put together a serviceable little plugin that does some very basic statistic generation on basic blocks. Here is a link to the

Re: Basic Block Statistics

2017-05-20 Thread Will Hawkins
On Fri, May 19, 2017 at 4:40 PM, Jeff Law wrote: > On 05/17/2017 08:22 PM, Will Hawkins wrote: >> On Wed, May 17, 2017 at 2:59 PM, Will Hawkins wrote: >>> On Wed, May 17, 2017 at 2:41 PM, Will Hawkins wrote: On Wed, May 17, 2017 at

Re: Basic Block Statistics

2017-05-19 Thread Jeff Law
On 05/17/2017 08:22 PM, Will Hawkins wrote: > On Wed, May 17, 2017 at 2:59 PM, Will Hawkins wrote: >> On Wed, May 17, 2017 at 2:41 PM, Will Hawkins wrote: >>> On Wed, May 17, 2017 at 1:04 PM, Will Hawkins wrote: On Wed, May 17,

Re: Basic Block Statistics

2017-05-17 Thread Will Hawkins
On Wed, May 17, 2017 at 2:59 PM, Will Hawkins wrote: > On Wed, May 17, 2017 at 2:41 PM, Will Hawkins wrote: >> On Wed, May 17, 2017 at 1:04 PM, Will Hawkins wrote: >>> On Wed, May 17, 2017 at 1:02 PM, Jeff Law wrote:

Re: Basic Block Statistics

2017-05-17 Thread Will Hawkins
On Wed, May 17, 2017 at 2:41 PM, Will Hawkins wrote: > On Wed, May 17, 2017 at 1:04 PM, Will Hawkins wrote: >> On Wed, May 17, 2017 at 1:02 PM, Jeff Law wrote: >>> On 05/17/2017 10:36 AM, Will Hawkins wrote: As I started looking into

Re: Basic Block Statistics

2017-05-17 Thread Will Hawkins
On Wed, May 17, 2017 at 1:04 PM, Will Hawkins wrote: > On Wed, May 17, 2017 at 1:02 PM, Jeff Law wrote: >> On 05/17/2017 10:36 AM, Will Hawkins wrote: >>> As I started looking into this, it seems like PLUGIN_FINISH is where >>> my plugin will go. Everything

Re: Basic Block Statistics

2017-05-17 Thread Will Hawkins
On Wed, May 17, 2017 at 1:02 PM, Jeff Law wrote: > On 05/17/2017 10:36 AM, Will Hawkins wrote: >> As I started looking into this, it seems like PLUGIN_FINISH is where >> my plugin will go. Everything is great so far. However, when plugins >> at that event are invoked, they get no

Re: Basic Block Statistics

2017-05-17 Thread Jeff Law
On 05/17/2017 10:36 AM, Will Hawkins wrote: > As I started looking into this, it seems like PLUGIN_FINISH is where > my plugin will go. Everything is great so far. However, when plugins > at that event are invoked, they get no data. That means I will have to > look into global structures for

Re: Basic Block Statistics

2017-05-17 Thread Will Hawkins
As I started looking into this, it seems like PLUGIN_FINISH is where my plugin will go. Everything is great so far. However, when plugins at that event are invoked, they get no data. That means I will have to look into global structures for information regarding the compilation. Are there pointers

Re: Basic Block Statistics

2017-05-16 Thread Jeff Law
On 05/16/2017 12:37 PM, Will Hawkins wrote: > On Tue, May 16, 2017 at 2:33 PM, Jeff Law wrote: >> On 05/16/2017 12:24 PM, Will Hawkins wrote: >>> Hello everyone! >>> >>> I apologize if this is not the right venue to ask this question and/or >>> this is a waste of your time. >>>

Re: Basic Block Statistics

2017-05-16 Thread Will Hawkins
On Tue, May 16, 2017 at 2:45 PM, David Malcolm wrote: > On Tue, 2017-05-16 at 14:24 -0400, Will Hawkins wrote: >> Hello everyone! >> >> I apologize if this is not the right venue to ask this question >> and/or >> this is a waste of your time. >> >> I was just wondering if

Re: Basic Block Statistics

2017-05-16 Thread David Malcolm
On Tue, 2017-05-16 at 14:24 -0400, Will Hawkins wrote: > Hello everyone! > > I apologize if this is not the right venue to ask this question > and/or > this is a waste of your time. > > I was just wondering if there are statistics that gcc can emit that > includes either a) the average number of

Re: Basic Block Statistics

2017-05-16 Thread Will Hawkins
On Tue, May 16, 2017 at 2:33 PM, Jeff Law wrote: > On 05/16/2017 12:24 PM, Will Hawkins wrote: >> Hello everyone! >> >> I apologize if this is not the right venue to ask this question and/or >> this is a waste of your time. >> >> I was just wondering if there are statistics that

Re: Basic Block Statistics

2017-05-16 Thread Jeff Law
On 05/16/2017 12:24 PM, Will Hawkins wrote: > Hello everyone! > > I apologize if this is not the right venue to ask this question and/or > this is a waste of your time. > > I was just wondering if there are statistics that gcc can emit that > includes either a) the average number of instructions

Basic Block Statistics

2017-05-16 Thread Will Hawkins
Hello everyone! I apologize if this is not the right venue to ask this question and/or this is a waste of your time. I was just wondering if there are statistics that gcc can emit that includes either a) the average number of instructions per basic block and/or b) the average size (in bytes) per