Add the serialization support for backend
authorJunyan He <junyan.he@linux.intel.com>
Wed, 11 Sep 2013 10:07:39 +0000 (18:07 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 12 Sep 2013 07:44:09 +0000 (15:44 +0800)
commit8471af99fc3634d5cdbc0cb707b14354c5c25841
tree35a2b44f67b1efae6cc48ddb86622904034e64eb
parentd27953ab9d822443e5e9536f7f0caaa22bd4c5b6
Add the serialization support for backend

The Serializable class define the interface of serialize_to/deserialize_from
functions for internal binary and llvm binary. And also a print status
function for debugging.
The class which may need the serializaion support need to derive from it,
these classes including: Program, Kernel, ConstantSet, ImageSet and SamplerSet.
This patch just add serialize_to/deserialize_from internal binary support for
all these classes.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
backend/src/backend/gen_program.cpp
backend/src/backend/gen_program.hpp
backend/src/backend/program.cpp
backend/src/backend/program.hpp
backend/src/ir/constant.cpp
backend/src/ir/constant.hpp
backend/src/ir/image.cpp
backend/src/ir/image.hpp
backend/src/ir/sampler.cpp
backend/src/ir/sampler.hpp
backend/src/sys/platform.hpp