[loco] Hide deprecated "node" method (#6342)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 8 Aug 2019 01:20:17 +0000 (10:20 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Thu, 8 Aug 2019 01:20:17 +0000 (10:20 +0900)
Now, "node" method in GraphInput/GraphOutput is private.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/loco/include/loco/IR/Graph.h

index f94b4de..f228daf 100644 (file)
@@ -103,6 +103,9 @@ class GraphInput final : private NamedEntity,
                          public Mixin<Trait::TensorShaped>
 {
 public:
+  friend void link(GraphInput *, Pull *);
+
+public:
   LOCO_NAMED_ENTITY_EXPOSE;
 
   // TODO Use GraphInputIndex (instead of uint32_t)
@@ -121,9 +124,12 @@ private:
 
 public:
   Pull *node(void) const { return _pull; }
+private:
   // DEPRECATED
   //
   // Use a dialect-specific helper instead.
+  //
+  // TODO Remove this method
   void node(Pull *pull);
 
 private:
@@ -138,6 +144,9 @@ class GraphOutput final : private NamedEntity,
                           public Mixin<Trait::TensorShaped>
 {
 public:
+  friend void link(GraphOutput *, Push *);
+
+public:
   LOCO_NAMED_ENTITY_EXPOSE;
 
   // TODO Use GraphOutputIndex (instead of uint32_t)
@@ -156,9 +165,12 @@ private:
 
 public:
   Push *node(void) const { return _push; }
+private:
   // DEPRECATED
   //
   // Use a dialect-specific helper instead.
+  //
+  // TODO Remove this method
   void node(Push *push);
 
 private: