[coco] Return Def instead Producer (#1521)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 17 Sep 2018 07:16:24 +0000 (16:16 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 17 Sep 2018 07:16:24 +0000 (16:16 +0900)
commit3061f01f25ff9aab62bfcdf4e942c92c3fa49503
treecb72064c5a4391fefea33e5c2a6e45d4b516cdda
parent8640edfd84a82495b4adeadec1e33acbd0116088
[coco] Return Def instead Producer (#1521)

This commit revises Object::def method to return a pointer to Def
instead of a pointer to its Producer.

This commit also revises all the related implementations and tests.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/include/coco/IR/Object.h
contrib/coco/core/src/IR/Bag.cpp
contrib/coco/core/src/IR/Def.test.cpp
contrib/coco/core/src/IR/Instr.test.cpp
contrib/coco/core/src/IR/Object.cpp