It worked by creating new statements. True that was an issue of physical
location.

Thanks a lot


> On Fri, Oct 11, 2013 at 06:06:54PM +0530, son...@iitk.ac.in wrote:
>>   Is there any inbuilt feature for loop unrolling?
>
> I don't think so.
>
>>  I am trying to implement loop unrolling, if i copy all the statements
>> one
>> by one then the location remains same for the particular statement.
>
> I'm not sure if your issue is really that the location remains the same.
> I would guess that the real issue is that you do not physically copy the
> statements; all of them remain the same, duplicated statement, shared in
> a single memory location.
>
> Try the following idiom:
>
> let new_statement = mkStmt old_statement.skind in ...
>
> If you wish to change the location as well, you can do this by
> pattern-matching on old_statement.skind and building a new skind
> with an updated location (but I don't see how that would help).
>
> Best,
> --
> Gabriel
>


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to