Re: [gimplefe] Ran into a internal compiler error

2011-09-20 Thread Sandeep Soni
On Tue, Sep 20, 2011 at 10:48 PM, Diego Novillo wrote: > On 11-09-19 23:32 , Sandeep Soni wrote: > >> It gives me a internal compiler error saying: >> gimple1: internal compiler error: tree check: expected >> identifier_node, have var_decl in gimple_symtab_entry_hash

[gimplefe] Ran into a internal compiler error

2011-09-19 Thread Sandeep Soni
Hi, I was trying to make a symbol table for all the variable declarations for the gimple front end. Following is a patch: Index: parser.c === --- parser.c(revision 174754) +++ parser.c(working copy) @@ -28,6 +28,7 @@ #include

Re: [gimplefe] Merge from trunk rev 173770

2011-05-07 Thread Sandeep Soni
On Fri, May 6, 2011 at 2:16 AM, Diego Novillo wrote: > This merge brings the gimple-front-end branch up to 4.7.  It needed > some minimal adjustments, but things seem to be working.  Sandeep, > please make sure it does.  You may need to rebase your patch before > committing it. > I got the build

Re: Design Considerations of GIMPLE Front End

2010-05-18 Thread Sandeep Soni
On Tue, May 18, 2010 at 8:33 PM, Diego Novillo wrote: > Yup.  This shade of blue can be changed later.  Sandi, let's start > with the S-expression syntax for everything.  Richard is correct in > pointing out that even gimple expressions have metadata associated > with them that will need to be re

Re: Design Considerations of GIMPLE Front End

2010-05-17 Thread Sandeep Soni
On Tue, May 18, 2010 at 2:34 AM, Andrew Haley wrote: >>    For example: >>    A textual GIMPLE tuple for the statement a=b+c can be like >>    >  (As demonstrated by the internal >> manual also). >>    Is such a representation easy to parse? > > S-expressions are easier to parse and more compact,

Design Considerations of GIMPLE Front End

2010-05-17 Thread Sandeep Soni
Hi, As part of GSoC 2010, I am developing a front end for GIMPLE. You can find the basic theme of the project at: http://gcc.gnu.org/wiki/GimpleFrontEnd One of the most important components in this GIMPLE Front End is to convert the GIMPLE tuples into text. How such a textual representation shoul

Re: Build Error

2010-05-11 Thread Sandeep Soni
On Tue, May 11, 2010 at 6:30 PM, Diego Novillo wrote: > [ Moved to gcc@gcc.gnu.org ] > Hmm, it did not detect elf_getshdrstrndx and yet it tried to use it > later on. I think that's the bug.  Yes, please file a bug.  I believe > it's going to be easy to fix, though.  There should be an unguarded >

Re: GIMPLE Front End (GSOC 2010)

2010-04-29 Thread Sandeep Soni
On Thu, Apr 29, 2010 at 11:01 PM, Manuel López-Ibáñez wrote: > On 29 April 2010 19:25, Sandeep Soni wrote: >> I added the following page to the wiki. >> >> http://gcc.gnu.org/wiki/GimpleFrontEnd >> >> Any comments/suggestions or ideas related to the project are

GIMPLE Front End (GSOC 2010)

2010-04-29 Thread Sandeep Soni
-- Forwarded message -- From: Diego Novillo Date: Thu, Apr 29, 2010 at 7:05 PM Subject: Re: [LTO] Open items in the ToDo list To: Sandeep Soni Cc: Andi Hellmund Thanks Sandeep.  Could you please add your proposal to the GCC wiki? Creating a new wiki page is fairly easy.  You

Tree-SSA question

2010-01-26 Thread sandeep soni
Hi, I am working to knw the details of the tree-ssa pass.I had this small piece of code as my test case: void func() { int x=10; int a=5; if(a==x) { x=x+1; } else { x=x-1; } a=x; } and when i did a > gcc -fdump-ftree-ssa -O3 foo.c I got the following output : func () { int a; int x; :

How to make make changes in gcc code

2010-01-22 Thread sandeep soni
Hi, I posted this question on the mailing list gcc-h...@gcc.gnu.org but did not get any reply about it. I have bootstrapped gcc 4.4.2 on my machine and now i have to make changes in gcc code. However, I dont know how to make those changes effective.Do I need to change the source files accor

Re: entry point of gimplification

2010-01-05 Thread sandeep soni
On Tue, Jan 5, 2010 at 8:44 PM, Diego Novillo wrote: > On 1/4/10 14:57 , sandeep soni wrote: > >> I want to know what is the entry point to the gimplification pass? and >> given a function body which are the functions in the gcc source that >> convert the body into equi

entry point of gimplification

2010-01-04 Thread sandeep soni
Hi, I have been trying to understand the gcc source code and am interested in customizing gcc to support speculative parallelization of conditional branching and loop instructions instructions.I am considering gimple as input. I want to know what is the entry point to the gimplification pass? and

Re: loop optimization in gcc

2009-10-14 Thread sandeep soni
On Wed, Oct 14, 2009 at 9:02 PM, Tobias Grosser wrote: > On Wed, 2009-10-14 at 20:12 +0530, sandeep soni wrote: >> > Hi, >> > >> > you also might want to take a look at the Graphite project. >> > http://gcc.gnu.org/wiki/Graphite where we do loop optimizat

Re: loop optimization in gcc

2009-10-14 Thread sandeep soni
> Hi, > > you also might want to take a look at the Graphite project. > http://gcc.gnu.org/wiki/Graphite where we do loop optimizations and > automatic parallelization based on the polytop model. If you need any > help feel free to ask. > > Tobias > > Hi, This seems to be quite interesting and ch

Re: loop optimization in gcc

2009-10-12 Thread sandeep soni
On Mon, Oct 12, 2009 at 11:28 PM, Ian Lance Taylor wrote: > sandeep soni writes: > >> On Mon, Oct 12, 2009 at 12:13 PM, Ian Lance Taylor wrote: >> >>> I'm not really sure what you are asking.  gcc supports OpenMP for >>> parallelizing loops.  That is m

Re: loop optimization in gcc

2009-10-12 Thread sandeep soni
On Mon, Oct 12, 2009 at 12:13 PM, Ian Lance Taylor wrote: > I'm not really sure what you are asking.  gcc supports OpenMP for > parallelizing loops.  That is mostly done in the frontends. I have been told that openMP does parallelizing of loops, but these types of optimizations are generally don

loop optimization in gcc

2009-10-11 Thread sandeep soni
Hi All, I have been studying the gcc code lately as part of my project.I have got info from this mailing list about CFG and DFG information.I want to know how gcc uses this information to perform loop optimization? Does it Follow any particular algorithm or in particular what are the different tec