[Beignet] [PATCH 5/7] ir::unit can return its constantSet

Homer Hsing homer.xing at intel.com
Wed May 1 18:00:30 PDT 2013


Version 3.

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



More information about the Beignet mailing list