[enco] Support constant folding for add, sub, mul, div, sqrt (#2821)
author남궁석/On-Device Lab(SR)/Engineer/삼성전자 <sk.namkoong@samsung.com>
Mon, 14 Jan 2019 02:18:18 +0000 (11:18 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 14 Jan 2019 02:18:18 +0000 (11:18 +0900)
commit627955f718377ab8ef0cfb8cfddc0d4074374a97
tree6072717b140ffe338199247710b2921c52ff2460
parentfad1dbab97902c88093837c7c262da60c74c7a97
[enco] Support constant folding for add, sub, mul, div, sqrt (#2821)

* [enco] Support constant folding for add, sub, mul, div, sqrt

Until now, only `coco::Copy` instruction was available for constant folding.
This commit will support some `coco::Eval` instructions in constant folding,
which is add, sub, mul, div, sqrt.

Signed-off-by: Seok NamKoong <sk.namkoong@samsung.com>
* minor modifications
contrib/enco/core/src/Transforms/ConstantFolding.cpp