Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340915

Summary: [Refactoring] Replace Do Loop By Forall
Product: [Tools] PTP Reporter: Gustavo Rissetti <gustavorissetti>
Component: Photran.Refactoring EngineAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: com-eclipse-dot-org, gustavorissetti, marianomendez
Version: 6.0.3   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Source code of the refactoring and a small example (.rar file) none

Description Gustavo Rissetti CLA 2011-03-24 17:11:42 EDT
Created attachment 191870 [details]
Source code of the refactoring and a small example (.rar file)

This refactoring is used to substitute DO loops by FORALL, when you have only assignments in the loop body. The user selects the loop to be replaced, and if the loop does not meet the requirements to be a FORALL the operation is aborted. Thus it is possible to have a performance gain in the execution of the application if you are using a parallel platform, as the FORALL makes automatic parallelization of execution of the instructions of your body. The source code is attached, as a figure with a small example of using this refactoring (ReplaceDoLoopByForallRefactoring.rar).
Comment 1 Jeffrey Overbey CLA 2012-03-01 00:17:32 EST
Thanks a lot!  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?
Comment 2 Gustavo Rissetti CLA 2012-03-01 07:25:46 EST
(In reply to comment #1)
> Thanks a lot!  Can you please confirm that
> 
> 1. you wrote 100% of the code without incorporating content from elsewhere or
> relying on the intellectual property of others,
> 
> 2. you have the right to contribute the code to Eclipse, and
> 
> 3. you have included the EPL license header in all source files?

I confirm that I wrote 100% of the code without incorporating content from
elsewhere or relying on the intellectual property of others, and I have the
right to contribute the code to Eclipse, and I have included the EPL license
header in all source files.
Comment 3 Jeffrey Overbey CLA 2012-05-07 16:04:37 EDT
I have committed this to master in order to meet the Juno feature freeze.

Code review/testing/string externalization/documentation are pending.
Comment 4 Jeffrey Overbey CLA 2012-06-12 16:40:04 EDT
Closing for Juno; documentation pending.  Thanks!