This commit introduces Op::dispose method which allows users to request
each operation to release resources before destruction.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
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