Re: Transactional memory test case reduction failure

2018-08-27 Thread Shubham Narlawar
sfully on the first line – I use timeout because sometimes > the compiler goes into an infinite loop – the 2nd line requires the > compiler to issue an internal error as the first line of output. Grep > returns 0 if the pattern is found > > > > > > > > *From:* sameer

GCC GSOC 2019

2019-02-09 Thread Shubham Narlawar
Hi, I am Shubham Narlawar. Currently, I am a Computer Engineering undergrad student at Pune University, India. I am interested in contributing to GCC for GSOC 2019. We have done a project from GCC GSOC 2018 idea list which is implementing Csmith fuzzer leveraging GCC C Extensions under the

Re: GCC GSOC 2019

2019-03-28 Thread Shubham Narlawar
n, Feb 10 2019, Shubham Narlawar wrote: > > Hi, > > > > I am Shubham Narlawar. Currently, I am a Computer Engineering undergrad > > student at Pune University, India. I am interested in contributing to GCC > > for GSOC 2019. > > > > We have done a project

Re: GCC GSOC 2019

2019-04-04 Thread Shubham Narlawar
On Wed, Apr 3, 2019 at 10:01 PM Martin Jambor wrote: > Hello Shubham, > > On Fri, Mar 29 2019, Shubham Narlawar wrote: > > Hi, here is my proposal for the above idea. Please review and suggest > > necessary changes. > > > > >

Re: GCC GSOC 2019

2019-04-04 Thread Shubham Narlawar
On Thu, Apr 4, 2019 at 2:13 PM Martin Liška wrote: > On 4/3/19 6:31 PM, Martin Jambor wrote: > > Hello Shubham, > > > > On Fri, Mar 29 2019, Shubham Narlawar wrote: > >> Hi, here is my proposal for the above idea. Please review and suggest > >&g

Re: GCC GSOC 2019

2019-04-07 Thread Shubham Narlawar
On Fri, Apr 5, 2019 at 5:37 PM Martin Liška wrote: > On 4/4/19 1:44 PM, Shubham Narlawar wrote: > > On Thu, Apr 4, 2019 at 2:13 PM Martin Liška wrote: > > > >> On 4/3/19 6:31 PM, Martin Jambor wrote: > >>> Hello Shubham, > >>> > >>>

Re: [GSOC-2019] - Csmith fuzzer leveraging GCC C Extensions

2019-05-15 Thread Shubham Narlawar
On Wed, May 15, 2019 at 2:13 PM Martin Liška wrote: > On 5/15/19 9:49 AM, Shubham Narlawar wrote: > > Hello Martin and community, > > Hi Shubham. > > Thank you for starting working on the project. There are some > recommendations > before we fully being: > > 1

Re: [GSOC-2019] - Csmith fuzzer leveraging GCC C Extensions

2019-05-15 Thread Shubham Narlawar
On Wed, May 15, 2019 at 2:23 PM Martin Liška wrote: > On 5/15/19 9:49 AM, Shubham Narlawar wrote: > > void func_1(); > > void func_3(); > > . > > > > void foo1() __attribute__ ((weak, alias("func_1"))); > > void foo3() __attribute__ ((weak,

Re: [GSOC-2019] - Csmith fuzzer leveraging GCC C Extensions

2019-05-16 Thread Shubham Narlawar
Thanks. I will use plain text. On Thu, May 16, 2019 at 2:32 PM Jonathan Wakely wrote: > > On Wed, 15 May 2019 at 10:24, Shubham Narlawar wrote: > > I tried to send you Aligned patch and one csmith program but it bounces > > back. I don't know why it happened. Sorry for sen

Getting function pointer from basic block or gimple statement

2019-11-15 Thread Shubham Narlawar
Hello, >From the gimple statement or basic block, is there any way to get function pointer? From gimple structure, I am able to get basic block but unable to get function pointer neither from basic block nor gimple. Regards, Shubham

Crash in remove_stmt_from_en_lp_fn() due to remving of gimple statement using gsi_remove

2019-11-15 Thread Shubham Narlawar
Hello, I'm writing a Simple LTO pass. I have placed my optimization routine under execute() hook. In my optimization routine, I want to delete an instruction for which I have the gimple_stmt_iterator. If I call gsi_remove(gsi, true), it causes a crash in remove_stmt_from_en_lp_fn() where it is

Gcc Plugin Api

2018-06-15 Thread Shubham Narlawar
Hello all, I have been figuring out to work on some project. So while searching I found GCC Plugin API project quite interesting. So, please can I get some more information and links about gcc Plugin API project. Can anyone help me please.

Vectorization of loop which operate on local arrays

2020-04-14 Thread Shubham Narlawar via Gcc
Hello, I am working on gcc-4.9.4 and encountered different results of loop vectorization on array arr0, arr1 and arr2. Testcase - int main() { int i; for (i=0; i<64; i++) { arr2[i]=(arr1[i]|arr0[i]); } } Using -O2 -ftree-vectorize, Above loop is vectorized if arr

Re: Get struct function* from function declaration

2021-02-16 Thread Shubham Narlawar via Gcc
On Tue, 16 Feb, 2021, 5:55 PM Shuai Wang via Gcc, wrote: > Thank you for your reply! > > I tried to use this in the following code: > > tree func_decl = gimple_call_fndecl(stmt); // stmt is the function call > statement > function* f = DECL_STRUCT_FUNCTION(func_decl); > std::cerr << get_name(f->

Extracting function name from the gimple call statement

2021-10-10 Thread Shubham Narlawar via Gcc
Hello, Is there a direct way to print the name of the function call in gimple call statement? For example - void bar() { a = foo();//gimple* stmt } I want to print "foo" from the above gimple*. I traced debug_gimple_stmt(gimple*) but it seems complex to just print "foo". Thanks and R

Re: Extracting function name from the gimple call statement

2021-10-11 Thread Shubham Narlawar via Gcc
On Mon, Oct 11, 2021 at 2:51 AM David Malcolm wrote: > > On Sun, 2021-10-10 at 23:04 +0530, Shubham Narlawar via Gcc wrote: > > Hello, > > > > Is there a direct way to print the name of the function call in gimple > > call > > statement? > > > >

Updating phi nodes on deleting gimple statement

2021-12-15 Thread Shubham Narlawar via Gcc
Hello, I have a PHI node that defines a variable that is used in 1 statement. I then delete the statement. I think I need to update the PHI node to no longer reference that variable. I looked through some code and I don't see a way to just remove an element from a PHI node and I see in the file o

Re: Updating phi nodes on deleting gimple statement

2021-12-17 Thread Shubham Narlawar via Gcc
On Thu, 16 Dec, 2021, 6:28 pm Richard Biener, wrote: > On December 16, 2021 7:33:37 AM GMT+01:00, Shubham Narlawar via Gcc < > gcc@gcc.gnu.org> wrote: > >Hello, > > > > > >I have a PHI node that defines a variable that is used in 1 statement. I > >th

Accessing const parameter of GIMPLE_CALL

2022-01-16 Thread Shubham Narlawar via Gcc
Hello, My aim is to iterate over gimple call stmt parameters and check whether it is constant or constant expression and mark/store them for some gimple transformation. I have an intrinsic function call of the following - __builtin_xyz(void*, 7, addr + 10); I want to find its parameters which a

Re: Accessing const parameter of GIMPLE_CALL

2022-01-17 Thread Shubham Narlawar via Gcc
On Mon, Jan 17, 2022 at 5:23 AM David Malcolm wrote: > > On Sun, 2022-01-16 at 18:52 +0530, Shubham Narlawar via Gcc wrote: > > Hello, > > Hi; various notes inline below... > > > > > My aim is to iterate over gimple call stmt parameters and check > > whethe

Re: Accessing const parameter of GIMPLE_CALL

2022-01-17 Thread Shubham Narlawar via Gcc
On Mon, Jan 17, 2022 at 1:55 PM Richard Biener wrote: > > On Mon, Jan 17, 2022 at 12:54 AM David Malcolm via Gcc > wrote: > > > > On Sun, 2022-01-16 at 18:52 +0530, Shubham Narlawar via Gcc wrote: > > > Hello, > > > > Hi; various notes inline below...

Re: Accessing const parameter of GIMPLE_CALL

2022-01-18 Thread Shubham Narlawar via Gcc
On Tue, Jan 18, 2022 at 2:19 AM Martin Sebor wrote: > > On 1/17/22 12:18, Shubham Narlawar via Gcc wrote: > > On Mon, Jan 17, 2022 at 1:55 PM Richard Biener > > wrote: > >> > >> On Mon, Jan 17, 2022 at 12:54 AM David Malcolm via Gcc > >> wrote:

Re: Accessing const parameter of GIMPLE_CALL

2022-01-18 Thread Shubham Narlawar via Gcc
On Tue, Jan 18, 2022 at 2:20 PM Richard Biener wrote: > > On Mon, Jan 17, 2022 at 8:19 PM Shubham Narlawar > wrote: > > > > On Mon, Jan 17, 2022 at 1:55 PM Richard Biener > > wrote: > > > > > > On Mon, Jan 17, 2022 at 12:54 AM David Malcolm via Gc

Query regarding generating NOTE instruction at GIMPLE level

2022-02-06 Thread Shubham Narlawar via Gcc
Hello, Is it possible to generate a NOTE instruction at GIMPLE level? My use case scenario is as below - I want to create a note for __builtin_xyz(_x) such that there is a placeholder just before function call and in RTL pass, I want to modify/assign register number at this placeholder location.

Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-18 Thread Shubham Narlawar via Gcc
Hello, I want to know whether it is correct to add left shift instruction to a constant expression statement like "_3 + 4"? I am trying to add a left shift instruction in between below GIMPLE instructions - : instrn_buffer.0_1 = instrn_buffer; _2 = tree.cnt; _3 = (int) _2; _4 = _3 + 4

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-20 Thread Shubham Narlawar via Gcc
On Sat, Feb 19, 2022 at 1:15 AM Andrew Pinski wrote: > > On Fri, Feb 18, 2022 at 11:04 AM Shubham Narlawar via Gcc > wrote: > > > > Hello, > > > > I want to know whether it is correct to add left shift instruction to > > a constant expression statement like

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-21 Thread Shubham Narlawar via Gcc
On Mon, Feb 21, 2022 at 1:02 PM Richard Biener wrote: > > On Sun, Feb 20, 2022 at 11:44 PM Andrew Pinski via Gcc > wrote: > > > > On Sun, Feb 20, 2022 at 10:45 AM Shubham Narlawar > > wrote: > > > > > > On Sat, Feb 19, 2022 at 1:15 AM Andrew Pinski

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-02-22 Thread Shubham Narlawar via Gcc
On Tue, Feb 22, 2022 at 3:55 PM Richard Biener wrote: > > On Tue, Feb 22, 2022 at 8:38 AM Shubham Narlawar > wrote: > > > > On Mon, Feb 21, 2022 at 1:02 PM Richard Biener > > wrote: > > > > > > On Sun, Feb 20, 2022 at 11:44 PM Andrew Pinski via Gcc

Re: Validation of adding left shift stmt at GIMPLE - [Custom GCC plugin]]

2022-03-27 Thread Shubham Narlawar via Gcc
On Wed, Feb 23, 2022 at 12:52 PM Richard Biener wrote: > > On Tue, Feb 22, 2022 at 2:10 PM Shubham Narlawar > wrote: > > > > On Tue, Feb 22, 2022 at 3:55 PM Richard Biener > > wrote: > > > > > > On Tue, Feb 22, 2022 at 8:38 AM Shubham Narlawar

Ferching Rtl instruction corressponding to Gimple Call instruction

2022-04-11 Thread Shubham Narlawar via Gcc
Hello, I want to collect complete rtl instruction corresponding to below gimple call - "__builtin_temp" I have gimple instructions of form - slli_31 = _2 << 8; srli_32 = slli_31 >> 8; add_33 = srli_32 + 15; _20 = __builtin_temp (instrn_buffer.36_1, 1, add_33); For that, I put breakpoint in expa

Hoisting built-in call out of loop - LIM pass [tree-ssa-loop-im.c]

2022-06-01 Thread Shubham Narlawar via Gcc
Hello, [1] I want to achieve hosting of a custom built-in call out of loop that loads an immediate value. for (int i = 0; i < 4000; i++) { _9 = (unsigned int) _1; slli_6 = _9 << 8; srli_36 = slli_6 >> 8; li_37 = __builtin_load_immediate (15);//I want to hoi