[coco] Introduce Locatable interface (#1059)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 17 Aug 2018 05:12:34 +0000 (14:12 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 17 Aug 2018 05:12:34 +0000 (14:12 +0900)
commitc468d7b348ae0b93dc396d6d7213837aff8fe405
treeae8f9fa7c749e341a70e624606278fd2696caa93
parent3baa813ccdf34d2fe4f9d29d134426ed428106e7
[coco] Introduce Locatable interface (#1059)

This commit introduces Locatable interface, which allows us to get a
location (as an instruction) on the code; This class serves as a base
class for Bag::Read, Bag::Update, Object::Def, and Object::Use.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/Bag.h
contrib/coco/core/include/coco/IR/Instr.h
contrib/coco/core/include/coco/IR/Locatable.h [new file with mode: 0644]
contrib/coco/core/include/coco/IR/Op.h
contrib/coco/core/src/IR/Def.mock.h
contrib/coco/core/src/IR/Instr.test.cpp
contrib/coco/core/src/IR/Use.mock.h