This commit removes unused reads/updates helper functions.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
return res;
}
-std::set<coco::Bag *> reads(coco::Block *blk)
-{
- std::set<coco::Bag *> res;
-
- for (auto ins = blk->instr()->head(); ins; ins = ins->next())
- {
- for (auto bag : ins->reads())
- {
- res.insert(bag);
- }
- }
-
- return res;
-}
-
-std::set<coco::Bag *> updates(coco::Block *blk)
-{
- std::set<coco::Bag *> res;
-
- for (auto ins = blk->instr()->head(); ins; ins = ins->next())
- {
- for (auto bag : ins->updates())
- {
- res.insert(bag);
- }
- }
-
- return res;
-}
-
} // namespace enco
/// @brief Return the set of blocks that updates a given bag
std::set<coco::Block *> updaters(const coco::Bag *bag);
-/// @brief Returns the set of bags that a given block reads
-std::set<coco::Bag *> reads(coco::Block *blk);
-/// @brief Returns the set of bags that a given block updates
-std::set<coco::Bag *> updates(coco::Block *blk);
-
} // namespace enco
#endif // __ENCO_USAGE_H__