[coco] Assign InstrIndex for each Instr (#1673)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 28 Sep 2018 10:32:26 +0000 (19:32 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 28 Sep 2018 10:32:26 +0000 (19:32 +0900)
commitd34e21288a2cf4a6191662898021a4a95fb294e9
tree6429fc797ecd05a6424045a9c82b7a78042d05c9
parentc180dec6e826dcc96ae2d3b056f4b47fd6c9e73b
[coco] Assign InstrIndex for each Instr (#1673)

This commit introduces a field/method related with instruction index, and
revises the implementation of Instr to automatically update this index
per change.

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