add helper functions in ir::Constant and ir::ConstantSet
authorHomer Hsing <homer.xing@intel.com>
Thu, 2 May 2013 01:00:26 +0000 (09:00 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 2 May 2013 02:46:57 +0000 (10:46 +0800)
commit386ceab76dd082fa59b6b1770d6811784cd78956
treeaa4f490b3d00bf0c3b15c50859d8890f56e7dbd8
parent71b6fe31371e414a40dd2c6bc15867efa54cb33f
add helper functions in ir::Constant and ir::ConstantSet

Version 3.
Deleted empty destructor of ConstantSet.
Updated ConstantSet::getConstant()

And I am afraid I cannot delete the empty constructor of ConstantSet.
That will break the constructor of ir::Unit. See unit.cpp, line 30.

add ir::Constant.reg field
add helper functions in ir::ConstantSet to get specified ir::Constant
and binary packed constant array

Signed-off-by: Homer Hsing <homer.xing@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/ir/constant.hpp