2023-09-17 22:13:42 +03:00
|
|
|
package Common.UI.Menus_2023.MainMenuBar;
|
|
|
|
|
import Common.UI.Menus.PassesSubMenu;
|
|
|
|
|
import Common.UI.Menus_2023.VisualiserMenu;
|
2023-11-19 02:12:44 +03:00
|
|
|
import Repository.Component.Sapfor.Sapfor;
|
|
|
|
|
import Visual_DVM_2021.Passes.PassCode_2021;
|
|
|
|
|
import Visual_DVM_2021.Passes.Pass_2021;
|
2023-09-17 22:13:42 +03:00
|
|
|
public class TransformationsMenu extends VisualiserMenu {
|
|
|
|
|
public TransformationsMenu() {
|
|
|
|
|
super("Преобразования", "/icons/Transformations.png");
|
|
|
|
|
add(new PassesSubMenu("Циклы", "/icons/Menu/Loops.png",
|
|
|
|
|
Sapfor.getLoopsTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Приватные переменные", "/icons/Menu/Privates.png",
|
|
|
|
|
Sapfor.getPrivatesTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Процедуры", "/icons/Menu/Functions.png",
|
|
|
|
|
Sapfor.getProceduresTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
2023-11-21 21:29:38 +03:00
|
|
|
add(new PassesSubMenu("Директивы", "/icons/Directives.png",
|
2023-09-17 22:13:42 +03:00
|
|
|
Sapfor.getDVMTransformationsCodes()));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Интервалы", "/icons/Menu/Intervals.png",
|
|
|
|
|
Sapfor.getIntervalsTransformationsCodes()
|
|
|
|
|
));
|
|
|
|
|
addSeparator();
|
|
|
|
|
add(new PassesSubMenu("Области распараллеливания", "/icons/Menu/Regions.png",
|
|
|
|
|
Sapfor.getRegionsTransformationsCodes()
|
|
|
|
|
));
|
|
|
|
|
addSeparator();
|
2023-11-27 20:22:04 +03:00
|
|
|
add(Pass_2021.passes.get(PassCode_2021.SPF_SharedMemoryParallelization).createMenuItem());
|
|
|
|
|
addSeparator();
|
2023-09-17 22:13:42 +03:00
|
|
|
add(new PassesSubMenu("Предобработка проекта", "/icons/Menu/Preprocessing.png",
|
|
|
|
|
Sapfor.getPreparationTransformationsCodes()
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|