* [coco] Introduce insert method in Shuffle
This commit introduces insert method in Shuffle instruction as the first
step toward partial shuffling support.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Update _content properly inside insert
public:
const ElemID &at(uint32_t n) const { return _content.at(n); }
+ // NOTE This method is deprecated. Pleaes do NOT use this anymore
ElemID &at(uint32_t n) { return _content.at(n); }
+public:
+ void insert(const ElemID &from, const ElemID &into);
+
private:
const PtrLink<Instr, Block> *const _instr_link;
namespace coco
{
+void Shuffle::insert(const ElemID &from, const ElemID &into) { _content.at(into.value()) = from; }
+
std::set<Bag *> Shuffle::reads(void) const
{
std::set<Bag *> res;