Re: Unable to access fields of a record type in some cases

2016-09-19 Thread Swati Rathi
On 2016-09-19 21:04, David Malcolm wrote: On Mon, 2016-09-19 at 10:09 +0200, Richard Biener wrote: On Mon, Sep 19, 2016 at 3:52 AM, Swati Rathi < swatira...@cse.iitb.ac.in> wrote: > Hello, > > We want to fetch fields of a record type from the formal arguments > of a &

Unable to access fields of a record type in some cases

2016-09-18 Thread Swati Rathi
gt; public unsigned DI size bitsizetype> constant 64> unit size 0x2b8faa6d2000 sizetype> constant 8> align 64 symtab 0 alias set -1 canonical type 0x2b8faa800e70 pointer_to_this > ------- Thank you. Regards, Swati

Re: Compilation of object creation in C++

2015-08-21 Thread Swati Rathi
On 2015-08-21 16:16, Richard Biener wrote: On Fri, Aug 21, 2015 at 12:44 PM, Uday P. Khedker wrote: On 08/19/2015 04:44 PM, Andrew Pinski wrote: On Wed, Aug 19, 2015 at 7:16 PM, Uday P. Khedker wrote: Why is this different? Why is __comp_ctor not invoked in each case? This looks like

Re: How to extract types of variables and its uid?

2015-04-11 Thread Swati Rathi
que feature to distinguish between two tree types. Thanks a lot. :-) Regards, Swati

Re: How to extract types of variables and its uid?

2015-04-09 Thread Swati Rathi
, Andrew Pinski wrote: On Thu, Apr 9, 2015 at 10:40 PM, Swati Rathi wrote: Even I am getting same uid's on small programs. I tried declaring variables across files also. But I am unable to replicate the problem on small programs. I am testing on SPEC CPU2006 benchmark suite, program - 453.p

Re: How to extract types of variables and its uid?

2015-04-09 Thread Swati Rathi
t IStreamD.5363 * D.10579; -- On Thursday 09 April 2015 04:13 PM, Richard Biener wrote: On Thu, Apr 9, 2015 at 12:41 PM, Swati Rathi wrote: The variables are declared as you have mentioned. IStream *var1; IStream *var2; Also, var1 and var2 are declared in different

Re: How to extract types of variables and its uid?

2015-04-09 Thread Swati Rathi
The variables are declared as you have mentioned. IStream *var1; IStream *var2; Also, var1 and var2 are declared in different functions. On Thursday 09 April 2015 03:30 PM, Richard Biener wrote: On Thu, Apr 9, 2015 at 11:57 AM, Swati Rathi wrote: We want to store all the types associated

How to extract types of variables and its uid?

2015-04-09 Thread Swati Rathi
IStream TYPE_UID = 7421, tree_type : struct IStream Using TYPE_UID (TYPE_MAIN_VARIANT (type1)) and TYPE_UID (TYPE_MAIN_VARIANT (type2)) also gives the same result. We wish to avoid duplicate entries of the same type. How to extract types and uid? Regards, Swati

Re: How to access the function body of a constructor?

2014-11-08 Thread Swati Rathi
er, in the LTO mode this information is not available. How do I make this information available in the LTO framework? Is there any other way to get the cloned copy of the constructor "__base_ctor" from "__comp_ctor"? Regards, Swati On Monday 15 September 2014 03:41 PM, Sw

Re: How to identify the type of the object being created using the new operator?

2014-10-06 Thread Swati Rathi
On Monday 06 October 2014 02:28 PM, Marc Glisse wrote: On Mon, 6 Oct 2014, Swati Rathi wrote: Statement : A *a = new B; gets translated in GIMPLE as 1. void * D.2805; 2. struct A * a; 3. D.2805 = operator new (20); 4. a = D.2805; A is the base class and B is the derived class. In statement 3

How to identify the type of the object being created using the new operator?

2014-10-06 Thread Swati Rathi
assignment statement 3, how can we identify the type (in this case B) of the object being created? Regards, Swati

How to access the function body of a constructor?

2014-09-15 Thread Swati Rathi
What does these fields (clones, clone_of etc.) store? Will the macro DECL_CLONED_FUNCTION give me __base_ctor from __comp_ctor ? I tried using it but it gives an error, "undefined symbol: _Z22decl_cloned_function_pPK9tree_nodeb". Kindly tell me way to access the constructor body. Regards, Swati

Re: How to access the virtual table?

2014-09-12 Thread Swati Rathi
inform me the way to access the virtual table. Also how to fetch the functions from that virtual table? Regards, Swati

How to access the virtual table?

2014-09-11 Thread Swati Rathi
ix, value) Using the above iterator, entries of the virtual table should be accessible. However, I am not able to do so. Kindly inform me the way to access the virtual table. Also how to fetch the functions from that virtual table? Regards, Swati

Re: How to identify object of a class defined in library file

2014-09-08 Thread Swati Rathi
r<< (D.2781_2, endl); I want to ignore variables D.2782 and D.2781 as they are object of class defined in standard library file. On Monday 08 September 2014 05:12 PM, Jonathan Wakely wrote: On 8 September 2014 11:53, Swati Rathi wrote: How to identify object of a class which is define

How to identify object of a class defined in library file

2014-09-08 Thread Swati Rathi
How to identify object of a class which is defined in the library file? For e.g. struct basic_ostream & D.2782; Variable D.2782 is object of class which is part of the library file. How can we identify such a variable? Regards, Swati

Re: How to access points-to information for function pointers

2014-05-05 Thread Swati Rathi
On Monday 05 May 2014 04:37 PM, Richard Biener wrote: On Mon, May 5, 2014 at 11:38 AM, Swati Rathi wrote: In some cases, GCC's pta pass does not dump the points-to information for function pointers which are formal parameters. Why is it so? Depends on the case. Also it does not stor

Re: How to access points-to information for function pointers

2014-05-05 Thread Swati Rathi
14 02:47 PM, Richard Biener wrote: On Tue, Apr 29, 2014 at 8:26 AM, Swati Rathi wrote: On Monday 28 April 2014 02:46 PM, Richard Biener wrote: On Sat, Apr 26, 2014 at 4:07 PM, Richard Biener wrote: On April 26, 2014 12:31:34 PM CEST, Swati Rathi wrote: On Friday 25 April 2014 11:11 PM, Ri

Re: How to access points-to information for function pointers

2014-04-28 Thread Swati Rathi
On Monday 28 April 2014 02:46 PM, Richard Biener wrote: On Sat, Apr 26, 2014 at 4:07 PM, Richard Biener wrote: On April 26, 2014 12:31:34 PM CEST, Swati Rathi wrote: On Friday 25 April 2014 11:11 PM, Richard Biener wrote: On April 25, 2014 5:54:09 PM CEST, Swati Rathi wrote: Hello, I

Re: How to access points-to information for function pointers

2014-04-26 Thread Swati Rathi
On Friday 25 April 2014 11:11 PM, Richard Biener wrote: On April 25, 2014 5:54:09 PM CEST, Swati Rathi wrote: Hello, I am trying to print points-to information for SSA variables as below. for (i = 1; i < num_ssa_names; i++) { tree ptr = ssa_name (i); str

How to access points-to information for function pointers

2014-04-25 Thread Swati Rathi
pointees for function pointer not getting dumped? How can I access this information? Regards, Swati

Re: How to access structure information from "pass_vectorize"

2014-01-20 Thread Swati Rathi
On Monday 20 January 2014 02:20 PM, Richard Biener wrote: On Sun, Jan 19, 2014 at 6:01 PM, Swati Rathi wrote: We are writing a GIMPLE pass and would like to use some information computed in pass_vectorize. However, we are not able to use the data structures which gets populated in

How to access structure information from "pass_vectorize"

2014-01-19 Thread Swati Rathi
We are writing a GIMPLE pass and would like to use some information computed in pass_vectorize. However, we are not able to use the data structures which gets populated in pass_vectorize because the information is not made available across passes. In particular, we wish to access the structures

Re: LTO : how to specify number of chunks with option -flto-partition=balanced

2013-05-31 Thread Swati
ormed We understand cases 2 and 3. However in case 1 why no partitions are formed? Is it that when lto-min-partition is not specified, partitions will not be formed? Regards, Swati On Friday 24 May 2013 02:06 PM, Richard Biener wrote: On Fri, May 24, 2013 at 9:14 AM, Swati wrote: Hell

LTO : how to specify number of chunks with option -flto-partition=balanced

2013-05-24 Thread Swati
Hello, -flto-partition=balanced is used to specify partitioning into equally sized chunks. Is there an option to specify size or number of chunks? Regards, Swati

help on gcc source code odification

2010-01-29 Thread swati raina
Hi, I am working with gcc 4.4.2. I installed the same on my machine using the following command lines. 1)To extract in a new directory,i used, mkdir gcc1 cd gcc1 tar -xvf gcc-4.4.2.tar.gz set srcdir = "/home/swati/gcc1/gcc-4.4.2" set objdir = "/home/swati/gcc1/gcc-bin"

help on debugging gcc using gdb

2010-01-10 Thread swati raina
Hi, I want to detect simple 'if-else' statements for which i need to understand the source code of gcc. I am using version 4.4.0. So, I am tried to debug gcc using the following commands 1)[sw...@localhost ~]$ gdb --args /usr/bin/gcc Missing separate debuginfos, use: debuginfo-install gcc-4.4.0

CFG,DFG

2009-10-21 Thread swati raina
Hi.. The compiler stores the information about dependencies among various instruction in control flow graphs and data flow graph. What kind of graphs are these? and can this dependency information be extracted from gcc? Thanks Swati Raina Get your new Email address! Grab the Email