moved to transformations
This commit is contained in:
@@ -203,8 +203,8 @@ set(TR_INLINER src/Transformations/FunctionInlining/inliner.cpp
|
|||||||
src/Transformations/FunctionInlining/inliner.h)
|
src/Transformations/FunctionInlining/inliner.h)
|
||||||
set(TR_RENAME_SYMBOLS src/Transformations/RenameSymbols/rename_symbols.cpp
|
set(TR_RENAME_SYMBOLS src/Transformations/RenameSymbols/rename_symbols.cpp
|
||||||
src/Transformations/RenameSymbols/rename_symbols.h)
|
src/Transformations/RenameSymbols/rename_symbols.h)
|
||||||
SET(SWAP_OPERATORS src/SwapOperators/swapOperators.cpp
|
SET(TR_SWAP_OPERATORS src/Transformations/SwapOperators/swap_operators.cpp
|
||||||
src/SwapOperators/swapOperators.h)
|
src/Transformations/SwapOperators/swap_operators.h)
|
||||||
|
|
||||||
set(TRANSFORMS
|
set(TRANSFORMS
|
||||||
${TR_DEAD_CODE}
|
${TR_DEAD_CODE}
|
||||||
@@ -227,7 +227,8 @@ set(TRANSFORMS
|
|||||||
${TR_REPLACE_ARRAYS_IN_IO}
|
${TR_REPLACE_ARRAYS_IN_IO}
|
||||||
${TR_EXPR_TRANSFORM}
|
${TR_EXPR_TRANSFORM}
|
||||||
${TR_INLINER}
|
${TR_INLINER}
|
||||||
${TR_RENAME_SYMBOLS})
|
${TR_RENAME_SYMBOLS}
|
||||||
|
${TR_SWAP_OPERATORS})
|
||||||
|
|
||||||
set(CFG src/CFGraph/IR.cpp
|
set(CFG src/CFGraph/IR.cpp
|
||||||
src/CFGraph/IR.h
|
src/CFGraph/IR.h
|
||||||
@@ -434,8 +435,7 @@ set(SOURCE_EXE
|
|||||||
${ZLIB}
|
${ZLIB}
|
||||||
${GR_LAYOUT}
|
${GR_LAYOUT}
|
||||||
${PR_PARAM}
|
${PR_PARAM}
|
||||||
${PROJ_MAN}
|
${PROJ_MAN})
|
||||||
${SWAP_OPERATORS})
|
|
||||||
|
|
||||||
add_executable(Sapfor_F ${SOURCE_EXE})
|
add_executable(Sapfor_F ${SOURCE_EXE})
|
||||||
source_group (CFGraph FILES ${CFG})
|
source_group (CFGraph FILES ${CFG})
|
||||||
@@ -461,6 +461,7 @@ source_group (Transformations\\GlobalVariables FILES ${TR_GV})
|
|||||||
source_group (Transformations\\ConvertToC FILES ${TR_CONV})
|
source_group (Transformations\\ConvertToC FILES ${TR_CONV})
|
||||||
source_group (Transformations\\SetImplicitNone FILES ${TR_IMPLICIT_NONE})
|
source_group (Transformations\\SetImplicitNone FILES ${TR_IMPLICIT_NONE})
|
||||||
source_group (Transformations\\ReplaceArraysInIO FILES ${TR_REPLACE_ARRAYS_IN_IO})
|
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})
|
source_group (CreateIntervals FILES ${CREATE_INTER_T})
|
||||||
@@ -479,7 +480,6 @@ source_group (Utils FILES ${UTILS})
|
|||||||
source_group (VerificationCode FILES ${VERIF})
|
source_group (VerificationCode FILES ${VERIF})
|
||||||
source_group (ProjectParameters FILES ${PR_PARAM})
|
source_group (ProjectParameters FILES ${PR_PARAM})
|
||||||
source_group (ProjectManipulation FILES ${PROJ_MAN})
|
source_group (ProjectManipulation FILES ${PROJ_MAN})
|
||||||
source_group (SwapOperators FILES ${SWAP_OPERATORS})
|
|
||||||
|
|
||||||
source_group (VisualizerCalls FILES ${VS_CALLS})
|
source_group (VisualizerCalls FILES ${VS_CALLS})
|
||||||
source_group (VisualizerCalls\\GraphLayout FILES ${GR_LAYOUT})
|
source_group (VisualizerCalls\\GraphLayout FILES ${GR_LAYOUT})
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
#include "Transformations/DeadCodeRemoving/dead_code.h"
|
#include "Transformations/DeadCodeRemoving/dead_code.h"
|
||||||
#include "Transformations/RenameSymbols/rename_symbols.h"
|
#include "Transformations/RenameSymbols/rename_symbols.h"
|
||||||
#include "Transformations/FunctionInlining/inliner.h"
|
#include "Transformations/FunctionInlining/inliner.h"
|
||||||
#include "SwapOperators/swapOperators.h"
|
#include "Transformations/SwapOperators/swap_operators.h"
|
||||||
|
|
||||||
#include "ProjectParameters/projectParameters.h"
|
#include "ProjectParameters/projectParameters.h"
|
||||||
|
|
||||||
@@ -941,9 +941,7 @@ static bool runAnalysis(SgProject &project, const int curr_regime, const bool ne
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (curr_regime == SWAP_OPERATORS)
|
else if (curr_regime == SWAP_OPERATORS)
|
||||||
{
|
|
||||||
runSwapOperators(file, loopGraph, fullIR, countOfTransform);
|
runSwapOperators(file, loopGraph, fullIR, countOfTransform);
|
||||||
}
|
|
||||||
else if (curr_regime == PRIVATE_REMOVING_ANALYSIS)
|
else if (curr_regime == PRIVATE_REMOVING_ANALYSIS)
|
||||||
{
|
{
|
||||||
auto itFound = loopGraph.find(file->filename());
|
auto itFound = loopGraph.find(file->filename());
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
#include <queue>
|
#include <queue>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include "../Utils/errors.h"
|
#include "../../Utils/errors.h"
|
||||||
#include "../Utils/SgUtils.h"
|
#include "../../Utils/SgUtils.h"
|
||||||
#include "../GraphCall/graph_calls.h"
|
#include "../../GraphCall/graph_calls.h"
|
||||||
#include "../GraphCall/graph_calls_func.h"
|
#include "../../GraphCall/graph_calls_func.h"
|
||||||
#include "../CFGraph/CFGraph.h"
|
#include "../../CFGraph/CFGraph.h"
|
||||||
#include "../CFGraph/IR.h"
|
#include "../../CFGraph/IR.h"
|
||||||
#include "../GraphLoop/graph_loops.h"
|
#include "../../GraphLoop/graph_loops.h"
|
||||||
#include "swapOperators.h"
|
#include "swap_operators.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../GraphLoop/graph_loops.h"
|
#include "../../GraphLoop/graph_loops.h"
|
||||||
#include "../CFGraph/CFGraph.h"
|
#include "../../CFGraph/CFGraph.h"
|
||||||
|
|
||||||
void runSwapOperators(SgFile *file, std::map<std::string, std::vector<LoopGraph*>>& loopGraph, std::map<FuncInfo*, std::vector<SAPFOR::BasicBlock*>>& FullIR, int& countOfTransform);
|
void runSwapOperators(SgFile *file, std::map<std::string, std::vector<LoopGraph*>>& loopGraph, std::map<FuncInfo*, std::vector<SAPFOR::BasicBlock*>>& FullIR, int& countOfTransform);
|
||||||
Reference in New Issue
Block a user