From: Homer Hsing Date: Thu, 2 May 2013 01:00:30 +0000 (+0800) Subject: ir::unit can return its constantSet X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29e29dcfe7060be1fbe75c0b5bdb2978e0a59128;p=contrib%2Fbeignet.git ir::unit can return its constantSet Version 3. Signed-off-by: Homer Hsing Reviewed-by: Zhigang Gong --- diff --git a/backend/src/ir/unit.hpp b/backend/src/ir/unit.hpp index 37a5dbf..ae78638 100644 --- a/backend/src/ir/unit.hpp +++ b/backend/src/ir/unit.hpp @@ -67,6 +67,10 @@ namespace ir { else return FAMILY_QWORD; } + /*! Return the constant set */ + ConstantSet& getConstantSet(void) { return constantSet; } + /*! Return the constant set */ + const ConstantSet& getConstantSet(void) const { return constantSet; } private: friend class ContextInterface; //!< Can free modify the unit hash_map functions; //!< All the defined functions