Fix naming of soft backend files (#1477)
authorEfimov Alexander/AI Tools Lab/./Samsung Electronics <a.efimov@samsung.com>
Mon, 17 Sep 2018 16:58:29 +0000 (19:58 +0300)
committerРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Mon, 17 Sep 2018 16:58:29 +0000 (19:58 +0300)
Replace old_c_style with CamelCase style in pure soft backend file names

Signed-off-by: Efimov Alexander <a.efimov@samsung.com>
15 files changed:
contrib/nnc/driver/Driver.cpp
contrib/nnc/passes/soft_backend/BaseGenerator.cpp
contrib/nnc/passes/soft_backend/CGenerator.cpp
contrib/nnc/passes/soft_backend/CMakeLists.txt
contrib/nnc/passes/soft_backend/CPPGenerator.cpp [moved from contrib/nnc/passes/soft_backend/cpp_generator.cpp with 99% similarity]
contrib/nnc/passes/soft_backend/ModelAnalyzer.cpp [moved from contrib/nnc/passes/soft_backend/model_analyzer.cpp with 99% similarity]
contrib/nnc/passes/soft_backend/ModelAnalyzer.h [moved from contrib/nnc/passes/soft_backend/model_analyzer.h with 100% similarity]
contrib/nnc/passes/soft_backend/SBSerializer.cpp [moved from contrib/nnc/passes/soft_backend/serializer.cpp with 99% similarity]
contrib/nnc/passes/soft_backend/SBSerializer.h [moved from contrib/nnc/passes/soft_backend/serializer.h with 99% similarity]
contrib/nnc/tests/soft_backend/CMakeLists.txt
contrib/nnc/tests/soft_backend/CompileCPP.cpp [moved from contrib/nnc/tests/soft_backend/compile_cpp.cpp with 100% similarity]
contrib/nnc/unittests/soft_backend/CMakeLists.txt
contrib/nnc/unittests/soft_backend/CPPHeaderTypes.cpp [moved from contrib/nnc/unittests/soft_backend/cpp_header_types.cpp with 100% similarity]
contrib/nnc/unittests/soft_backend/CPPOperations.cpp [moved from contrib/nnc/unittests/soft_backend/cpp_operations.cpp with 99% similarity]
contrib/nnc/unittests/soft_backend/Generator.cpp [moved from contrib/nnc/unittests/soft_backend/generator.cpp with 100% similarity]

index b929d5d..a492870 100644 (file)
@@ -25,7 +25,7 @@ namespace contrib
  * @brief run all registered passes
  * @throw PassException, if errors occured
  */
-static void *runPasses()
+static void runPasses()
 {
   auto registeredPasses = PassManager::getPassManager()->getPasses();
   PassData passData(nullptr);
index 90e1ced..1cc4fa9 100644 (file)
@@ -1,6 +1,6 @@
 #include "passes/soft_backend/BaseGenerator.h"
-#include "model_analyzer.h"
-#include "serializer.h"
+#include "ModelAnalyzer.h"
+#include "SBSerializer.h"
 #include "core/modelIR/ShapeInference.h"
 #include "option/Options.h"
 #include "pass/Pass.h"
index 9daf35e..ec34d4a 100644 (file)
@@ -1,5 +1,5 @@
 #include "passes/soft_backend/CGenerator.h"
-#include "model_analyzer.h"
+#include "ModelAnalyzer.h"
 
 using namespace std;
 using namespace nncc::contrib;
index 90ff8df..a466543 100644 (file)
@@ -1,5 +1,5 @@
-set(SOFT_BACKEND_COMMON_SOURCES BaseGenerator.cpp model_analyzer.cpp serializer.cpp)
-set(SOFT_BACKEND_CPP_SOURCES cpp_generator.cpp)
+set(SOFT_BACKEND_COMMON_SOURCES BaseGenerator.cpp ModelAnalyzer.cpp SBSerializer.cpp)
+set(SOFT_BACKEND_CPP_SOURCES CPPGenerator.cpp)
 set(SOFT_BACKEND_C_SOURCES CGenerator.cpp)
 set(DEF_CONV ${NNC_ROOT_SRC_DIR}/utils/def2src.cpp)
 
@@ -1,6 +1,6 @@
 #include "passes/soft_backend/CPPGenerator.h"
-#include "model_analyzer.h"
-#include "serializer.h"
+#include "ModelAnalyzer.h"
+#include "SBSerializer.h"
 #include "option/Options.h"
 
 using namespace std;
@@ -1,7 +1,7 @@
 #include <type_traits>
 #include <limits>
 
-#include "model_analyzer.h"
+#include "ModelAnalyzer.h"
 #include "core/modelIR/ir_node.h"
 #include "core/modelIR/Shape.h"
 #include "core/modelIR/ShapeRange.h"
@@ -1,4 +1,4 @@
-#include "serializer.h"
+#include "SBSerializer.h"
 #include "core/modelIR/ShapeRange.h"
 #include "core/modelIR/TensorUtil.h"
 
@@ -4,7 +4,7 @@
 #include "core/modelIR/visitor.h"
 #include "core/modelIR/Shape.h"
 #include "core/modelIR/TensorVariant.h"
-#include "model_analyzer.h"
+#include "ModelAnalyzer.h"
 
 #include <vector>
 #include <cstdint>
index 00c7e10..fbbd36c 100644 (file)
@@ -2,7 +2,7 @@ file(GLOB_RECURSE SOFT_TEST_DEF_SOURCES *.def)
 
 make_generated_sources("${SOFT_TEST_DEF_SOURCES}" ${CMAKE_CURRENT_BINARY_DIR} SOFT_TEST_GENERATED_SOURCES)
 
-add_executable(system_soft_backend_cpp_compile compile_cpp.cpp ${OPTIONS_SRC} ${SOFT_TEST_GENERATED_SOURCES})
+add_executable(system_soft_backend_cpp_compile CompileCPP.cpp ${OPTIONS_SRC} ${SOFT_TEST_GENERATED_SOURCES})
 target_link_libraries(system_soft_backend_cpp_compile PRIVATE nnc_support soft_backend_cpp nnc_core)
 target_include_directories(system_soft_backend_cpp_compile PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${NNC_SOFT_BACKEND_DIR})
 
index e5415b7..88fb674 100644 (file)
@@ -1,4 +1,4 @@
-set(SOFT_BACKEND_CPP_SOURCES ${NNC_SOFT_BACKEND_DIR}/cpp_generator.cpp)
+set(SOFT_BACKEND_CPP_SOURCES ${NNC_SOFT_BACKEND_DIR}/CPPGenerator.cpp)
 
 file(GLOB_RECURSE SOFT_DEF_SOURCES "${NNC_SOFT_BACKEND_DIR}/*.def")
 file(GLOB_RECURSE TESTS "*.cpp")
@@ -25,8 +25,8 @@
 
 // soft backend part
 
-#include "model_analyzer.h"
-#include "serializer.h"
+#include "ModelAnalyzer.h"
+#include "SBSerializer.h"
 
 // operations part
 #include "core/modelIR/operations/variable_op.h"