[enco] Generate loops correctly (#1409)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 10 Sep 2018 00:07:28 +0000 (09:07 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 10 Sep 2018 00:07:28 +0000 (09:07 +0900)
commit7d261ad2c665825f4e0a12124f33de610cd9aba7
treec7127908efe8923a894a12bc755db273ef5b4d46
parentc0bda1855ab023decb2e636cc5397d66b3de8d06
[enco] Generate loops correctly (#1409)

The current implementation of LoopGen assumes that Shuffle is fully
specified over the destination bag.

While previous commit addresses one specific issue, it turns out that
LoopGen still suffers from various asserts during execution, and
generates incorrect code.

This commit rewrites LoopGen to depend on TransferSequence instead of
directly using Shuffle instruction to address all of remaining issues.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/core/src/CppGen/Host.cpp