[Beignet] [PATCH 5/7] ir::unit can return its constantSet
Zhigang Gong
zhigang.gong at linux.intel.com
Sat Apr 27 03:40:40 PDT 2013
LGTM.
On Thu, Apr 25, 2013 at 02:21:37PM +0800, Homer Hsing wrote:
>
> Signed-off-by: Homer Hsing <homer.xing at intel.com>
> ---
> backend/src/ir/unit.hpp | 4 ++++
> 1 file changed, 4 insertions(+)
>
> 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<std::string, Function*> functions; //!< All the defined functions
> --
> 1.8.1.2
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list