make_sequence_map is no longer used as coco IR now provides InstrIndex
and BlockIndex.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
return true;
}
-// TODO Remove unused method
-std::map<coco::Instr *, uint32_t> make_sequence_map(const coco::Module *m)
-{
- std::map<coco::Instr *, uint32_t> res;
-
- uint32_t pos = 0;
-
- for (auto B = m->block()->head(); B; B = B->next())
- {
- for (auto I = B->instr()->head(); I; I = I->next())
- {
- res[I] = pos++;
- }
- }
-
- return res;
-}
-
bool complete(const coco::Shuffle *s) { return s->range().size() == s->into()->size(); }
bool compatible(const coco::Shuffle *s1, const coco::Shuffle *s2)