[neurun] Rename `graph` to `ir` (#9362)
authorSergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics <s.barannikov@samsung.com>
Wed, 4 Dec 2019 08:21:15 +0000 (11:21 +0300)
committer이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 4 Dec 2019 08:21:15 +0000 (17:21 +0900)
Rename `src/graph/` and `include/graph/` to `src/ir/` and `include/ir/`, respectively

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
63 files changed:
runtime/neurun/core/include/backend/IShapeFixer.h
runtime/neurun/core/include/backend/ITensorRegister.h
runtime/neurun/core/include/compiler/Compiler.h
runtime/neurun/core/include/exec/IExecutor.h
runtime/neurun/core/include/ir/BackendSet.h [moved from runtime/neurun/core/include/graph/BackendSet.h with 100% similarity]
runtime/neurun/core/include/ir/Graph.h [moved from runtime/neurun/core/include/graph/Graph.h with 99% similarity]
runtime/neurun/core/include/ir/LowerInfoMap.h [moved from runtime/neurun/core/include/graph/LowerInfoMap.h with 93% similarity]
runtime/neurun/core/include/ir/operand/LowerInfo.h [moved from runtime/neurun/core/include/graph/operand/LowerInfo.h with 98% similarity]
runtime/neurun/core/include/ir/operand/ParentInfo.h [moved from runtime/neurun/core/include/graph/operand/ParentInfo.h with 100% similarity]
runtime/neurun/core/include/ir/operand/PermuteFactor.h [moved from runtime/neurun/core/include/graph/operand/PermuteFactor.h with 100% similarity]
runtime/neurun/core/include/ir/operation/LowerInfo.h [moved from runtime/neurun/core/include/graph/operation/LowerInfo.h with 97% similarity]
runtime/neurun/core/include/model/Operand.h
runtime/neurun/core/src/compiler/Compiler.cc
runtime/neurun/core/src/compiler/ExecutorFactory.cc
runtime/neurun/core/src/compiler/ExecutorFactory.h
runtime/neurun/core/src/compiler/HEScheduler.cc
runtime/neurun/core/src/compiler/HEScheduler.h
runtime/neurun/core/src/compiler/IScheduler.h
runtime/neurun/core/src/compiler/Linear.h
runtime/neurun/core/src/compiler/OperationValidator.cc
runtime/neurun/core/src/compiler/ParamChecker.cc
runtime/neurun/core/src/compiler/SubTensorAnalyzer.h
runtime/neurun/core/src/dumper/dot/DotDumper.h
runtime/neurun/core/src/dumper/dot/OperandNode.cc
runtime/neurun/core/src/dumper/dot/OperationNode.cc
runtime/neurun/core/src/exec/ExecutorBase.h
runtime/neurun/core/src/exec/ParallelScheduler.h
runtime/neurun/core/src/exec/interp/ExecEnv.h
runtime/neurun/core/src/exec/interp/ExecManager.h
runtime/neurun/core/src/ir/Graph.cc [moved from runtime/neurun/core/src/graph/Graph.cc with 99% similarity]
runtime/neurun/core/src/ir/dumper/Dumper.cc [moved from runtime/neurun/core/src/graph/dumper/Dumper.cc with 100% similarity]
runtime/neurun/core/src/ir/dumper/Dumper.h [moved from runtime/neurun/core/src/graph/dumper/Dumper.h with 100% similarity]
runtime/neurun/core/src/ir/operand/LowerInfo.cc [moved from runtime/neurun/core/src/graph/operand/LowerInfo.cc with 95% similarity]
runtime/neurun/core/src/ir/operand/Shape4DConvert.h [moved from runtime/neurun/core/src/graph/operand/Shape4DConvert.h with 97% similarity]
runtime/neurun/core/src/ir/operation/LowerInfo.cc [moved from runtime/neurun/core/src/graph/operation/LowerInfo.cc with 95% similarity]
runtime/neurun/core/src/ir/pass/ConstantInsertionPass.cc [moved from runtime/neurun/core/src/graph/pass/ConstantInsertionPass.cc with 98% similarity]
runtime/neurun/core/src/ir/pass/ConstantInsertionPass.h [moved from runtime/neurun/core/src/graph/pass/ConstantInsertionPass.h with 97% similarity]
runtime/neurun/core/src/ir/pass/OperandPass.cc [moved from runtime/neurun/core/src/graph/pass/OperandPass.cc with 97% similarity]
runtime/neurun/core/src/ir/pass/OperandPass.h [moved from runtime/neurun/core/src/graph/pass/OperandPass.h with 100% similarity]
runtime/neurun/core/src/ir/pass/OperationPass.cc [moved from runtime/neurun/core/src/graph/pass/OperationPass.cc with 97% similarity]
runtime/neurun/core/src/ir/pass/OperationPass.h [moved from runtime/neurun/core/src/graph/pass/OperationPass.h with 100% similarity]
runtime/neurun/core/src/ir/pass/Pass.cc [moved from runtime/neurun/core/src/graph/pass/Pass.cc with 100% similarity]
runtime/neurun/core/src/ir/pass/Pass.h [moved from runtime/neurun/core/src/graph/pass/Pass.h with 100% similarity]
runtime/neurun/core/src/ir/pass/PermutationEliminationPass.cc [moved from runtime/neurun/core/src/graph/pass/PermutationEliminationPass.cc with 99% similarity]
runtime/neurun/core/src/ir/pass/PermutationEliminationPass.h [moved from runtime/neurun/core/src/graph/pass/PermutationEliminationPass.h with 100% similarity]
runtime/neurun/core/src/ir/pass/PermutationInsertionPass.cc [moved from runtime/neurun/core/src/graph/pass/PermutationInsertionPass.cc with 98% similarity]
runtime/neurun/core/src/ir/pass/PermutationInsertionPass.h [moved from runtime/neurun/core/src/graph/pass/PermutationInsertionPass.h with 97% similarity]
runtime/neurun/core/src/ir/pass/PermutationOperationPass.cc [moved from runtime/neurun/core/src/graph/pass/PermutationOperationPass.cc with 99% similarity]
runtime/neurun/core/src/ir/pass/PermutationOperationPass.h [moved from runtime/neurun/core/src/graph/pass/PermutationOperationPass.h with 100% similarity]
runtime/neurun/core/src/ir/verifier/Verifier.cc [moved from runtime/neurun/core/src/graph/verifier/Verifier.cc with 99% similarity]
runtime/neurun/core/src/ir/verifier/Verifier.h [moved from runtime/neurun/core/src/graph/verifier/Verifier.h with 100% similarity]
runtime/neurun/frontend/base_loader/base_loader.h
runtime/neurun/frontend/circle/circle_loader.h
runtime/neurun/frontend/nnapi/wrapper/ANeuralNetworksCompilation.h
runtime/neurun/frontend/nnapi/wrapper/ANeuralNetworksModel.h
runtime/neurun/frontend/tflite/tflite_loader.h
runtime/neurun/test/core/exec/ExecInstance.cc
runtime/neurun/test/core/exec/interp/ExecManager.cc
runtime/neurun/test/graph/Graph.cc
runtime/neurun/test/graph/operand/UseDef.cc
runtime/neurun/test/graph/operation/SetIO.cc
runtime/neurun/test/graph/verifier/Verifier.cc
tests/tools/tflite_loader/src/tflite_loader.cc

index a4f708a..f33f4ec 100644 (file)
@@ -20,7 +20,7 @@
 #include <memory>
 #include <functional>
 
-#include "graph/LowerInfoMap.h"
+#include "ir/LowerInfoMap.h"
 #include "ITensorBuilder.h"
 #include "model/OperationVisitor.h"
 #include "model/Subgraph.h"
index a4b0937..851006b 100644 (file)
@@ -18,8 +18,8 @@
 #define __NEURUN_BACKEND_ITENSOR_REGISTER_H__
 
 #include "compiler/SubTensorInfo.h"
-#include "graph/LowerInfoMap.h"
-#include "graph/operand/ParentInfo.h"
+#include "ir/LowerInfoMap.h"
+#include "ir/operand/ParentInfo.h"
 #include "ITensorBuilder.h"
 #include "model/Layout.h"
 #include "model/OperandIndexSequence.h"
index 094ffe8..d8b4429 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __NEURUN_COMPILER_COMPILE_H_
 #define __NEURUN_COMPILER_COMPILE_H_
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "exec/IExecutor.h"
 
 namespace neurun
index bf83761..ecb195c 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef __NEURUN_EXEC_I_EXECUTOR_H_
 #define __NEURUN_EXEC_I_EXECUTOR_H_
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "IFunction.h"
 #include "IODescription.h"
 #include "model/OperationIndexMap.h"
similarity index 99%
rename from runtime/neurun/core/include/graph/Graph.h
rename to runtime/neurun/core/include/ir/Graph.h
index 437e3ee..6895b66 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "model/Operands.h"
 #include "model/Operations.h"
-#include "graph/LowerInfoMap.h"
+#include "ir/LowerInfoMap.h"
 #include "model/Subgraph.h"
 #include "model/Subgraphs.h"
 
@@ -20,8 +20,8 @@
 #include <memory>
 #include <unordered_map>
 
-#include "graph/operand/LowerInfo.h"
-#include "graph/operation/LowerInfo.h"
+#include "ir/operand/LowerInfo.h"
+#include "ir/operation/LowerInfo.h"
 #include "model/OperandIndexMap.h"
 #include "model/Index.h"
 
@@ -20,7 +20,7 @@
 #include <functional>
 #include <stdint.h>
 
-#include "graph/operand/PermuteFactor.h"
+#include "ir/operand/PermuteFactor.h"
 #include "util/Set.h"
 
 namespace neurun
@@ -19,7 +19,7 @@
 
 #include <string>
 
-#include <graph/operand/PermuteFactor.h>
+#include <ir/operand/PermuteFactor.h>
 
 namespace neurun
 {
index ff8c3c9..470be4a 100644 (file)
@@ -25,7 +25,7 @@
 #include "Data.h"
 #include "DataType.h"
 #include "OperandInfo.h"
-#include "graph/operand/ParentInfo.h" // TODO Remove this dependency
+#include "ir/operand/ParentInfo.h" // TODO Remove this dependency
 #include "model/OperationIndexList.h"
 
 namespace neurun
index 7335828..9e03761 100644 (file)
@@ -24,7 +24,7 @@
 #include "compiler/ManualScheduler.h"
 #include "compiler/HEScheduler.h"
 #include "backend/ExecTime.h"
-#include "graph/operation/LowerInfo.h"
+#include "ir/operation/LowerInfo.h"
 #include "dumper/dot/DotDumper.h"
 #include "compiler/Linear.h"
 #include "exec/interp/ExecManager.h"
index 2b6dbb5..5ba4b36 100644 (file)
@@ -24,7 +24,7 @@
 #include "compiler/BackendResolver.h"
 #include "backend/ExecTime.h"
 #include "compiler/Linear.h"
-#include "graph/dumper/Dumper.h"
+#include "ir/dumper/Dumper.h"
 #include "OperationValidator.h"
 #include "SubTensorAnalyzer.h"
 #include "backend/IConstantInitializer.h"
index bec25b1..4b96a36 100644 (file)
@@ -20,7 +20,7 @@
 #include <unordered_map>
 
 #include "exec/IExecutor.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
index f47ca86..21241c7 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "model/Operand.h"
 #include "compiler/HEScheduler.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "util/ConfigSource.h"
 #include "compiler/IExecutionBuilder.h"
 #include "compiler/BackendResolver.h"
index 1f58564..b888fa6 100644 (file)
@@ -24,7 +24,7 @@
 #define __NEURUN_COMPILER_H_E_SCHEDULER_H_
 
 #include "compiler/IScheduler.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "backend/ExecTime.h"
 #include "backend/Backend.h"
 #include "cpp14/memory.h"
index 5b425bf..3812a11 100644 (file)
@@ -18,7 +18,7 @@
 #define __NEURUN_CORE_COMPILER_I_SCHEDULER_H__
 
 #include "BackendResolver.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
index 48c6656..9453f21 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "model/Subgraphs.h"
 #include "backend/ITensorBuilder.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "compiler/BackendResolver.h"
 
 namespace neurun
index 92b2f9a..9558fff 100644 (file)
@@ -19,7 +19,7 @@
 #include <typeinfo>
 
 #include "model/Operands.h"
-#include "graph/operation/LowerInfo.h"
+#include "ir/operation/LowerInfo.h"
 
 #include "util/logging.h"
 #include "util/Utils.h"
index 10bfa1e..657da71 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "ParamChecker.h"
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
index 32f555f..64591f7 100644 (file)
@@ -24,7 +24,7 @@
 #define __NEURUN_COMPILER_SUBTENSOR_ANALYZER_H__
 
 #include "model/OperationVisitor.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
index 4ccaac8..7631d9f 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 #ifndef __NEURUN_DUMPER_DOT_DOT_DUMPER_H__
 #define __NEURUN_DUMPER_DOT_DOT_DUMPER_H__
index e4223fc..141549f 100644 (file)
@@ -17,8 +17,8 @@
 #include <sstream>
 
 #include "OperandNode.h"
-#include "graph/Graph.h"
-#include "graph/operand/LowerInfo.h"
+#include "ir/Graph.h"
+#include "ir/operand/LowerInfo.h"
 
 namespace neurun
 {
index bc3237b..5f599db 100644 (file)
@@ -17,8 +17,8 @@
 #include <sstream>
 
 #include "OperationNode.h"
-#include "graph/Graph.h"
-#include "graph/operation/LowerInfo.h"
+#include "ir/Graph.h"
+#include "ir/operation/LowerInfo.h"
 #include "backend/IConfig.h"
 #include "backend/Backend.h"
 
index f94320c..2b9f996 100644 (file)
@@ -23,8 +23,8 @@
 #include "exec/ExecutionObservers.h"
 #include "Sink.h"
 #include "exec/IExecutor.h"
-#include "graph/Graph.h"
-#include "graph/LowerInfoMap.h"
+#include "ir/Graph.h"
+#include "ir/LowerInfoMap.h"
 #include "backend/IConfig.h"
 #include "backend/Backend.h"
 #include "compiler/OperandContext.h"
index 41e474f..60b707a 100644 (file)
@@ -21,7 +21,7 @@
 #include <memory>
 
 #include "exec/IFunction.h"
-#include "graph/BackendSet.h"
+#include "ir/BackendSet.h"
 #include "ThreadPool.h"
 
 namespace neurun
index 2305dbd..b3b6e65 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <unordered_set>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "Tensor.h"
 
 namespace neurun
index a039797..098c110 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef __NEURUN_EXEC_INTERP_EXEC_MANAGER_H_
 #define __NEURUN_EXEC_INTERP_EXEC_MANAGER_H_
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "exec/IExecutor.h"
 #include "Tensor.h"
 
similarity index 99%
rename from runtime/neurun/core/src/graph/Graph.cc
rename to runtime/neurun/core/src/ir/Graph.cc
index d510c5a..a1fad2c 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 #include <algorithm>
 #include <bitset>
@@ -23,9 +23,9 @@
 #include "util/logging.h"
 #include "verifier/Verifier.h"
 #include "cpp14/memory.h"
-#include "graph/operation/LowerInfo.h"
-#include "graph/operand/LowerInfo.h"
-#include "graph/operand/PermuteFactor.h"
+#include "ir/operation/LowerInfo.h"
+#include "ir/operand/LowerInfo.h"
+#include "ir/operand/PermuteFactor.h"
 #include "operand/Shape4DConvert.h"
 #include "compiler/BackendResolver.h"
 #include "backend/IConfig.h"
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "graph/operand/LowerInfo.h"
+#include "ir/operand/LowerInfo.h"
 
 namespace neurun
 {
@@ -17,7 +17,7 @@
 #ifndef __NEURUN_GRAPH_OPERAND_SHAPE4D_CONVERT_H__
 #define __NEURUN_GRAPH_OPERAND_SHAPE4D_CONVERT_H__
 
-#include "graph/operand/LowerInfo.h"
+#include "ir/operand/LowerInfo.h"
 
 namespace neurun
 {
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "graph/operation/LowerInfo.h"
+#include "ir/operation/LowerInfo.h"
 
 namespace neurun
 {
@@ -17,8 +17,8 @@
 #include "ConstantInsertionPass.h"
 
 #include "backend/Backend.h"
-#include <graph/Graph.h>
-#include "graph/operand/Shape4DConvert.h"
+#include <ir/Graph.h>
+#include "ir/operand/Shape4DConvert.h"
 #include <util/Utils.h>
 
 namespace neurun
@@ -17,7 +17,7 @@
 #ifndef __NEURUN_GRAPH_PASS_CONSTANT_INSERTION_PASS_H__
 #define __NEURUN_GRAPH_PASS_CONSTANT_INSERTION_PASS_H__
 
-#include <graph/operand/PermuteFactor.h>
+#include <ir/operand/PermuteFactor.h>
 #include <model/Index.h>
 #include "OperationPass.h"
 #include <unordered_map>
@@ -16,7 +16,7 @@
 
 #include "OperandPass.h"
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
@@ -18,7 +18,7 @@
 
 #include "model/Index.h"
 #include "model/Operation.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 namespace neurun
 {
@@ -17,8 +17,8 @@
 #include "PermutationEliminationPass.h"
 
 #include "model/Operand.h"
-#include "graph/operand/LowerInfo.h"
-#include "graph/Graph.h"
+#include "ir/operand/LowerInfo.h"
+#include "ir/Graph.h"
 #include "backend/IConfig.h"
 #include "util/logging.h"
 #include "compiler/BackendResolver.h"
 #include <unordered_map>
 
 #include "model/Operand.h"
-#include "graph/operation/LowerInfo.h"
-#include "graph/Graph.h"
+#include "ir/operation/LowerInfo.h"
+#include "ir/Graph.h"
 #include "backend/IConfig.h"
 #include "util/logging.h"
 #include "cpp14/memory.h"
 #include "model/operation/Permute.h"
-#include "graph/operand/Shape4DConvert.h"
+#include "ir/operand/Shape4DConvert.h"
 #include "compiler/BackendResolver.h"
 
 namespace neurun
@@ -20,7 +20,7 @@
 #include "OperandPass.h"
 #include "model/Operand.h" //for model::OperationIndex
 #include "backend/BackendManager.h"
-#include "graph/operand/PermuteFactor.h"
+#include "ir/operand/PermuteFactor.h"
 
 namespace neurun
 {
@@ -16,7 +16,7 @@
 
 #include "Verifier.h"
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "model/OperationIndexMap.h"
 
 #include "util/logging.h"
index 4dee142..2f28ac3 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __BASE_LOADER_BASE_LOADER_H__
 #define __BASE_LOADER_BASE_LOADER_H__
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "model/Operations.Include.h"
 
 #include <map>
index 0ff3f33..0c3d5ae 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __CIRCLE_CIRCLE_LOADER_H__
 #define __CIRCLE_CIRCLE_LOADER_H__
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 #include <memory>
 
index 7a4ee98..affcc15 100644 (file)
@@ -18,7 +18,7 @@
 #define __COMPILATION_H__
 
 #include "compiler/Compiler.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "exec/IExecutor.h"
 
 struct ANeuralNetworksCompilation
index 35facc9..a1af145 100644 (file)
@@ -21,7 +21,7 @@
 #include <NeuralNetworks.h>
 #include <NeuralNetworksEx.h>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 struct ANeuralNetworksModel
 {
index 02d66e5..04d1fd5 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef __TFLITE_TFLITE_LOADER_H__
 #define __TFLITE_TFLITE_LOADER_H__
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 #include <memory>
 
index b00f793..bd4a3c8 100644 (file)
@@ -17,7 +17,7 @@
 #include <gtest/gtest.h>
 #include <thread>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "compiler/Compiler.h"
 #include "exec/Execution.h"
 #include "model/operation/Add.h"
index 6620438..2915e78 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <cpp14/memory.h>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "exec/interp/ExecManager.h"
 #include "exec/Execution.h"
 #include "model/operation/Add.h"
index f952fc6..4d52571 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <gtest/gtest.h>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 TEST(Graph, inputs_and_outputs)
 {
index 60d23c7..1d7d64a 100644 (file)
@@ -16,8 +16,8 @@
 
 #include <gtest/gtest.h>
 
-#include "graph/Graph.h"
-#include "graph/verifier/Verifier.h"
+#include "ir/Graph.h"
+#include "ir/verifier/Verifier.h"
 #include "cpp14/memory.h"
 #include "../MockNode.h"
 
index 606c498..29309f9 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <gtest/gtest.h>
 
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 #include "model/Index.h"
 #include "model/OperandIndexSequence.h"
 #include "model/operation/Conv2D.h"
index 7687b6a..d06c8ef 100644 (file)
@@ -17,8 +17,8 @@
 #include <gtest/gtest.h>
 
 #include "model/Operation.h"
-#include "graph/Graph.h"
-#include "graph/verifier/Verifier.h"
+#include "ir/Graph.h"
+#include "ir/verifier/Verifier.h"
 #include "cpp14/memory.h"
 #include "model/Operand.h"
 #include "../MockNode.h"
index dabbde4..cc83d7c 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "compiler/Compiler.h"
 #include "exec/Execution.h"
-#include "graph/Graph.h"
+#include "ir/Graph.h"
 
 #include "tflite_loader.h"