From: 박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Thu, 6 Sep 2018 00:08:58 +0000 (+0900) Subject: [coco] Introduce Op dispose (#1364) X-Git-Tag: nncc_backup~1926 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56b6e634b54d5e44160fd66f7377afadf943833a;p=platform%2Fcore%2Fml%2Fnnfw.git [coco] Introduce Op dispose (#1364) This commit introduces Op::dispose method which allows users to request each operation to release resources before destruction. Signed-off-by: Jonghyun Park --- diff --git a/contrib/coco/core/include/coco/IR/Op.h b/contrib/coco/core/include/coco/IR/Op.h index 5629699..5130ef7 100644 --- a/contrib/coco/core/include/coco/IR/Op.h +++ b/contrib/coco/core/include/coco/IR/Op.h @@ -76,6 +76,13 @@ protected: public: Instr *parent(void) const; + +public: + // @brief Release all the references + // + // NOTE The state after dispose SHOULD be identical to that just after construction + // TODO Rewrite as a pure virtual method once all the existing Op implement this method + virtual void dispose(void) { return; } }; } // namespace coco