[coco] Introduce Shuffle::size method (#1539)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 18 Sep 2018 09:42:29 +0000 (18:42 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 18 Sep 2018 09:42:29 +0000 (18:42 +0900)
commit31f8abbe4e06b361443535fe81f07f57d007344d
treee9e52d34472dfa5c64385386cf79d4661b2f99a6
parentb7a374278677786c5a68020310de0bcdf190c03d
[coco] Introduce Shuffle::size method (#1539)

* [coco] Introduce Shuffle::size method

This commit introduces Shuffle::size method which allows us to get the
number of element-wise transfers without using heavy range method.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Check invariant over size() and range()
contrib/coco/core/include/coco/IR/Shuffle.h
contrib/coco/core/src/IR/Shuffle.cpp
contrib/coco/core/src/IR/Shuffle.test.cpp