diff --git a/CMakeLists.txt b/CMakeLists.txt index 800016d..6703bb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -188,8 +188,8 @@ set(TR_IMPLICIT_NONE src/Transformations/set_implicit_none.cpp src/Transformations/set_implicit_none.h) set(TR_REPLACE_ARRAYS_IN_IO src/Transformations/replace_dist_arrays_in_io.cpp src/Transformations/replace_dist_arrays_in_io.h) -SET(SWAP_OPERATORS src/SwapOperators/swapOperators.cpp - src/SwapOperators/swapOperators.h) +SET(TR_SWAP_OPERATORS src/Transformations/SwapOperators/swap_operators.cpp + src/Transformations/SwapOperators/swap_operators.h) set(TRANSFORMS ${TR_DEAD_CODE} @@ -209,7 +209,8 @@ set(TRANSFORMS ${TR_CONV} ${TR_PRIV_DEL} ${TR_IMPLICIT_NONE} - ${TR_REPLACE_ARRAYS_IN_IO}) + ${TR_REPLACE_ARRAYS_IN_IO} + ${TR_SWAP_OPERATORS}) set(CFG src/CFGraph/IR.cpp src/CFGraph/IR.h @@ -428,8 +429,7 @@ set(SOURCE_EXE ${ZLIB} ${GR_LAYOUT} ${PR_PARAM} - ${PROJ_MAN} - ${SWAP_OPERATORS}) + ${PROJ_MAN}) add_executable(Sapfor_F ${SOURCE_EXE}) source_group (CFGraph FILES ${CFG}) @@ -455,6 +455,7 @@ source_group (Transformations\\GlobalVariables FILES ${TR_GV}) source_group (Transformations\\ConvertToC FILES ${TR_CONV}) source_group (Transformations\\SetImplicitNone FILES ${TR_IMPLICIT_NONE}) source_group (Transformations\\ReplaceArraysInIO FILES ${TR_REPLACE_ARRAYS_IN_IO}) +source_group (Transformations\\SwapOperators FILES ${TR_SWAP_OPERATORS}) source_group (CreateIntervals FILES ${CREATE_INTER_T}) @@ -473,7 +474,6 @@ source_group (Utils FILES ${UTILS}) source_group (VerificationCode FILES ${VERIF}) source_group (ProjectParameters FILES ${PR_PARAM}) source_group (ProjectManipulation FILES ${PROJ_MAN}) -source_group (SwapOperators FILES ${SWAP_OPERATORS}) source_group (VisualizerCalls FILES ${VS_CALLS}) source_group (VisualizerCalls\\GraphLayout FILES ${GR_LAYOUT}) diff --git a/src/Sapfor.cpp b/src/Sapfor.cpp index cda7f52..39f1b60 100644 --- a/src/Sapfor.cpp +++ b/src/Sapfor.cpp @@ -72,8 +72,6 @@ #include "VisualizerCalls/SendMessage.h" #include "VisualizerCalls/BuildGraph.h" -#include "SwapOperators/swapOperators.h" - #include "Transformations/enddo_loop_converter.h" #include "Transformations/loop_transform.h" #include "Transformations/array_assign_to_loop.h" @@ -90,6 +88,7 @@ #include "Transformations/convert_to_c.h" #include "Transformations/set_implicit_none.h" #include "Transformations/dead_code.h" +#include "Transformations/SwapOperators/swap_operators.h" #include "RenameSymbols/rename_symbols.h" #include "ProjectParameters/projectParameters.h" diff --git a/src/SwapOperators/swapOperators.cpp b/src/Transformations/SwapOperators/swap_operators.cpp similarity index 97% rename from src/SwapOperators/swapOperators.cpp rename to src/Transformations/SwapOperators/swap_operators.cpp index 4985c43..162624f 100644 --- a/src/SwapOperators/swapOperators.cpp +++ b/src/Transformations/SwapOperators/swap_operators.cpp @@ -4,14 +4,14 @@ #include #include -#include "../Utils/errors.h" -#include "../Utils/SgUtils.h" -#include "../GraphCall/graph_calls.h" -#include "../GraphCall/graph_calls_func.h" -#include "../CFGraph/CFGraph.h" -#include "../CFGraph/IR.h" -#include "../GraphLoop/graph_loops.h" -#include "swapOperators.h" +#include "../../Utils/errors.h" +#include "../../Utils/SgUtils.h" +#include "../../GraphCall/graph_calls.h" +#include "../../GraphCall/graph_calls_func.h" +#include "../../CFGraph/CFGraph.h" +#include "../../CFGraph/IR.h" +#include "../../GraphLoop/graph_loops.h" +#include "swap_operators.h" using namespace std; diff --git a/src/SwapOperators/swapOperators.h b/src/Transformations/SwapOperators/swap_operators.h similarity index 72% rename from src/SwapOperators/swapOperators.h rename to src/Transformations/SwapOperators/swap_operators.h index b66152f..a23add9 100644 --- a/src/SwapOperators/swapOperators.h +++ b/src/Transformations/SwapOperators/swap_operators.h @@ -1,6 +1,6 @@ #pragma once -#include "../GraphLoop/graph_loops.h" -#include "../CFGraph/CFGraph.h" +#include "../../GraphLoop/graph_loops.h" +#include "../../CFGraph/CFGraph.h" void runSwapOperators(SgFile *file, std::map>& loopGraph, std::map>& FullIR, int& countOfTransform);